diff options
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/calendar-day.mustache | 17 | ||||
| -rw-r--r-- | pages/calendar.mustache | 17 | ||||
| -rw-r--r-- | pages/index.mustache | 10 | ||||
| -rw-r--r-- | pages/log.mustache | 17 | ||||
| -rw-r--r-- | pages/partials/footer.mustache | 4 | ||||
| -rw-r--r-- | pages/partials/header.mustache | 6 | ||||
| -rw-r--r-- | pages/partials/headmeta.mustache | 4 |
7 files changed, 25 insertions, 50 deletions
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 @@ <!doctype html> <html lang="en"> <head> - <meta charset="utf-8"> + {{> headmeta}} <title>{{channel}} {{date}} ({{network}}) - tirclogv</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="/style.css"> <script src="/log.js"></script> - <link rel="icon" type="image/png" href="/favicon.png"> </head> <body> <div id="gridwrapper" data-page="withheader"> - <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> + {{> header}} <main> <h1>Logs on {{date}} ({{network}}/{{channel}})</h1> <div class="pagepicker"> @@ -40,10 +32,7 @@ </tbody></table> <p>All times are in UTC on {{date}}.</p> </main> - <footer> - <a href="https://git.tomsmeding.com/tirclogv">tirclogv</a> — An IRC log viewer by - <a href="https://tomsmeding.com">Tom Smeding</a>. - </footer> + {{> footer}} </div> </body> </html> 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 @@ <!doctype html> <html lang="en"> <head> - <meta charset="utf-8"> + {{> headmeta}} <title>Calendar {{channel}} ({{network}}) - tirclogv</title> - <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"> </head> <body> <div id="gridwrapper" data-page="withheader"> - <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> + {{> header}} <main> <h1>Calendar: {{network}}/{{channel}}</h1> {{#years}} @@ -51,10 +43,7 @@ </tbody></table> {{/years}} </main> - <footer> - <a href="https://git.tomsmeding.com/tirclogv">tirclogv</a> — An IRC log viewer by - <a href="https://tomsmeding.com">Tom Smeding</a>. - </footer> + {{> footer}} </div> </body> </html> 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 @@ <!doctype html> <html lang="en"> <head> - <meta charset="utf-8"> + {{> headmeta}} <title>tirclogv</title> - <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"> </head> <body> <div id="gridwrapper" data-page="index"> @@ -18,10 +15,7 @@ {{/channels}} {{/networks}} </main> - <footer> - <a href="https://git.tomsmeding.com/tirclogv">tirclogv</a> — An IRC log viewer by - <a href="https://tomsmeding.com">Tom Smeding</a>. - </footer> + {{> footer}} </div> </body> </html> 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 @@ <!doctype html> <html lang="en"> <head> - <meta charset="utf-8"> + {{> headmeta}} <title>{{channel}} ({{network}}) - tirclogv</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="/style.css"> <script src="/log.js"></script> - <link rel="icon" type="image/png" href="/favicon.png"> </head> <body> <div id="gridwrapper" data-page="withheader"> - <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> + {{> header}} <main> <h1>Logs: {{network}}/{{channel}}</h1> <div class="pagepicker"> @@ -92,10 +84,7 @@ </div> <p>All times are in UTC.</p> </main> - <footer> - <a href="https://git.tomsmeding.com/tirclogv">tirclogv</a> — An IRC log viewer by - <a href="https://tomsmeding.com">Tom Smeding</a>. - </footer> + {{> footer}} </div> </body> </html> 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> — 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"> |
