From 3cb7c82cf7c4e050148f69be23590a7fbe587a27 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 31 Mar 2026 10:11:18 +0000 Subject: Add static site builder: SQLite-backed MD→HTML pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - cmd/nebbet: CLI with build [--watch] and user add/passwd/delete/list - internal/builder: markdown→HTML, component injection via HTML comments, auto importmap from lib/, fsnotify watch with 150ms debounce - internal/db: meta.db (page index, tag queries) + search.db (FTS5) - internal/sqlitedrv: minimal CGO database/sql driver for system libsqlite3 - internal/auth: htpasswd-compatible bcrypt password file management - templates/base.html + admin.html, styles/main.css + admin.css - nginx.conf with auth_basic for /admin, clean URLs, gzip - nebbet.service systemd unit for watch daemon - Example content/index.md and components/site-greeting.js https://claude.ai/code/session_01HTc1BCBCiMTEB54XQP1Wz9 --- templates/base.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 templates/base.html (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..9128b2e --- /dev/null +++ b/templates/base.html @@ -0,0 +1,18 @@ + + + + + + {{.Title}} + + {{.ImportMapTag}} + {{- range .ComponentScripts}} + + {{- end}} + + +
+ {{.Content}} +
+ + -- cgit v1.3