mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
13 lines
447 B
HTML
13 lines
447 B
HTML
{{ $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://github.com/gohugoio/hugo/releases/tag/v%s" $version }}"
|
|
target="_blank"
|
|
>New in v{{ $version }}</a
|
|
>
|
|
</button>
|