Indieweb profile links in head

This commit is contained in:
2026-01-03 14:51:15 -06:00
parent 4e62a72096
commit 6896c7fc8e
2 changed files with 4 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ export default {
socialLinks: [
{
customAttribute: `rel="me"`,
excludeFromHead: true,
title: "My Blog",
linkURL: "https://nathanupchurch.com",
linkDisplay: "Blog",

View File

@@ -5,6 +5,9 @@
<link rel="stylesheet" type="text/css" href="/css/index.css" />
<link rel="stylesheet" type="text/css" href="/css/webfonts/webfonts.css" />
<link rel="stylesheet" type="text/css" href="/css/code.css" />
<!-- Indieweb profile links -->
{% if not excludeProfilesFromHead %}{% for link in metadata.socialLinks %}{% if not link.excludeFromHead %}<link {% if link.customAttribute %} {{ link.customAttribute | safe }} {% endif %} href="{{ link.linkURL }}" />{% endif %}{% endfor %}{% endif %}
<!-- /Indieweb profile links -->
{% include "structuredData.njk" %}
{% include "analytics.html" %}
</head>