summaryrefslogtreecommitdiffstats
path: root/docs/layouts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-27 17:02:23 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-27 17:02:23 +0200
commita838a27e4c82626f9b3227e02a157119673e5dcf (patch)
tree9d220eadc3fcaedfd77be3fa466fec14e038cfd1 /docs/layouts
parent273d9f69a6cb46ce632b340ebb1191e2e083323b (diff)
parentd3927310d5b2404c3238f9b899db3329ea516490 (diff)
Diffstat (limited to 'docs/layouts')
-rw-r--r--docs/layouts/shortcodes/code-toggle.html2
-rw-r--r--docs/layouts/shortcodes/new-in.html11
2 files changed, 9 insertions, 4 deletions
diff --git a/docs/layouts/shortcodes/code-toggle.html b/docs/layouts/shortcodes/code-toggle.html
index b4cfaaa20..3b151669f 100644
--- a/docs/layouts/shortcodes/code-toggle.html
+++ b/docs/layouts/shortcodes/code-toggle.html
@@ -44,7 +44,7 @@ Renders syntax-highlighted configuration data in JSON, TOML, and YAML formats.
{{- /* Render. */}}
{{- $code := "" }}
{{- with $config }}
- {{- $file = $file | default "config" }}
+ {{- $file = $file | default "hugo" }}
{{- $sections := (split . ".") }}
{{- $configSection := index $.Site.Data.docs.config $sections }}
{{- $code = dict $sections $configSection }}
diff --git a/docs/layouts/shortcodes/new-in.html b/docs/layouts/shortcodes/new-in.html
index e81fda3c5..71d1abfdf 100644
--- a/docs/layouts/shortcodes/new-in.html
+++ b/docs/layouts/shortcodes/new-in.html
@@ -1,8 +1,13 @@
{{ $version := .Get 0 }}
{{ if not $version }}
-{{ errorf "Missing version in new-in shortcode "}}
+ {{ errorf "Missing version in new-in shortcode " }}
{{ 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://github.com/gohugoio/hugo/releases/tag/v%s" $version }}" target="_blank">New in v{{$version}}</a>
+<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://github.com/gohugoio/hugo/releases/tag/v%s" $version }}"
+ target="_blank"
+ >New in v{{ $version }}</a
+ >
</button>