chore: remove old filters, hardcoded types, old post status from view

This commit is contained in:
Cory Dransfeldt 2024-10-13 15:51:27 -07:00
parent ffea333d55
commit 76a172bb74
No known key found for this signature in database
15 changed files with 15 additions and 48 deletions

View file

@ -142,7 +142,7 @@
"inLanguage": "{{ globals.locale }}",
"publisher": { "@type": "{{ globals.site_type }}", "name": "{{ globals.author }}", "url": "{{ globals.url }}" },
"author": { "@type": "Person", "name": "{{ globals.author }}" },
"datePublished": "{{ page.date | isoDateOnly: '.' }}"
"datePublished": "{{ page.date | date: "%Y.%m.%d" }}"
}
{%- endif -%}
]

View file

@ -1,4 +1,3 @@
{%- assign isOldPost = date | oldPost -%}
{%- if isOldPost -%}
<div class="banner old-post">
<p>{% tablericon "clock-x" %}This post is over 3 years old. I've probably changed my mind since it was written and it <em>could</em> be out of date.</p>

View file

@ -12,7 +12,7 @@ schema: artist
{{ artist.name }} / {{ artist.country }}
{%- endcapture -%}
{%- capture playLabel -%}
{%- if artist.totalPlays == 1 -%}
{%- if artist.total_plays == 1 -%}
play
{%- else -%}
plays
@ -105,8 +105,8 @@ schema: artist
{% for album in artist.albums %}
<tr>
<td>{{ album.name }}</td>
<td>{{ album.totalPlays }}</td>
<td>{{ album.releaseYear }}</td>
<td>{{ album.total_plays }}</td>
<td>{{ album.release_year }}</td>
</tr>
{% endfor %}
</table>

View file

@ -18,7 +18,7 @@ schema: blog
{{ post.title }}
</h3>
<div>
{% render "partials/blocks/banners/old-post.liquid", date:post.date %}
{% render "partials/blocks/banners/old-post.liquid", isOldPost:post.old_post %}
{%- if post.image -%}
<img
srcset="