Implement Octothorpes

This commit is contained in:
n_u
2026-08-05 13:26:51 -05:00
parent e254c9ff7a
commit 11cfe924fa
+7
View File
@@ -19,6 +19,13 @@
{% if tags and tags.includes('tagList') %} {% if tags and tags.includes('tagList') %}
<link rel="stylesheet" type="text/css" href="/css/tags.css" /> <link rel="stylesheet" type="text/css" href="/css/tags.css" />
{% endif %} {% endif %}
{% if tags and tags.includes('posts') and not octothorpeExclude %}
<!-- Octothorpes: https://docs.octothorp.es/quickstart -->
<link rel="preload" as="fetch" href="https://octothorp.es/?uri={{ page.url | htmlBaseUrl(metadata.url) }}">
{%- for tag in tags | filterTagList %}
<link rel="octo:octothorpes" href="{{ tag | slugify }}" >
{%- endfor %}
{% endif %}
{% if tags and (tags.includes('posts') or tags.includes('now')) %} {% if tags and (tags.includes('posts') or tags.includes('now')) %}
<link rel="stylesheet" type="text/css" href="/css/audio-player.css" /> <link rel="stylesheet" type="text/css" href="/css/audio-player.css" />
<link rel="stylesheet" type="text/css" href="/css/code.css" /> <link rel="stylesheet" type="text/css" href="/css/code.css" />