From eae5db6b4add24de8f2363e285a849c5a8cb3ce7 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 4 Jul 2025 13:17:59 -0400 Subject: [PATCH] update testbed --- content/index.md | 2 ++ content/post.md | 1 + content/static/style.css | 17 ++++++++++++++--- content/wip.md | 6 ++++++ justfile | 8 ++++---- templates/base.html | 40 ++++++++++++++++++++++++++++++++++++++++ templates/basic.html | 6 ++++++ templates/footer.md | 1 + templates/header.html | 5 +++++ templates/page.html | 10 ++++++++++ templates/post_list.html | 17 +++++++++++++++++ 11 files changed, 106 insertions(+), 7 deletions(-) create mode 100644 content/wip.md create mode 100644 templates/base.html create mode 100644 templates/basic.html create mode 100644 templates/footer.md create mode 100644 templates/header.html create mode 100644 templates/page.html create mode 100644 templates/post_list.html diff --git a/content/index.md b/content/index.md index 9b26af4..31a332b 100644 --- a/content/index.md +++ b/content/index.md @@ -34,6 +34,7 @@ def md_to_html( ## Kakoune Script?! ```kak +# a configuration snippet declare-option -hidden bool on_server %sh{ if [ -z "$KAK_ON_SERVER" ]; then printf 'false' @@ -44,4 +45,5 @@ declare-option -hidden bool on_server %sh{ define-command -override true nop define-command -override false fail +map global normal x ':echo gamer' ``` diff --git a/content/post.md b/content/post.md index f450477..9a7e03b 100644 --- a/content/post.md +++ b/content/post.md @@ -1,5 +1,6 @@ --- post: true +date: September 3, 2025 --- Okay, here's a post. It references [topic](./topic.md). What?? diff --git a/content/static/style.css b/content/static/style.css index d6d538e..675056d 100644 --- a/content/static/style.css +++ b/content/static/style.css @@ -141,13 +141,21 @@ pre { overflow-x: auto; } -code { - background-color: #1d1d1d; - color: #d5d5d5; +/* Inline code styling */ +:not(pre) > code { padding: 0.2em 0.4em; border-radius: 3px; + background-color: #1d1d1d; + color: #d5d5d5; + font-size: 0.85em; } +/* Block code styling (inherits from pre) */ +pre code { + padding: 0; + border-radius: 0; + background: none; +} small { font-size: 0.95rem; @@ -234,3 +242,6 @@ small a { color: var(--main-small-text-color); } + + + diff --git a/content/wip.md b/content/wip.md new file mode 100644 index 0000000..15ffe4b --- /dev/null +++ b/content/wip.md @@ -0,0 +1,6 @@ +--- +title: This Post Is WIP +draft: true +--- + +I don't want this in the website! diff --git a/justfile b/justfile index 683605f..ce075d1 100644 --- a/justfile +++ b/justfile @@ -1,8 +1,8 @@ init: #!/bin/sh - if [ -f config.yml ]; then - rm config.yml - fi + # if [ -f config.yml ]; then + # rm config.yml + # fi just run init build: @@ -16,5 +16,5 @@ run *args: if [ -d "public" ] && [ "$1" = "build" ]; then rm -r public fi - uv run --project ~/dev/zona-py zona "$@" + uv run --project ~/dev/zona zona "$@" diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..86769f5 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,40 @@ + + + + {{ metadata.title }} + + + + + + +
+ {% if header %} + + {% endif %} + {% block content %}{% endblock %} + {% if footer %} +
+
+ {{ footer | safe }} +
+ {% endif %} +
+ + + diff --git a/templates/basic.html b/templates/basic.html new file mode 100644 index 0000000..fbedadb --- /dev/null +++ b/templates/basic.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} +{{ content | safe }} +{% endblock %} + diff --git a/templates/footer.md b/templates/footer.md new file mode 100644 index 0000000..e18a549 --- /dev/null +++ b/templates/footer.md @@ -0,0 +1 @@ +My Markdown footer! diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..f058c85 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,5 @@ + diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..91b2616 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block content %} +

{{ metadata.title }}

+{% if metadata.date %} +
+{% endif %} +
{{ content | safe }}
+{% endblock %} + diff --git a/templates/post_list.html b/templates/post_list.html new file mode 100644 index 0000000..8545020 --- /dev/null +++ b/templates/post_list.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block content %} + +

{{ metadata.title }}

+ +
{{ content | safe }}
+ +{% if post_list %} + +{% endif %} +{% endblock %} +