Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/forestryio/hugo-theme-novela.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Taillandier <frank@forestry.io>2019-12-06 18:12:52 +0300
committerGitHub <noreply@github.com>2019-12-06 18:12:52 +0300
commitac2626f7bcdf57cbe0af588bdb09d89b8a9a9e97 (patch)
tree7d2b7375b53322e25804895ec77aea8a5f0e9451 /layouts
parent651173e4f6a935c7d112107fdfba919056bc5fe3 (diff)
fix: add Forestry Instant Previews ID
Help preview redirect to the current URL edited in Forestry
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head/head.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index 18f9727..d7a7fbc 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -7,4 +7,7 @@
<link rel="stylesheet" href="{{ $prism.RelPermalink }}" />
<link href="https://fonts.googleapis.com/css?family=Merriweather&display=swap" rel="stylesheet">
{{ partial "seo/print.html" . }}
-</head> \ No newline at end of file
+ {{ with .Params.forestry_instant_preview_id }}
+ {{- safeHTML (printf "<meta property='forestry_instant_preview_id' content='%s'>" .) -}}
+ {{ end -}}
+</head>