mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
This commit is contained in:
17
docs/layouts/shortcodes/deprecated-in.html
Normal file
17
docs/layouts/shortcodes/deprecated-in.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
|
||||
{{ with .Get 0 }}
|
||||
{{ $version := printf "v%v" (strings.TrimLeft "vV" .) }}
|
||||
{{ $href := printf "https://github.com/gohugoio/hugo/releases/tag/%s" $version }}
|
||||
{{ $text := (printf `Deprecated in <a href="%s">%s</a>.
|
||||
%s` $href $version $.Inner) | safeHTML }}
|
||||
|
||||
{{ partial "layouts/blocks/alert.html" (dict
|
||||
"text" $text
|
||||
"color" "orange"
|
||||
"icon" "exclamation"
|
||||
)
|
||||
}}
|
||||
{{ else }}
|
||||
{{ errorf "The %q shortcode requires a single positional parameter indicating version. See %s" .Name .Position }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user