feat: reorg layouts and pages

This commit is contained in:
Devin Haska 2024-02-22 11:32:31 -08:00
parent 0b9253fb02
commit c2f112a41b
25 changed files with 91 additions and 119 deletions

View file

@ -1,5 +1,6 @@
---
title: Dissenter on the Bench
subtitle: Ruth Bader Ginsburg's Life & Work
author: Victoria Ortiz
isbn: 978054497364
rating: 4

View file

@ -1,3 +1,5 @@
{
"tags": "catalogue"
"layout": "catalogue",
"tags": "catalogue",
"permalink": "catalogue/index.html"
}

View file

@ -1,26 +0,0 @@
---
layout: base
pagination:
data: collections.catalogueByType
size: 1
alias: type
filter:
- catalogue
eleventyExcludeFromCollections: true
permalink: /catalogue/{{ type | pluralize | slugify }}/index.html
eleventyComputed:
title: Catalogue - {{ type | pluralize | capitalize }}
---
<h1>{{ type | pluralize | capitalize }}</h1>
{% set catalogueTypes = collections.catalogueByType | keys %}
<ul class="[ cluster list-none p-0 ]" style="--gap: var(--spacing-0\.5)">
{% for type in catalogueTypes %}
<li>
<a class="[ pill ] [ flex px-1 py-0.5 gap-0.5 ]"
href="/catalogue/{{ type | pluralize }}">{{ type | pluralize }}<span class="[ pill-count ]">{{ collections.catalogueByType[ type ] | length }}</span></a>
</li>
{% endfor %}
</ul>
{% set items = collections.catalogueByType[ type ] | reverse %}
{% include "partials/catalogue.html" %}

View file

@ -1,5 +1,5 @@
{
"layout": "catalogue",
"layout": "comic",
"tags": "comic",
"permalink": "catalogue/comics/{{ page.fileSlug }}/index.html"
}

View file

@ -1,7 +1,7 @@
---
title: "Monstress: Awakening"
publisher: Image Comics
subtitle: Majorie Liu, Sana Takeda
author: Majorie Liu, Sana Takeda
volume: 1
year: 2017
image: https://cdn.wonderfulfrog.com/monstress-vol-1.jpeg

View file

@ -1,7 +1,7 @@
---
title: "Monstress: The Blood"
publisher: Image Comics
subtitle: Majorie Lui, Sana Takeda
author: Majorie Lui, Sana Takeda
volume: 2
year: 2017
image: https://cdn.wonderfulfrog.com/monstress-vol-2-tp_77ea1f170a.jpg

View file

@ -1,7 +1,7 @@
---
title: "The Monster Sisters"
publisher: "Orca Books"
subtitle: "Gareth Gaudin"
author: "Gareth Gaudin"
year: 2021
isbn: 9781459822290
rating: 4

View file

@ -1,6 +1,6 @@
---
title: Her Story
subtitle: PC
platform: PC
date: 2024-01-07
image: https://cdn.wonderfulfrog.com/Her_Story_store_art.jpg
tags: ["pc", "narrative", "simulator"]

View file

@ -1,6 +0,0 @@
---
layout: base
permalink: /books/index.html
---
Books will eventually go here.

View file

@ -1,19 +0,0 @@
---
layout: base
permalink: /catalogue/index.html
title: Catalogue
---
<h1>Catalogue</h1>
<p>A collection of my thoughts on various forms of media that I consume.</p>
{% set items = collections.catalogue %}
{% set catalogueTypes = collections.catalogueByType | keys %}
<ul class="[ cluster list-none p-0 ]" style="--gap: 0.5rem">
{% for type in catalogueTypes %}
<li>
<a class="[ pill ] [ flex px-1 py-0.5 gap-0.5 ]"
href="/catalogue/{{ type | pluralize }}">{{ type | pluralize }}<span class="[ pill-count ]">{{ collections.catalogueByType[ type ] | length }}</span></a>
</li>
{% endfor %}
</ul>
{% include "partials/catalogue.html" %}

View file

@ -1,8 +0,0 @@
---
permalink: /robots.txt
eleventyExcludeFromCollections: true
---
Sitemap: {{ meta.url }}/sitemap.xml
User-agent: *
Disallow:

View file

@ -1,29 +0,0 @@
---
permalink: /rss.xml
layout: null
eleventyExcludeFromCollections: true
excludeFromSitemap: true
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ meta.siteName }}</title>
<subtitle>{{ meta.siteDescription }}</subtitle>
<link href="{{ meta.url }}/feed.xml" rel="self"/>
<link href="{{ meta.url }}/" rel="alternate" type="text/html"/>
<id>{{ meta.url }}/</id>
<author>
<name>{{ meta.author }}</name>
</author>
{% for post in collections.post %}
<entry>
<id>{{ meta.url }}{{ post.url }}</id>
<title>{{ post.data.title | escape }}</title>
<link href="{{ meta.url }}{{ post.url }}"/>
<published>{{ post.date }}</published>
{%- for tag in post.data.tags %}
<category term="{{ tag }}" />
{%- endfor %}
<content type="html">{{ post.content | escape }}</content>
</entry>
{% endfor %}
</feed>

View file

@ -1,13 +0,0 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %}
<url>
<loc>{{ site.url }}{{ page.url | url }}</loc>
<lastmod>{{ page.date.toISOString() }}</lastmod>
</url>
{% endfor %}
</urlset>

View file

@ -1,17 +0,0 @@
---
layout: base
pagination:
data: collections.postsByTag
size: 1
alias: tag
filter:
- post
permalink: /tags/{{ tag | slugify }}/index.html
---
<h1>Tag: {{ tag }}</h1>
<p>
All posts tagged with "{{ tag }}", or go back to <a href="/tags">all tags</a>.
</p>
{% set items = collections.postsByTag[ tag ] %}
{% include "partials/archive.html" %}

View file

@ -1,18 +0,0 @@
---
layout: base
permalink: /tags/index.html
title: All tags
---
{% set tags = collections.post | allTagCounts %}
<section class="[ flow ]">
<h1>{{ title }}</h1>
<ol class="[ cluster list-none p-0 ]" style="--gap: var(--spacing-0\.5)">
{% for tag in tags %}
<li>
<a href="/tags/{{ tag.tag | slugify }}"
class="[ pill ] [ flex px-1 py-0.5 gap-0.5 ]">{{ tag.tag }} <span class="[ pill-count ]">{{ tag.count }}</span></a>
</li>
{% endfor %}
</ol>
</section>