From 059b0e7965aa51379a5e157b75074111a0d02c29 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Mon, 14 Aug 2017 16:40:10 +1200 Subject: [PATCH] NEW Add canonical URL to documentation pages --- composer.lock | 10 +++++----- themes/docs/templates/Includes/DocumentationHead.ss | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/composer.lock b/composer.lock index 2336c10..e6e417d 100644 --- a/composer.lock +++ b/composer.lock @@ -587,16 +587,16 @@ }, { "name": "silverstripe/docsviewer", - "version": "2.0.0-beta6", + "version": "2.0.0-beta7", "source": { "type": "git", "url": "https://github.com/silverstripe/silverstripe-docsviewer.git", - "reference": "4b618c139c6fdb614208b2e7621261411482829d" + "reference": "a10cdd35f75d9c2cf5b43189de3a6fe2acead425" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/4b618c139c6fdb614208b2e7621261411482829d", - "reference": "4b618c139c6fdb614208b2e7621261411482829d", + "url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/a10cdd35f75d9c2cf5b43189de3a6fe2acead425", + "reference": "a10cdd35f75d9c2cf5b43189de3a6fe2acead425", "shasum": "" }, "require": { @@ -625,7 +625,7 @@ "documentation", "silverstripe" ], - "time": "2017-06-29T00:25:02+00:00" + "time": "2017-08-14T04:33:49+00:00" }, { "name": "silverstripe/dynamodb", diff --git a/themes/docs/templates/Includes/DocumentationHead.ss b/themes/docs/templates/Includes/DocumentationHead.ss index 70e4c8d..d5d9e98 100644 --- a/themes/docs/templates/Includes/DocumentationHead.ss +++ b/themes/docs/templates/Includes/DocumentationHead.ss @@ -6,6 +6,9 @@ <% include DocumentationFavicons %> + <% if $CanonicalUrl %> + + <% end_if %>