summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/deprecated-in.html
blob: 7219d7f541a8f797d8f9fac1128e137166e49c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ $_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 }}
  <aside>
    <div class="admonition-content bl bw2 b--dark-red" >
      <p>Deprecated in <a href="{{ $href }}">{{ $version }}</a>.</p>
      {{ $.Inner }}
    </div>
  </aside>
{{ else }}
  {{ errorf "The %q shortcode requires a single positional parameter indicating version. See %s" .Name .Position }}
{{ end }}