From 6412601c368d88aa0e8611ecdeea474946cd6d37 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 2 Aug 2026 23:16:11 +0100 Subject: Factor out common parts of templates into partials --- pages/calendar-day.mustache | 17 +++-------------- pages/calendar.mustache | 17 +++-------------- pages/index.mustache | 10 ++-------- pages/log.mustache | 17 +++-------------- pages/partials/footer.mustache | 4 ++++ pages/partials/header.mustache | 6 ++++++ pages/partials/headmeta.mustache | 4 ++++ 7 files changed, 25 insertions(+), 50 deletions(-) create mode 100644 pages/partials/footer.mustache create mode 100644 pages/partials/header.mustache create mode 100644 pages/partials/headmeta.mustache (limited to 'pages') diff --git a/pages/calendar-day.mustache b/pages/calendar-day.mustache index f47a41b..5cf8078 100644 --- a/pages/calendar-day.mustache +++ b/pages/calendar-day.mustache @@ -1,21 +1,13 @@ - + {{> headmeta}} {{channel}} {{date}} ({{network}}) - tirclogv - - -
-
- Home - {{network}}/{{channel}}: - Logs - Calendar -
+ {{> header}}

Logs on {{date}} ({{network}}/{{channel}})

@@ -40,10 +32,7 @@

All times are in UTC on {{date}}.

- + {{> footer}}
diff --git a/pages/calendar.mustache b/pages/calendar.mustache index c65849d..2ea5ca4 100644 --- a/pages/calendar.mustache +++ b/pages/calendar.mustache @@ -1,20 +1,12 @@ - + {{> headmeta}} Calendar {{channel}} ({{network}}) - tirclogv - - -
-
- Home - {{network}}/{{channel}}: - Logs - Calendar -
+ {{> header}}

Calendar: {{network}}/{{channel}}

{{#years}} @@ -51,10 +43,7 @@ {{/years}}
- + {{> footer}}
diff --git a/pages/index.mustache b/pages/index.mustache index 8811d7f..4e461c0 100644 --- a/pages/index.mustache +++ b/pages/index.mustache @@ -1,11 +1,8 @@ - + {{> headmeta}} tirclogv - - -
@@ -18,10 +15,7 @@ {{/channels}} {{/networks}} - + {{> footer}}
diff --git a/pages/log.mustache b/pages/log.mustache index 10a99cf..8e3d800 100644 --- a/pages/log.mustache +++ b/pages/log.mustache @@ -1,21 +1,13 @@ - + {{> headmeta}} {{channel}} ({{network}}) - tirclogv - - -
-
- Home - {{network}}/{{channel}}: - Logs - Calendar -
+ {{> header}}

Logs: {{network}}/{{channel}}

@@ -92,10 +84,7 @@

All times are in UTC.

- + {{> footer}}
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 @@ + 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 @@ +
+ Home + {{network}}/{{channel}}: + Logs + Calendar +
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 @@ + + + + -- cgit v1.3.1