feat: add meta description tags to various pages

This commit is contained in:
Devin Haska 2024-03-23 18:50:06 -07:00
parent 8eb736f8dd
commit 3fc923551b
14 changed files with 20 additions and 6 deletions

View file

@ -0,0 +1,6 @@
module.exports = {
tags: "catalogue",
eleventyComputed: {
description: (data) => `My thoughts on ${data.title}.`,
},
};

View file

@ -1,3 +0,0 @@
{
"tags": "catalogue"
}

View file

@ -1,5 +1,6 @@
---
title: About
description: All about me!
---
# About me

View file

@ -1,5 +1,6 @@
---
title: Blogroll
description: A collection of my favourite sites.
---
<section class="[ flow ]">

View file

@ -9,6 +9,7 @@ eleventyExcludeFromCollections: true
permalink: /catalogue/{{ type | pluralize | slugify }}/index.html
eleventyComputed:
title: Catalogue - {{ type | pluralize | capitalize }}
description: My thoughts on various {{ type | pluralize }}.
---
{% from "macros/catalogue.njk" import yearList %}

View file

@ -1,5 +1,6 @@
---
title: Catalogue
description: A collection of media I've consumed in one way or another.
---
{% from "macros/catalogue.njk" import yearList %}

View file

@ -1,5 +1,7 @@
---
title: Changelog
eleventyComputed:
description: All of the latest changes on {{ meta.siteName }}.
---
# Changelog

View file

@ -1,6 +1,6 @@
---
layout: "layouts/base"
title: Colophon
description: A little bit of everything about this site.
---
# Colophon

View file

@ -1,5 +1,6 @@
---
title: /now
description: What's going on now and all the latest with myself.
---
{% set recentTrack = lastfm.recentTracks[0] %}

View file

@ -1,7 +1,6 @@
---
layout: "layouts/base"
permalink: /posts/index.html
title: Posts
description: Read all of my posts.
---
{% from "macros/posts.njk" import yearList %}

View file

@ -1,5 +1,6 @@
---
title: Styleguide
description: A demo of the site's theme.
---
<h1>Heading one</h1>

View file

@ -6,6 +6,8 @@ pagination:
filter:
- post
permalink: /tags/{{ tag | slugify }}/index.html
eleventyComputed:
description: Browse all posts tagged with "{{ tag }}".
---
{% from "macros/posts.njk" import yearList %}

View file

@ -1,5 +1,6 @@
---
title: All tags
description: Browse posts by all tags.
---
{% set tags = collections.post | allTagCounts %}

View file

@ -1,5 +1,6 @@
---
title: /uses
description: A list of my favourite things and why I like 'em.
---
# Uses