From 242ba7f412d4e54f21385afff3f2b884f57f6ced Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 30 May 2024 15:06:28 +0200 Subject: feat: Add navbar selection --- templates/base.qtpl | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'templates/base.qtpl') diff --git a/templates/base.qtpl b/templates/base.qtpl index d8d1d34..ba32aad 100644 --- a/templates/base.qtpl +++ b/templates/base.qtpl @@ -2,15 +2,20 @@ This is a base page template. All the other template pages implement this interf {% import "strconv" %} +{% code + var Slug = "" +%} + {% interface Page { Title() Content() Script() + Navbar() } - %} + {% code func FromUInttoString(u *uint) string { if u != nil { return strconv.FormatUint(uint64(*u), 10) @@ -19,10 +24,6 @@ Page { } %} -{% code - var Slug = "" -%} - Page prints a page implementing Page interface. {% func PageTemplate(p Page) %} @@ -34,14 +35,7 @@ Page prints a page implementing Page interface. - + {%= p.Navbar() %}
{%= p.Content() %}
-- cgit v1.2.3