From 1a213f60cdebe089d2f0c239db747aa2ba906ead Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Wed, 15 Jan 2025 19:37:25 +0000 Subject: [PATCH 1/2] Need to use with to use tha value --- src/partials/head-info.hbs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/partials/head-info.hbs b/src/partials/head-info.hbs index 3f616cfd..08293a92 100644 --- a/src/partials/head-info.hbs +++ b/src/partials/head-info.hbs @@ -1,6 +1,8 @@ {{#unless (ne page.attributes.no-canonical undefined)}} {{#if page.canonicalUrl}} + {{#with page.canonicalUrl}} + {{/with}} {{else}} {{/if}} From b05c868b969be3f3cfd19dc3f69045503a0c5d0e Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Tue, 21 Jan 2025 18:22:13 +0000 Subject: [PATCH 2/2] Always output canonical --- src/partials/head-info.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/partials/head-info.hbs b/src/partials/head-info.hbs index 08293a92..bb484ba4 100644 --- a/src/partials/head-info.hbs +++ b/src/partials/head-info.hbs @@ -1,4 +1,3 @@ - {{#unless (ne page.attributes.no-canonical undefined)}} {{#if page.canonicalUrl}} {{#with page.canonicalUrl}} @@ -6,7 +5,7 @@ {{else}} {{/if}} - {{/unless}} + {{#unless (eq page.attributes.pagination undefined)}} {{#with page.previous}} @@ -15,6 +14,7 @@ {{/with}} {{/unless}} + {{#with page.description}} {{/with}}