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
---
.gitignore | 1 +
static/style.css | 18 ++++++++++++++++++
templates/base.html | 11 +++++++----
templates/index.html | 1 -
templates/page.html | 6 ++++++
templates/partials/header.html | 4 ++++
templates/partials/nav.html | 7 +++++++
theme.toml | 2 +-
8 files changed, 44 insertions(+), 6 deletions(-)
create mode 100644 .gitignore
create mode 100644 static/style.css
create mode 100644 templates/page.html
create mode 100644 templates/partials/header.html
create mode 100644 templates/partials/nav.html
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+README.md
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..73c3565
--- /dev/null
+++ b/static/style.css
@@ -0,0 +1,18 @@
+html {
+ /* overflow-y needed for chromium browsers to not shift */
+ overflow-y: scroll;
+}
+
+nav {
+ display: inline;
+}
+
+body {
+ /* margin: 0 auto; */
+ max-width: 50%;
+}
+
+img {
+ /* pixelated for aesthetics */
+ image-rendering: pixelated;
+}
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 %}
diff --git a/theme.toml b/theme.toml
index cf9dead..968c359 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,7 +1,7 @@
name = "shawl"
description = "A simple, unintrusive theme for Zola."
-license = "GPLv3"
+license = "AGPL"
homepage = "https://foswret.com/shawl"
min_version = "0.22.1"
--
cgit v1.2.3