From 8f5f9ff24b0327f7640e3619de109e1f19cfba1d Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 30 May 2024 18:08:12 +0200 Subject: feat: Add git sub page --- templates/gititem.qtpl | 44 ++++++++++++++------------------------------ 1 file changed, 14 insertions(+), 30 deletions(-) (limited to 'templates/gititem.qtpl') diff --git a/templates/gititem.qtpl b/templates/gititem.qtpl index 156325f..4a6c49a 100644 --- a/templates/gititem.qtpl +++ b/templates/gititem.qtpl @@ -1,46 +1,30 @@ +{% interface +GitItemBase { + Nav(name string) + GitContent() +} +%} + {% code type GitItemPage struct { + Name string + GitItemBase } %} - -{% func insertIfEqual(s, d Selection) %}{% if s == d %} selected{% endif %}{% endfunc %} - - -{% func Navbar (s Selection) %} - -{% endfunc %} - {% func (p *GitItemPage) Title() %}Git | List{% endfunc %} {% func (p *GitItemPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %} {% func (p *GitItemPage) Content() %}
-

AoC2022.git

+

{%s p.Name %}

+
+
+{%= p.Nav(p.Name) %}
- +{%= p.GitContent() %}
{% endfunc %} -- cgit v1.2.3