summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/new-in.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/new-in.html')
-rw-r--r--layouts/shortcodes/new-in.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/shortcodes/new-in.html b/layouts/shortcodes/new-in.html
new file mode 100644
index 000000000..ab0abb273
--- /dev/null
+++ b/layouts/shortcodes/new-in.html
@@ -0,0 +1,8 @@
+{{ $version := .Get 0 }}
+{{ if not $version }}
+{{ 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://gohugo.io/news/%s-relnotes/" $version }}" target="_blank">New in v{{$version}}</a>
+</button> \ No newline at end of file