From 4be31aa151fe23d963e126466f3b001382a389d6 Mon Sep 17 00:00:00 2001 From: Heitor Pascoal de Bittencourt Date: Tue, 5 Mar 2024 09:29:16 -0300 Subject: [PATCH 1/2] tag page: add / to "all tags" link This is to improve Google indexing pages, for the /tags/ page. In GitHub Pages, the URL /tags does not exist per se, but is a redirect to /tags/. Google Crawler gets confused with 301 HTTP status and does not index it. --- templates/tags/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/tags/single.html b/templates/tags/single.html index 92183b6..19c899b 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -12,7 +12,7 @@ ({{ term.pages | length }} post{{ term.pages | length | pluralize }}) - + Show all tags From cf114ec7e2685b002d06f9198d205826f590ea65 Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Sat, 4 May 2024 12:20:58 +1000 Subject: [PATCH 2/2] Fix postview navigation --- templates/macros/post.html | 50 ++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/templates/macros/post.html b/templates/macros/post.html index c8627c9..5ea20d1 100644 --- a/templates/macros/post.html +++ b/templates/macros/post.html @@ -33,31 +33,33 @@ {% macro earlier_later(page) %} - {%- if config.extra.enable_post_view_navigation and page.lower or page.higher %} -