diff options
author | Frank Taillandier <frank@forestry.io> | 2019-12-06 18:12:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 18:12:52 +0300 |
commit | ac2626f7bcdf57cbe0af588bdb09d89b8a9a9e97 (patch) | |
tree | 7d2b7375b53322e25804895ec77aea8a5f0e9451 /layouts | |
parent | 651173e4f6a935c7d112107fdfba919056bc5fe3 (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.html | 5 |
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> |