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