diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog-post.html | 12 | ||||
| -rw-r--r-- | templates/macros/blog.html | 12 |
2 files changed, 16 insertions, 8 deletions
diff --git a/templates/blog-post.html b/templates/blog-post.html index 3bde48d..4f1e5a2 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -21,7 +21,9 @@ <meta property="article:author" content="https://dennisfink.me/about"> {% if this.publication_date %} <meta property="article:published_time" - content="{{ this.publication_date }}T00:00:00+02:00"> + content="{{ this.publication_date }}T00:00:00+02:00" + data-pagefind-meta="date[content]" + data-pagefind-sort="date[content]"> {% endif %} {% if latest_change %} <meta property="article:modified_time" @@ -29,10 +31,14 @@ {% endif %} {% if this.category %} {% set category = site.get("/categories/" + this.category) %} - <meta property="article:section" content="{{ category.name }}"> + <meta property="article:section" + content="{{ category.name }}" + data-pagefind-filter="category[content]"> {% endif %} {% for t in this.tags %} - <meta property="article:tag" content="{{ t }}"> + <meta property="article:tag" + content="{{ t }}" + data-pagefind-filter="tag[content]"> {% endfor %} {% endblock %} diff --git a/templates/macros/blog.html b/templates/macros/blog.html index c3b5390..09e6a65 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -1,7 +1,7 @@ {% from "macros/pagination.html" import render_pagination %} {% macro render_toc(toc, maxdepth=2) %} - <nav aria-label="Table of contents"> + <nav aria-label="Table of contents" data-pagefind-ignore> <p>Table of contents</p> <ol> {% for item in toc recursive %} @@ -37,7 +37,7 @@ <h2> <a href="{{ post|url }}" class="u-url p-name">{{ post.title }}</a> </h2> - <dl> + <dl data-pagefind-ignore> {% if post.publication_date %} <div> <dt>Posted:</dt> @@ -86,7 +86,7 @@ <div class="e-content">{{ post.body }}</div> <footer> {% if post.tags %} - <section> + <section data-pagefind-ignore> <ul aria-label="Tags"> <li>Tagged with</li> {% for tag in post.tags %} @@ -101,12 +101,14 @@ </ul> </section> {% endif %} - <section> + <section data-pagefind-ignore> <p>Reply to this post by <a rel="nofollow" href="mailto:me+blog@dennisfink.me?subject=RE: {{ post.title }}">email</a>.</p> </section> {% if post.changelog %} - <section class="changelog" aria-labelledby="changelog-heading"> + <section class="changelog" + aria-labelledby="changelog-heading" + data-pagefind-ignore> <h3 id="changelog-heading">Changelog</h3> <ul> {% for entry in post.changelog.blocks %} |
