From 4831bce081ce7db54fe0f9f11d2acd368b18c84b Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Fri, 17 Oct 2025 12:05:53 -0700 Subject: [PATCH] fix: Canonical URL for articles index --- blog/index.md | 1 + theme/main.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/blog/index.md b/blog/index.md index 3441e732..94ec6154 100644 --- a/blog/index.md +++ b/blog/index.md @@ -1,5 +1,6 @@ --- description: Privacy-related news stories, product reviews, opinion pieces, and other important articles from Privacy Guides contributors. +canonical_url: https://www.privacyguides.org/posts/tag/articles/ hide: - footer --- diff --git a/theme/main.html b/theme/main.html index 3e04be72..785fb529 100644 --- a/theme/main.html +++ b/theme/main.html @@ -34,7 +34,9 @@ {% elif config.site_author %} {% endif %} - {% if page.canonical_url %} + {% if page.meta and page.meta.canonical_url %} + + {% elif page.canonical_url %} {% endif %} {% if page.previous_page %}