commit 0e2d1b9fa7897aa104f37cbd2cb51d563d15aed6
parent 177538593247e856b40128bf601529bd3d347000
Author: Damian Myrda <damian@prime8.dev>
Date: Sat, 21 Sep 2024 10:15:35 -0500
Added mutable titles
Diffstat:
4 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/web/templates/404.html b/web/templates/404.html
@@ -5,6 +5,10 @@
{{ nav::bar(active="") }}
{% endblock %}
+{% block title %}
+<title>not found</title>
+{% endblock %}
+
{% block content %}
<div id="message">
<h1>not found</h1>
diff --git a/web/templates/base.html b/web/templates/base.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
- <title>prime8</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ {% block title %}{% endblock %}
<style>
body {
@@ -31,8 +31,8 @@
</head>
<body>
- {% block navbar %} {% endblock %}
+ {% block navbar %}{% endblock %}
- <div id="content">{% block content %} {% endblock %}</div>
+ <div id="content">{% block content %}{% endblock %}</div>
</body>
</html>
diff --git a/web/templates/index.html b/web/templates/index.html
@@ -5,6 +5,10 @@
{{ nav::bar(active="home") }}
{% endblock %}
+{% block title %}
+<title>prime8.dev</title>
+{% endblock %}
+
{% block content %}
<div id="logo">
<div>
diff --git a/web/templates/projects.html b/web/templates/projects.html
@@ -5,6 +5,10 @@
{{ nav::bar(active="projects") }}
{% endblock %}
+{% block title %}
+<title>projects</title>
+{% endblock %}
+
{% block content %}
<pre>
_ _