chore: permalink consistency
This commit is contained in:
parent
327be80b79
commit
d813bd505f
14 changed files with 17 additions and 18 deletions
|
@ -95,6 +95,7 @@
|
|||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 6;
|
||||
line-clamp: 6;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
|
@ -31,8 +31,6 @@ const fetchAllMovies = async () => {
|
|||
};
|
||||
|
||||
export default async function () {
|
||||
const year = DateTime.now().year;
|
||||
|
||||
try {
|
||||
const movies = await fetchAllMovies();
|
||||
const favoriteMovies = movies.filter((movie) => movie["favorite"]);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Currently reading
|
||||
description: Here's what I'm reading at the moment.
|
||||
permalink: "/books/index.html"
|
||||
permalink: "/books.html"
|
||||
updated: "now"
|
||||
schema: books
|
||||
---
|
||||
|
|
|
@ -4,7 +4,7 @@ description: These are links I've liked or otherwise found interesting. They're
|
|||
pagination:
|
||||
data: links
|
||||
size: 30
|
||||
permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}.html"
|
||||
---
|
||||
{% if pagination.pageNumber == 0 %}
|
||||
<h2>Links</h2>
|
||||
|
|
|
@ -4,7 +4,7 @@ description: These are concerts I've attended (not all of them — just the ones
|
|||
pagination:
|
||||
data: concerts
|
||||
size: 30
|
||||
permalink: "/music/concerts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
permalink: "/music/concerts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}.html"
|
||||
---
|
||||
{%- if pagination.pageNumber == 0 -%}
|
||||
<h2>Concerts</h2>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Music
|
||||
description: This is everything I've been listening to recently — it's collected in a database as I listen to it and displayed here.
|
||||
permalink: "/music/index.html"
|
||||
permalink: "/music.html"
|
||||
updated: "now"
|
||||
schema: music-index
|
||||
---
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: This month
|
||||
description: This is everything I've been listening to this month — it's collected in a database as I listen to it and displayed here.
|
||||
permalink: "/music/this-month/index.html"
|
||||
permalink: "/music/this-month.html"
|
||||
updated: "now"
|
||||
image: music.month.artists[0].image
|
||||
schema: music-period
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
title: All posts
|
||||
pagination:
|
||||
data: posts
|
||||
size: 8
|
||||
size: 15
|
||||
permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
---
|
||||
{% for post in pagination.items %}
|
||||
|
|
|
@ -3,7 +3,7 @@ pagination:
|
|||
data: posts
|
||||
size: 1
|
||||
alias: post
|
||||
permalink: "{{ post.url }}/index.html"
|
||||
permalink: "{{ post.url }}.html"
|
||||
schema: blog
|
||||
---
|
||||
<article class="standalone">
|
||||
|
|
|
@ -4,7 +4,7 @@ description: These are my favorite movies. There are many like them, but these a
|
|||
pagination:
|
||||
data: movies.favorites
|
||||
size: 24
|
||||
permalink: "/watching/favorite-movies/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
permalink: "/watching/favorite-movies/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}.html"
|
||||
schema: favorite-movies
|
||||
---
|
||||
<a class="icon-link" href="/watching" title="Go back to the watching index page">{% tablericon "arrow-left" %} Back to watching</a>
|
||||
|
|
|
@ -4,7 +4,7 @@ description: These are my favorite shows. There are many like them, but these ar
|
|||
pagination:
|
||||
data: tv.favorites
|
||||
size: 24
|
||||
permalink: "/watching/favorite-shows/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
permalink: "/watching/favorite-shows/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}.html"
|
||||
schema: favorite-shows
|
||||
---
|
||||
<a class="icon-link" href="/watching" title="Go back to the watching index page">{% tablericon "arrow-left" %} Back to watching</a>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Currently watching
|
||||
description: Here's all of the TV and movies I've been watching presented in what is (hopefully) an organized fashion.
|
||||
permalink: "/watching/index.html"
|
||||
permalink: "/watching.html"
|
||||
updated: "now"
|
||||
schema: watching
|
||||
---
|
||||
|
|
Reference in a new issue