aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2026-04-02 18:19:14 -0500
committerfoswret <foswret@posteo.com>2026-04-02 18:19:14 -0500
commite284d708d377b76f7484f9ddd5fd055c2c75f18a (patch)
tree9f6bad9d88901a80a49c73b2bf3ab7bbd3d3b648 /templates
parent91c4cd062960cfc9f81e4816c58844aa8413745d (diff)
simplify css, add image gradient, fix rss path
Diffstat (limited to 'templates')
-rw-r--r--templates/404.html3
-rw-r--r--templates/base.html10
-rw-r--r--templates/partials/footer.html4
-rw-r--r--templates/partials/header.html5
-rw-r--r--templates/partials/nav.html5
-rw-r--r--templates/posts.html3
6 files changed, 27 insertions, 3 deletions
diff --git a/templates/404.html b/templates/404.html
new file mode 100644
index 0000000..381dc15
--- /dev/null
+++ b/templates/404.html
@@ -0,0 +1,3 @@
+{% extends "base.html" %}
+
+<p>404: Page not found.</p>
diff --git a/templates/base.html b/templates/base.html
index 7e9a668..aa7d7bf 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -5,7 +5,15 @@
<meta charset="utf-8" name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="{{ get_url(path='style.css', cachebust=true) }}">
- <title>CHANGE ME</title>
+ {% block rss %}
+ <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
+ {% endblock %}
+<title>
+ {% if page.title %} {{ page.title }} | {{ config.title }}
+ {% elif section.title %} {{ section.title }} | {{ config.title }}
+ {% elif config.title %} {{ config.title }}
+ {% else %} Post {% endif %}
+</title>
</head>
<body>
diff --git a/templates/partials/footer.html b/templates/partials/footer.html
index 472d9ea..b9db931 100644
--- a/templates/partials/footer.html
+++ b/templates/partials/footer.html
@@ -1,4 +1,6 @@
<footer>
<hr class="divider" style="border-top: 2px solid #bbb;">
-<p>Code under AGPL, content under CC by SA.</p>
+<p>Code under AGPL, content under CC by SA. <br>
+Last updated on <time>%T</time></p>
+
</footer>
diff --git a/templates/partials/header.html b/templates/partials/header.html
index 3400a2b..8f49975 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -1,5 +1,6 @@
<header>
+<div id="left-header">
<!-- if "title" is set in config.toml, display site name -->
{% if config.title %}
<div class="header-item">
@@ -12,5 +13,9 @@
{% include "partials/nav.html" %}
</nav>
+<div id="right-header">
+ <div id="image-gradient">
+ </div>
+</div>
</header>
diff --git a/templates/partials/nav.html b/templates/partials/nav.html
index f1f7d9b..b9c4cd7 100644
--- a/templates/partials/nav.html
+++ b/templates/partials/nav.html
@@ -2,6 +2,11 @@
{% for item in config.extra.navbar_items %}
<nav class="header-item">
<a class="nav-item" href="{{ get_url(path=item.url) }}">{{ item.name }}</a>
+
+ <span style="color: white">{{ item.divider }}</span>
</nav>
+
{% endfor %}
{% endif %}
+
+</div>
diff --git a/templates/posts.html b/templates/posts.html
index 169c75d..dfe0001 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -6,7 +6,8 @@
</h3>
<ul>
{% for page in section.pages %}
- <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a>
+ <span style="font-family: monospace;">({{ page.date }})</span></li>
{% endfor %}
</ul>
{% endblock content %}