From 2fcc394c53f995750b52ad06153041f61f0a0c55 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 9 Jun 2024 20:07:00 +0200 Subject: feat: Add global reference to ref and name --- templates/gititem.qtpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/gititem.qtpl') diff --git a/templates/gititem.qtpl b/templates/gititem.qtpl index d695782..a6a312d 100644 --- a/templates/gititem.qtpl +++ b/templates/gititem.qtpl @@ -1,7 +1,7 @@ {% interface GitItemBase { Nav(name, ref string) - GitContent() + GitContent(name, ref string) } %} @@ -20,7 +20,7 @@ type GitItemPage struct { {% func (p *GitItemPage) Content() %} {%= p.Nav(p.Name, p.Ref) %}
-{%= p.GitContent() %} +{%= p.GitContent(p.Name, p.Ref) %}
{% endfunc %} -- cgit v1.2.3