hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

new-in.html (426B)

    1 {{ $version := .Get 0 }}
    2 {{ if not $version }}
    3 {{ errorf "Missing version in new-in shortcode "}}
    4 {{ end }}
    5 {{ $version = $version | strings.TrimPrefix "v" }}
    6 <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">
    7     <a href="{{ printf "https://github.com/gohugoio/hugo/releases/tag/v%s" $version }}" target="_blank">New in v{{$version}}</a>
    8 </button>