From 73b06c31b505d1a0f2e4035c7daab0df49a25d3b Mon Sep 17 00:00:00 2001
From: foswret
Date: Sun, 22 Mar 2026 12:54:35 -0500
Subject: implement basic nav bar
---
templates/base.html | 11 +++++++----
templates/index.html | 1 -
templates/page.html | 6 ++++++
templates/partials/header.html | 4 ++++
templates/partials/nav.html | 7 +++++++
5 files changed, 24 insertions(+), 5 deletions(-)
create mode 100644 templates/page.html
create mode 100644 templates/partials/header.html
create mode 100644 templates/partials/nav.html
(limited to 'templates')
diff --git a/templates/base.html b/templates/base.html
index aba4506..752d091 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -2,15 +2,18 @@
-
+
+
CHANGE ME
+{% include "partials/header.html" %}
+{% include "partials/nav.html" %}
+
-
- {% block content %} {% endblock content %}
-
+ {% block content %} {% endblock content %}
diff --git a/templates/index.html b/templates/index.html
index 560c000..795d85a 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,5 +4,4 @@
This is a blog made with Zola.
-Posts.
{% endblock content %}
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..88c852e
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block content %}
+{{ section.content | safe }}
+{% endblock content %}
+
diff --git a/templates/partials/header.html b/templates/partials/header.html
new file mode 100644
index 0000000..9dbc6eb
--- /dev/null
+++ b/templates/partials/header.html
@@ -0,0 +1,4 @@
+
+{% if config.title %}
+ {{ config.title }}
+{% endif %}
diff --git a/templates/partials/nav.html b/templates/partials/nav.html
new file mode 100644
index 0000000..f8c0eff
--- /dev/null
+++ b/templates/partials/nav.html
@@ -0,0 +1,7 @@
+{% if config.extra.navbar_items %}
+{% for item in config.extra.navbar_items %}
+
+{% endfor %}
+{% endif %}
--
cgit v1.2.3