From 4d2a9f81e69ef6614b1e7f70ecd420c51a3341df Mon Sep 17 00:00:00 2001
From: saagit <55336016+saagit@users.noreply.github.com>
Date: Sun, 16 Aug 2020 08:37:49 -0700
Subject: [PATCH] Add option to output canonical URL
Canonical links are handy to tell search engines which page is
canonical amongst various permutations of URLs (e.g. https vs. http
and www subdomain or not). Add an option to output one via the
following pelicanconf.py setting:
REL_CANONICAL = True
---
templates/base.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/templates/base.html b/templates/base.html
index a43e612..d976deb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -115,6 +115,9 @@
{% endif %}
+ {% if REL_CANONICAL %}
+
+ {% endif %}
{% block meta %}