Compare commits

...

2 Commits

Author SHA1 Message Date
34c37f37e1 Minor page updates 2024-08-23 17:33:33 -05:00
3ec15ed8e2 Tweaks to structured data 2024-08-23 17:33:22 -05:00
4 changed files with 17 additions and 8 deletions

View File

@ -5,6 +5,8 @@ export default {
language: "en",
description: "The personal website and blog of Nathan Upchurch.",
author: {
givenName: "Nathan"
familyName: "Upchurch"
name: "Nathan Upchurch",
email: "blog@upchur.ch",
url: "https://nathanupchurch.com/me",

View File

@ -3,17 +3,23 @@
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Article",
"headline": "{{ title }}",
"@type": "BlogPosting",
"articleBody": "{{ content | striptags }}"
"author": {
"@type": "Person",
"name": "{{ metadata.author.name }}"
"familyName": "{{ metadata.author.familyName }}",
"givenName": "{{ metadata.author.givenName }}",
"image": "{{ metadata.url }}{{ metadata.author.profilePic }}",
"name": "{{ metadata.author.name }}",
"url": "{{ metadata.author.url }}"
},
"datePublished": "{{ date }}",
"description": "{% if synopsis %}{{ synopsis}}{% endif %}",
"headline": "{{ title }}",
"image": "{% if imageURL %}{{ imageURL | htmlBaseUrl(metadata.url) }}{% else %}{{ metadata.defaultPostImageURL | htmlBaseUrl(metadata.url) }}{% endif %}",
"inLanguage": "{{ metadata.language }}",
"name": "{{ title }}",
"url": "{{ page.url | htmlBaseUrl(metadata.url) }}",
"articleBody": "{{ content | striptags }}"
}
</script>
<!-- Open Graph -->

View File

@ -7,7 +7,7 @@ eleventyNavigation:
<h1>Nathans Blog.</h1>
<p class="page-block nodropcap">
Looking for something in particular? Have a look at <a href="/tags/">this convenient list of post categories</a> to filter results by topic.
Thank you for visiting my blog; I write about lots of things here, from <a href="/tags/storytime">personal stories,</a> to <a href="/tags/gnu-linux">tech,</a> <a href="/tags/vegan-cooking">food,</a> and <a href="/tags/incense">incense.</a> Explore all posts below or <a href="/tags/">choose a topic.</a>
</p>
<h2>Whats New:</h2>
{% set postslist = collections.posts %}

View File

@ -11,8 +11,9 @@ pagination:
addAllPagesToCollections: true
layout: layouts/base.njk
eleventyComputed:
title: Tagged “{{ tag }}”
permalink: "/tags/{{ tag | slugify }}/"
title: Posts tagged “{{ tag }}”
permalink: "/tags/{{ tag | slugify }}/"
description: A list of every post I've written tagged “{{ tag }}.”
---
<h1>More posts tagged “{{ tag }}.”
<a href="/feeds/{{ tag | slugify }}.xml">
@ -37,7 +38,7 @@ permalink: "/tags/{{ tag | slugify }}/"
</svg>
</a>
</h1>
<p class="page-block nodropcap">Heres everything Ive posted with the tag “{{ tag }}:”</p>
<p class="page-block nodropcap">Heres everything Ive posted tagged “{{ tag }}.” Want to be notified when I post on this topic? <a href="/feeds/{{ tag | slugify }}.xml">Subscribe to “{{ tag }}.”</a></p>
{% set postslist = collections[ tag ] %}
{% include "postslist.njk" %}