{% import "github.com/go-git/go-git/v5/plumbing" %} {% import "git.gabrielgio.me/cerrado/pkg/git" %} {% code type GitItemRefsPage struct { Tags []*git.TagReference Branches []*plumbing.Reference } %} {% func (g *GitItemRefsPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %} {% func (g *GitItemRefsPage) GitContent(name, ref string) %}
{%= ListTags(name, g.Tags) %}
{% for _, b := range g.Branches %}
{%s b.Name().Short() %}
{% endfor %}
{% endfunc %}