summaryrefslogtreecommitdiff
path: root/pages/partials
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-08-03 00:16:11 +0200
committerTom Smeding <tom@tomsmeding.com>2026-08-03 00:16:11 +0200
commit6412601c368d88aa0e8611ecdeea474946cd6d37 (patch)
tree439e66ad8a18c4401c23f852dfe985a3b158c8e3 /pages/partials
parent6e8c2b8df3898d0f50463f3151831f5d7c9306a2 (diff)
Factor out common parts of templates into partials
Diffstat (limited to 'pages/partials')
-rw-r--r--pages/partials/footer.mustache4
-rw-r--r--pages/partials/header.mustache6
-rw-r--r--pages/partials/headmeta.mustache4
3 files changed, 14 insertions, 0 deletions
diff --git a/pages/partials/footer.mustache b/pages/partials/footer.mustache
new file mode 100644
index 0000000..2f3a6a4
--- /dev/null
+++ b/pages/partials/footer.mustache
@@ -0,0 +1,4 @@
+ <footer>
+ <a href="https://git.tomsmeding.com/tirclogv">tirclogv</a> &mdash; An IRC log viewer by
+ <a href="https://tomsmeding.com">Tom Smeding</a>.
+ </footer>
diff --git a/pages/partials/header.mustache b/pages/partials/header.mustache
new file mode 100644
index 0000000..af71312
--- /dev/null
+++ b/pages/partials/header.mustache
@@ -0,0 +1,6 @@
+ <header>
+ <a href="/" class="hdritem hdritem-home">Home</a>
+ {{network}}/{{channel}}:
+ <a href="/log/{{&alias}}" class="hdritem hdritem-view">Logs</a>
+ <a href="/cal/{{&alias}}" class="hdritem hdritem-view">Calendar</a>
+ </header>
diff --git a/pages/partials/headmeta.mustache b/pages/partials/headmeta.mustache
new file mode 100644
index 0000000..425084a
--- /dev/null
+++ b/pages/partials/headmeta.mustache
@@ -0,0 +1,4 @@
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+ <link rel="icon" type="image/png" href="/favicon.png">