From 3851b0853cd26a39d530264dffa6034a01f70227 Mon Sep 17 00:00:00 2001 From: MTRNord Date: Thu, 16 Apr 2026 17:35:13 +0200 Subject: [PATCH] Add basic pagefind setup Signed-off-by: MTRNord --- pagefind.yml | 10 ++++++++++ templates/docs/index.html | 2 +- templates/docs/with_menu.html | 4 ++-- templates/includes/header.html | 5 +++++ templates/page.html | 2 +- templates/post.html | 10 ++++++---- templates/skel.html | 5 +++-- 7 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 pagefind.yml diff --git a/pagefind.yml b/pagefind.yml new file mode 100644 index 0000000000..0f3276aca9 --- /dev/null +++ b/pagefind.yml @@ -0,0 +1,10 @@ +site: public +output_subdir: pagefind +exclude_selectors: + # Ignore codeblocks + - "code" + # Blocked due to https://github.com/Pagefind/pagefind/issues/1134 + # - "#that-s-all-i-know" + # - "#that-s-all-i-know-checkered-flag" + # - "#that-s-all-i-know+p" + # - "#that-s-all-i-know-checkered-flag+p" diff --git a/templates/docs/index.html b/templates/docs/index.html index 7445c2bf10..946946a230 100644 --- a/templates/docs/index.html +++ b/templates/docs/index.html @@ -1,6 +1,6 @@ {% extends "skel.html" %} {% block content %} -
+

{{ section.title }}

{% set iso_date = section.extra.updated | date(format = '%Y-%m-%d') %} diff --git a/templates/docs/with_menu.html b/templates/docs/with_menu.html index f580de326a..58130306b3 100644 --- a/templates/docs/with_menu.html +++ b/templates/docs/with_menu.html @@ -16,8 +16,8 @@ {% set root_section = get_section(path="docs/technical/_index.md") %} {% endif %} -
-
+
+
{% for doc_section_path in docs_sections.subsections %} {% set doc_section = get_section(path=doc_section_path) %} diff --git a/templates/includes/header.html b/templates/includes/header.html index b652624ac6..f3c4ab3370 100644 --- a/templates/includes/header.html +++ b/templates/includes/header.html @@ -7,6 +7,11 @@