-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |