{% code type Selection int const ( Git Selection = iota List About Config ) %} {% code type GitSelection int const ( Readme GitSelection = iota Log Summary Refs Tree ) %} {% func insertIfEqual(s, d any) %}{% if s == d %} selected{% endif %}{% endfunc %} {% func Navbar (s Selection) %} {% endfunc %} {% func GitItemNav (name, ref string, s GitSelection) %}

{%s name %} {% if ref != "" && (s == Log || s == Tree) %}@ {%s ref %}{% endif %}

{% endfunc %}