feat: meta description updates

This commit is contained in:
Cory Dransfeldt 2024-05-21 13:31:09 -07:00
parent 81c528e44f
commit 3b9fbf7dec
No known key found for this signature in database
41 changed files with 58 additions and 23 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "16.6.0",
"version": "16.7.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "16.6.0",
"version": "16.7.0",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.2.2",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "16.6.0",
"version": "16.7.0",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -8,7 +8,18 @@
Books • {{ book.title }} • {{ meta.siteName }}
{% else %}
{{ meta.siteName }}
{% endif %}
{%- endif -%}
{%- endcapture -%}
{%- capture pageDescription -%}
{%- if schema == 'blog' -%}
{{ post_excerpt | markdown | strip_html }}
{% elsif book.description %}
{{ book.description }}
{% elsif description %}
{{ description }}
{% else %}
{{ meta.siteDescription }}
{%- endif -%}
{%- endcapture -%}
{%- capture ogImage -%}
{%- if schema == 'blog' -%}
@ -25,7 +36,7 @@
{{ book.image }}
{%- else -%}
{{ meta.meta_data.opengraph_default }}
{%- endif -%}
{%- endif -%}
{%- endcapture -%}
<!doctype html>
<html lang="en">
@ -38,8 +49,8 @@
<script async data-id="101449513" src="/23af0256fe76a.js"></script>
<link rel="canonical" href="{{ fullUrl }}" />
<meta property="og:title" content="{{ pageTitle }}" />
<meta name="description" content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
<meta property="og:description" content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
<meta name="description" content="{{ pageDescription | escape | strip }}" />
<meta property="og:description" content="{{ pageDescription | escape | strip }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ fullUrl }}" />
<meta property="og:image" content="{{ ogImage }}" />

View file

@ -11,7 +11,7 @@ layout: default
{% if yearString == currentYearString %}
<p>I've finished <strong class="highlight-text">{{ bookData.size }} books</strong> this year.</p>
{% else %}
<p>I finished <strong class="highlight-text">{{ bookData.size }} books</strong> in {{ year }}</p>
<p>I finished <strong class="highlight-text">{{ bookData.size }} books</strong> in {{ year }}.</p>
{% endif %}
<hr class="large-spacing" />
{% render "partials/media/grid.liquid", data:bookData, shape: "vertical", count: 200, loading: "eager" %}

View file

@ -1,5 +1,6 @@
---
title: 400
description: Nah, that's a bad request.
layout: default
permalink: /400.html
---

View file

@ -1,5 +1,6 @@
---
title: 404
description: What kind of idiots do you have working here? Hurry up and skip out on the room service bill!
layout: default
permalink: /404.html
image: /assets/img/404.jpg

View file

@ -1,5 +1,6 @@
---
title: Currently reading • Books
description: Here's what I'm reading at the moment.
layout: default
permalink: "/books/index.html"
updated: "now"

View file

@ -1,5 +1,6 @@
---
title: Want to read • Books
description: These are books I want to read, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.
layout: default
pagination:
data: collections.booksToRead

View file

@ -1,5 +1,6 @@
---
title: 2020 • Books
description: "This is everything I read in 2020. My favorites were: every book in The Expanse series and I'll Be Gone in the Dark. I finished 34 books in 2020."
year: 2020
layout: partials/media/books/year
permalink: "/books/years/2020.html"

View file

@ -1,5 +1,6 @@
---
title: 2021 • Books
description: "This is everything I read in 2021. My favorites were: This Is How They Tell Me The World Ends, Sandworm, Empire of Pain, Say Nothing, Sigh, Gone and Leviathan Falls. I finished 53 books in 2021."
year: 2021
layout: partials/media/books/year
permalink: "/books/years/2021.html"

View file

@ -1,5 +1,6 @@
---
title: 2022 • Books
description: "This is everything I read in 2022. My favorites were: Sellout, The Sins of Our Fathers, Drive, Adnan's Story and The Lazarus Heist. I finished 67 books in 2022."
year: 2022
layout: partials/media/books/year
permalink: "/books/years/2022.html"

View file

@ -1,5 +1,6 @@
---
title: 2023 • Books
description: "This is everything I read in 2023. My favorites were: Stay True, Where Are Your Boys Tonight?, Trouble Boys, Tracers in the Dark and Girl in a Band. I finished 69 books in 2023."
year: 2023
layout: partials/media/books/year
permalink: "/books/years/2023.html"

View file

@ -1,5 +1,6 @@
---
title: 2024 • Books
description: "Here's what I'm reading at the moment."
year: 2024
layout: partials/media/books/year
permalink: "/books/years/2024.html"

View file

@ -2,7 +2,7 @@
title: Feeds
layout: default
permalink: /feeds.html
description: 'Content feeds exposed by and generated from my site.'
description: Content feeds exposed by and generated from my site.
---
<h2 class="page-header">{{ title }}</h2>

View file

@ -1,5 +1,6 @@
---
title: Albums • 3 months
description: All of the albums I've listened to over the last 3 months.
layout: default
pagination:
data: music.threeMonth.albums

View file

@ -1,5 +1,6 @@
---
title: Albums • all time
description: All of the albums I've listened to.
layout: default
pagination:
data: music.allTime.albums

View file

@ -1,5 +1,6 @@
---
title: Albums • This month
description: All of the albums I've listened to over the past month.
layout: default
pagination:
data: music.month.albums

View file

@ -1,5 +1,6 @@
---
title: Albums • This week
description: All of the albums I've listened to this week.
layout: default
pagination:
data: music.week.albums

View file

