summaryrefslogtreecommitdiffstats
path: root/docs/layouts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-08 19:39:33 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-08 19:39:33 +0100
commit9d76b8fa34436d87ff023d95c39d60144ccd7f4d (patch)
treed157e6a0b8427ad4e3eb32e61a60c799f7d4f6d1 /docs/layouts
parent4576c82ed462bc9c3934f76181101df1c5a4157e (diff)
parentd706529720b3b2ccb99719ccd578062ca25a0cc2 (diff)
Diffstat (limited to 'docs/layouts')
-rw-r--r--docs/layouts/partials/hooks/before-body-end.html6
-rw-r--r--docs/layouts/shortcodes/new-in.html4
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/layouts/partials/hooks/before-body-end.html b/docs/layouts/partials/hooks/before-body-end.html
new file mode 100644
index 000000000..fb7ae20ba
--- /dev/null
+++ b/docs/layouts/partials/hooks/before-body-end.html
@@ -0,0 +1,6 @@
+{{ if .Page.Store.Get "hasMermaid" }}
+ <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
+ <script>
+ mermaid.initialize({ startOnLoad: true });
+ </script>
+{{ end }}
diff --git a/docs/layouts/shortcodes/new-in.html b/docs/layouts/shortcodes/new-in.html
index ab0abb273..e81fda3c5 100644
--- a/docs/layouts/shortcodes/new-in.html
+++ b/docs/layouts/shortcodes/new-in.html
@@ -4,5 +4,5 @@
{{ end }}
{{ $version = $version | strings.TrimPrefix "v" }}
<button class="bg-white hover:bg-gray-100 text-gray-800 font-semibold py-2 mr2 ml2 px-4 border border-gray-400 rounded shadow">
- <a href="{{ printf "https://gohugo.io/news/%s-relnotes/" $version }}" target="_blank">New in v{{$version}}</a>
-</button> \ No newline at end of file
+ <a href="{{ printf "https://github.com/gohugoio/hugo/releases/tag/v%s" $version }}" target="_blank">New in v{{$version}}</a>
+</button>