chore: pulling weeds

This commit is contained in:
Cory Dransfeldt 2024-09-19 16:26:51 -07:00
parent 067ac95a64
commit 6e2694157c
No known key found for this signature in database
24 changed files with 194 additions and 287 deletions

View file

@ -1,6 +1,4 @@
<article class="status">
<article>
<p><strong class="highlight-text">I'm a software developer based in Camarillo, California</strong>. I enjoy hanging out with my beautiful family and 3 rescue dogs, technology, automation, <a href="/music">music</a>, <a href="/posts">writing</a>, <a href="/books">reading</a>, <a href="/watching#tv">tv</a> and <a href="/watching#movies">movies</a>.</p>
{% render "partials/blocks/now-playing.liquid", music:music %}
<hr />
{% render "partials/home/recent-activity.liquid" music:music, books:books, tv:tv, movies:movies, links:links %}
</article>

View file

@ -3,15 +3,17 @@
{%- assign movie = movies.recentlyWatched | first -%}
{%- assign book = books | bookStatus: 'finished' | bookSortDescending | first -%}
{%- assign link = links | first -%}
<h2 class="section-header">
{% tablericon "activity" "Recent activity" %}
Recent activity
</h2>
<ul>
<li><span class="music">Top track this week:</span> <a href="{{ track.url }}">{{ track.title }} by {{ track.artist }}</a></li>
<li><span class="tv">Last episode watched:</span> <strong class="highlight-text">S{{ show.season }}E{{ show.episode }}</strong> of <a href="{{ show.url }}">{{ show.name }}</a></li>
<li><span class="movies">Last movie watched:</span> <a href="{{ movie.url }}">{{ movie.title }}</a>{%- if movie.rating %} ({{ movie.rating }}){%- endif -%}</li>
<li><span class="books">Last book finished:</span> <a href="{{ book.url }}">{{ book.title }}</a> by {{ book.author }}{%- if book.rating %} ({{ book.rating }}){%- endif -%}</li>
<li><span class="link">Last link shared:</span> <a href="{{ link.link }}">{{ link.title }}</a>{% if link.authors %} via <a href="{{ link.authors.url }}">{{ link.authors.name }}</a>{% endif %}</li>
</ul>
{% render "partials/blocks/banners/rss.liquid", url: "/feeds", text: "Subscribe to my movies, books, links or activity feed(s)" %}
<article>
<h2>
{% tablericon "activity" "Recent activity" %}
Recent activity
</h2>
<ul>
<li><span class="music">Top track this week:</span> <a href="{{ track.url }}">{{ track.title }} by {{ track.artist }}</a></li>
<li><span class="tv">Last episode watched:</span> <strong class="highlight-text">S{{ show.season }}E{{ show.episode }}</strong> of <a href="{{ show.url }}">{{ show.name }}</a></li>
<li><span class="movies">Last movie watched:</span> <a href="{{ movie.url }}">{{ movie.title }}</a>{%- if movie.rating %} ({{ movie.rating }}){%- endif -%}</li>
<li><span class="books">Last book finished:</span> <a href="{{ book.url }}">{{ book.title }}</a> by {{ book.author }}{%- if book.rating %} ({{ book.rating }}){%- endif -%}</li>
<li><span class="link">Last link shared:</span> <a href="{{ link.link }}">{{ link.title }}</a>{% if link.authors %} via <a href="{{ link.authors.url }}">{{ link.authors.name }}</a>{% endif %}</li>
</ul>
{% render "partials/blocks/banners/rss.liquid", url: "/feeds", text: "Subscribe to my movies, books, links or activity feed(s)" %}
</article>

View file

@ -1,21 +1,19 @@
<div class="article-widget-wrapper">
<div class="section-header-wrapper">
<h2 class="section-header">
{% tablericon "clock" "Recent posts" %}
Recent posts
</h2>
</div>
{%- for post in posts limit: 5 -%}
<article>
<h2>
{% tablericon "clock" "Recent posts" %}
Recent posts
</h2>
{%- for post in posts limit: 5 -%}
<article>
<div class="post-meta">
{%- if post.featured -%}{% tablericon "star" "featured" %}{%- endif -%}
<time datetime="{{ post.date }}">
{%- if post.featured -%}{% tablericon "star" "featured" %}{%- endif -%}
{{ post.date | date: "%B %e, %Y" }}
</time>
<h3>
<a href="{{ post.slug }}">{{ post.title }}</a>
</h3>
{{ post.description | normalize_whitespace | markdown | truncatewords: 50 }}
</article>
{%- endfor -%}
<a class="icon-link" href="/posts">View all posts {% tablericon "arrow-right" "View all posts" %}</a>
</div>
</div>
<h3>
<a href="{{ post.slug }}">{{ post.title }}</a>
</h3>
{{ post.description | normalize_whitespace | markdown | truncatewords: 50 }}
</article>
{%- endfor -%}
<a class="icon-link" href="/posts">View all posts {% tablericon "arrow-right" "View all posts" %}</a>

View file

@ -6,21 +6,17 @@
{%- assign percentage = item.plays | calculatePlayPercentage: playTotal -%}
<li value="{{ item.rank }}">
<div class="item">
<div class="presentation">
<div class="info">
<div class="title">
<a href="{{ item.url }}">{{ item.title }}</a>
</div>
{%- capture playsLabel -%}
{%- if item.plays > 1 -%}
plays
{%- else -%}
play
{%- endif -%}
{%- endcapture -%}
<div class="subtext">{{ item.artist }}</div>
<div class="subtext">{{ item.plays }} {{ playsLabel }}</div>
</div>
<div class="info">
<a class="title window" href="{{ item.url }}">{{ item.title }}</a>
{%- capture playsLabel -%}
{%- if item.plays > 1 -%}
plays
{%- else -%}
play
{%- endif -%}
{%- endcapture -%}
<span class="subtext">{{ item.artist }}</span>
<span class="subtext">{{ item.plays }} {{ playsLabel }}</span>
</div>
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
</div>

View file

@ -19,10 +19,8 @@
/>
</a>
<div class="meta-text">
<div class="title">
<a href="{{ item.url }}">{{ item.title }}</a>
</div>
<div class="subtext">{{ item.artist }}</div>
<a class="title" href="{{ item.url }}">{{ item.title }}</a>
<span class="subtext">{{ item.artist }}</span>
</div>
</div>
<div class="timestamp">

View file

@ -1,5 +1,5 @@
{%- assign hidePagination = count or data.pages.size <= 1 -%}
<div class="watching grid{% if hidePagination %} no-pagination {% endif %}">
<div class="watching grid">
{%- assign items = data.items | default: mediaItems -%}
{%- for item in items limit: count -%}
{%- capture alt -%}{{ item.title | escape }} ({{ item.year }}){% endcapture %}