@ -1,5 +1,6 @@
---
title: Artists • 3 months
description: All of the artists I've listened to over the last 3 months.
layout: default
pagination:
data: music.threeMonth.artists

View file

@ -1,5 +1,6 @@
---
title: Artists • all time
description: All of the artists I've listened to.
layout: default
pagination:
data: music.allTime.artists

View file

@ -1,5 +1,6 @@
---
title: Artists • This month
description: All of the artists I've listened to over the past month.
layout: default
pagination:
data: music.month.artists

View file

@ -1,5 +1,6 @@
---
title: Artists • This week
description: All of the artists I've listened to this week.
layout: default
pagination:
data: music.week.artists

View file

@ -1,5 +1,6 @@
---
title: Tracks • 3 months
description: All of the tracks I've listened to over the last 3 months.
layout: default
pagination:
data: music.threeMonth.tracks

View file

@ -1,5 +1,6 @@
---
title: Artists • all time
description: All of the tracks I've listened to.
layout: default
pagination:
data: music.allTime.tracks

View file

@ -1,5 +1,6 @@
---
title: Tracks • This month
description: All of the tracks I've listened to over the past month.
layout: default
pagination:
data: music.month.tracks

View file

@ -1,5 +1,6 @@
---
title: Tracks • This week
description: All of the tracks I've listened to this week.
layout: default
pagination:
data: music.week.tracks

View file

@ -2,7 +2,7 @@
title: Now
layout: default
permalink: /now.html
description: "See what I'm doing now."
description: See what I'm doing now.
updated: 2024-05-18T15:49:00Z
---
<h2 class="page-header">{{ title }}</h2>

View file

@ -1,6 +1,6 @@
---
title: Search
description: "Search through and find the posts and links on my site."
description: Search through and find the posts and links on my site.
layout: default
permalink: /search.html
---

View file

@ -1,5 +1,6 @@
---
title: Favorite movies
description: These are my favorite movies. There are many like them, but these are mine.
layout: default
permalink: "/watching/favorite-movies/index.html"
schema: watching

View file

@ -1,5 +1,6 @@
---
title: Favorite shows
description: These are my favorite shows. There are many like them, but these are mine.
layout: default
permalink: "/watching/favorite-shows/index.html"
schema: watching

View file

@ -1,5 +1,6 @@
---
title: Watching
description: Here's all of the TV and movies I've been watching presented in what is (hopefully) an organized fashion.
layout: default
permalink: "/watching/index.html"
updated: "now"

View file

@ -1,5 +1,6 @@
---
title: Recent movies
description: These are the movies I've watched recently. There are many like them, but these are mine.
layout: default
permalink: "/recent/movies/index.html"
schema: watching

View file

@ -1,5 +1,6 @@
---
title: Recent shows
description: These are the shows I've watched recently. There are many like them, but these are mine.
layout: default
permalink: "/recent/shows/index.html"
schema: watching

View file

@ -1,5 +1,6 @@
---
title: Movies to watch
description: These are movies I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.
layout: default
pagination:
data: movies.toWatch

View file

@ -1,5 +1,6 @@
---
title: Shows to watch
description: These are shows I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.
layout: default
pagination:
data: tv.toWatch
@ -11,7 +12,7 @@ schema: watching
<a class="back-link-header link-icon flex-centered" href="/watching">{% tablericon "arrow-left" "Go back" %} Go back</a>
{% if pagination.pageNumber == 0 %}
<h2 class="page-header">{{ title }}</h2>
<p>These are shpws I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.</p>
<p>These are shows I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.</p>
<hr class="large-spacing" />
{% endif %}
<ul class="link-list reduced-spacing">

View file

@ -2,7 +2,7 @@
title: Blogroll
layout: default
permalink: /blogroll.html
description: 'These are awesome blogs that I enjoy and you may enjoy too.'
description: These are awesome blogs that I enjoy and you may enjoy too.
---
<h2 class="page-header">{{ title }}</h2>
<p>You can <a onclick="clicky?.log('/blogroll','OPML download', 'download');" href="/blogroll.opml">download an OPML file</a> containing all of these feeds and import them into your RSS reader.</p>

View file

@ -2,7 +2,7 @@
title: Contact
layout: default
permalink: /contact.html
description: 'How to contact me.'
description: How to contact me.
---
<h2 class="page-header">{{ title }}</h2>
<div class="contact-wrapper">

View file

@ -2,6 +2,7 @@
title: Success
layout: default
permalink: /contact/success.html
description: I'll be in touch soon. Thanks for your message!
---
<div class="text-centered">
<h2 class="contact-success-header">{{ title }}</h2>

View file

@ -2,7 +2,7 @@
title: Referrals
layout: default
permalink: /referrals.html
description: 'Referral links for services that I use.'
description: Referral links for services that I use.
---
<h2 class="page-header">{{ title }}</h2>

View file

@ -2,8 +2,7 @@
title: Uses
layout: default
permalink: /uses.html
description: 'Software, tools and services that I use regularly.'
image: /assets/img/pages/uses.jpg
description: Software, tools and services that I use regularly.
---
<h2 class="page-header">{{ title }}</h2>

View file

@ -2,13 +2,9 @@
title: Webrings
layout: default
permalink: /webrings.html
description: "Webrings are awesome! These are the ones I'm a member of."
description: Webrings are awesome! These are the ones I'm a member of.
---
<h2
class="m-0 text-xl font-black leading-tight tracking-normal dark:text-white md:text-2xl mb-2"
>
{{ title }}
</h2>
<h2 class="page-header">{{ title }}</h2>
[Webrings](https://en.wikipedia.org/wiki/Webring) are _awesome_. I'm a member of a few that follow. Check them out!