{% import "github.com/go-git/go-git/v5/plumbing" %} {% import "github.com/go-git/go-git/v5/plumbing/object" %} {% code type GitItemSummaryPage struct { Tags []*plumbing.Reference 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) %}
{% if len(g.Tags) > 0 %}
{% for _, t := range g.Tags %}
{%s t.Name().Short() %}
{% endfor %}
{% else %}

No tags

{% endif %}
{% for _, b := range g.Branches %}
{%s b.Name().Short() %}
{% endfor %}
{% for _, c := range g.Commits %}
{%s TimeFormat(c.Committer.When) %}
{%s c.Message %}
{%s c.Committer.Name %} <{%s c.Committer.Email %}>
{% endfor %}
{% endfunc %}