aboutsummaryrefslogtreecommitdiff
path: root/templates/base.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.qtpl')
-rw-r--r--templates/base.qtpl20
1 files changed, 7 insertions, 13 deletions
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) %}
<html lang="en">
@@ -34,14 +35,7 @@ Page prints a page implementing Page interface.
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
- <nav class="container navbar navbar-expand-sm">
- <div class="navbar-nav">
- <a class="nav-link" href="/git">git</a>
- <a class="nav-link" href="/list">list</a>
- <a class="nav-link" href="/about">about</a>
- <a class="nav-link" href="/config">config</a>
- </div>
- </nav>
+ {%= p.Navbar() %}
<div class="container">
{%= p.Content() %}
</div>