chore: deduplicate permalinks; fix sitemap; organize

This commit is contained in:
Cory Dransfeldt 2024-07-15 22:52:57 -07:00
parent b40986256a
commit ae1cb3dc5e
No known key found for this signature in database
64 changed files with 94 additions and 31 deletions

View file

@ -4,7 +4,7 @@ pagination:
data: books.all
size: 1
alias: book
permalink: "/books/{{ book.isbn }}/index.html"
permalink: "{{ book.url }}/index.html"
isbn: {{ book.isbn }}
schema: book
---
@ -50,6 +50,7 @@ schema: book
</div>
{% if book.review %}
{% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %}
<h3>My thoughts</h3>
{{ book.review | markdown }}
<hr />
{% endif %}

View file

@ -4,7 +4,7 @@ pagination:
data: artists
size: 1
alias: artist
permalink: "/music/artists/{{ artist.name_string | sanitizeMediaString }}-{{ artist.country | sanitizeMediaString }}/index.html"
permalink: "{{ artist.url }}/index.html"
updated: "now"
schema: artist
---

View file

@ -4,7 +4,7 @@ pagination:
data: genres
size: 1
alias: genre
permalink: "/music/genres/{{ genre.name | slugify | downcase }}/index.html"
permalink: "{{ genre.url }}/index.html"
updated: "now"
schema: genre
---

View file

@ -4,7 +4,7 @@ pagination:
data: movies.movies
size: 1
alias: movie
permalink: /watching/movies/{{ movie.id }}/index.html
permalink: "{{ movie.url }}/index.html"
schema: movie
---
{%- capture alt -%}
@ -39,6 +39,7 @@ schema: movie
</div>
{% if movie.review %}
{% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %}
<h3>My thoughts</h3>
{{ movie.review | markdown }}
<hr />
{% endif %}

View file

@ -4,7 +4,7 @@ pagination:
data: tv.shows
size: 1
alias: show
permalink: /watching/shows/{{ show.tmdb_id }}/index.html
permalink: "{{ show.url }}/index.html"
schema: show
---
{%- capture alt -%}
@ -38,6 +38,8 @@ schema: show
<p class="sub-meta"><a href="https://themoviedb.org/tv/{{ show.tmdb_id }}" title="View {{ show.title | escape }} on TMDB">View on TMDB</a></p>
</div>
{% if show.review %}
{% render "partials/blocks/banners/warning.liquid", text: "There are probably spoilers after this banner — this is a warning about them." %}
<h3>My thoughts</h3>
{{ show.review | markdown }}
<hr />
{% endif %}