aboutsummaryrefslogtreecommitdiff
path: root/theme/templates
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-11 20:34:02 -0500
committerChristian Cleberg <[email protected]>2026-08-11 20:34:02 -0500
commitab149c1ae4fe38048fc2d32edac6061e7f3b4638 (patch)
tree984019a98b20789890566c595b52d5ddc8b21064 /theme/templates
parent5be4598b09a2685d73665b403bf80aad50b15834 (diff)
downloadcleberg.net-migrate-to-orgo.tar.gz
cleberg.net-migrate-to-orgo.tar.bz2
cleberg.net-migrate-to-orgo.zip
Finish the move off weblorgmigrate-to-orgo
Remove what the migration left behind, then cut build.py down to the work orgo does not do: 443 lines to 168. - Delete publish.el and theme/templates/, superseded by content/orgo.toml and content/templates/. theme/static/ stays; orgo publishes it as assets. - Drop the tag builder, the org-source copy, and the helpers that only fed them. orgo generates /tags/ and a page per tag from a collection. - Rewrite the README and the migration-era comments that explained the config by pointing at what weblorg used to do. - Serve styles.css as authored. Minifying 1KB of CSS saved 52 bytes over the wire once compressed, which did not pay for a build step and a toolchain dependency. - Stop wiping the output directory. The .orgo-cache.json inside it is what makes a build incremental, and orgo already prunes outputs whose source is gone and re-emits any that are missing. Production keeps .build/ and development gets .build-dev/, because production rewrites image URLs in the output and a shared directory would let one environment reuse pages rendered for the other. An incremental build is byte-identical to a clean one, and the site output is unchanged apart from the /uses/ stack row.
Diffstat (limited to 'theme/templates')
-rw-r--r--theme/templates/base.html46
-rw-r--r--theme/templates/blog.html13
-rw-r--r--theme/templates/feed.xml37
-rw-r--r--theme/templates/garden.html27
-rw-r--r--theme/templates/index.html33
-rw-r--r--theme/templates/page.html8
-rw-r--r--theme/templates/post.html19
-rw-r--r--theme/templates/tags.html6
8 files changed, 0 insertions, 189 deletions
diff --git a/theme/templates/base.html b/theme/templates/base.html
deleted file mode 100644
index 68ff487..0000000
--- a/theme/templates/base.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!doctype html>
-<html lang="en-us">
-<head>
- {% block head %}
- <meta charset="utf-8">
- <title>{% block subtitle %}{% endblock %}{% block title %}{{ site_name | default("cleberg.net") }}{% endblock %}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- {% if site_owner is defined %}<meta name="author" content="{{ site_owner }}">{% endif %}
- {% if site_description is defined %}<meta name="description" content="{{ site_description }}">{% endif %}
- {% if site_keywords is defined %}<meta name="keywords" content="{{ site_keywords }}">{% endif %}
- <link rel="alternate" type="application/rss+xml" title="cleberg.net" href="/feed.xml">
- <link rel="stylesheet" href="/styles.min.css" type="text/css">
- <link rel="icon" href="data:,">
- {% block meta %}{% endblock %}
- {% endblock %}
- <link href="https://github.com/ccleberg" rel="me">
- <link href="https://gitlab.com/ccleberg" rel="me">
- <link href="mailto:[email protected]" rel="me">
- <a href="https://c.im/@cmc" rel="me">
-</head>
-<body>
- <a href="#main-content" class="skip-link">Skip to content</a>
-
- <nav aria-label="Site Navigation">
- <ul>
- <li><a href="/">Home</a></li>
- <li><a href="/blog/">Blog</a></li>
- <li><a href="/garden/">Garden</a></li>
- <li><a href="/salary/">Salary</a></li>
- </ul>
- </nav>
-
- <main id="main-content">
- {% block main %}{% endblock %}
- </main>
-
- <footer>
- <a href="https://git.krz.sh/cmc/cleberg.net.git/">Source</a> &middot;
- <a href="/feed.xml">RSS</a> &middot;
- <a href="http://paske4urhs6nttrtlkuwa5cowum3fjkc6yv6kl4ncx3mjxcd77764nqd.onion/">Onion</a> &middot;
- <a href="/tips/">Tips</a> &middot;
- <a href="https://iheartrss.com/">I &hearts; RSS</a>
- <p>[ <a href="https://krz.sh">krz</a> &middot; <a href="https://audit-labs.dev">audit labs</a> ]</p>
- </footer>
-</body>
-</html>
diff --git a/theme/templates/blog.html b/theme/templates/blog.html
deleted file mode 100644
index b2e2b72..0000000
--- a/theme/templates/blog.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "base.html" %} {% block subtitle %}blog - {% endblock %} {% block main %}
-<h1>Blog</h1>
-<p>Use <code>⌘ F</code> / <code>Ctrl F</code> to search &middot; <a href="/feed.xml">RSS Feed</a></p>
-<p>Want to browse by topic instead? Head over to the <a href="/tags/">tags</a> page.</p>
-<ul class="post-list">
- {% for post in posts %}
- <li class="post-list-item">
- <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d") }}</time>
- <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a>
- </li>
- {% endfor %}
-</ul>
-{% endblock %}
diff --git a/theme/templates/feed.xml b/theme/templates/feed.xml
deleted file mode 100644
index 7b23994..0000000
--- a/theme/templates/feed.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<rss version="2.0"
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
- xmlns:wfw="http://wellformedweb.org/CommentAPI/"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:atom="http://www.w3.org/2005/Atom"
- xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
- xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
- xmlns:georss="http://www.georss.org/georss"
- xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
- xmlns:media="http://search.yahoo.com/mrss/">
- <channel>
- <title>{{ site_name | default("cleberg.net") }}</title>
- <atom:link
- href="{{ url_for("rss") }}"
- rel="self" type="application/rss+xml" />
- <link>{{ url_for("index") }}</link>
- <description><![CDATA[]]></description>
- <language>en</language>
- <pubDate>{{ posts | first | getattr("date") | strftime("%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
- <lastBuildDate>{{ now() | strftime("%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
- <generator>{{ meta.generator }}</generator>
- <webMaster>{{ site_owner | default("[email protected]") }}</webMaster>
-
- {% for post in posts %}
- <item>
- <title>{{ post.title }}</title>
- <link>{{ url_for("blog", slug=post.slug) }}</link>
- <author>{{ post.author|default("[email protected]") }}</author>
- <guid isPermaLink="false">{{ url_for("blog", slug=post.slug) }}</guid>
- <pubDate>{{ post.date|strftime("%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
- <description><![CDATA[{{ post.html|safe }}]]></description>
- </item>
- {% endfor %}
-
- </channel>
-</rss>
diff --git a/theme/templates/garden.html b/theme/templates/garden.html
deleted file mode 100644
index a14d50c..0000000
--- a/theme/templates/garden.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% extends "base.html" %} {% block subtitle %}garden - {% endblock %} {% block main %}
-<h1>Garden</h1>
-<p>Notes in various states of growth. Some are stubs, some are developed. Browse
-around.</p>
-<section>
- <h2>ðŸŠī The Growth Stages</h2>
- <p>Instead of dates, these metadata labels show how mature a page is:</p>
- <span><strong>ðŸŒą Seedlings:</strong> Rough notes, raw ideas, or "half-baked"
- thoughts.</span><br>
- <span><strong>ðŸŒŋ Budding:</strong> Notes that have some structure and a few
- internal links.</span><br>
- <span><strong>ðŸŒģ Evergreen:</strong> High-conviction ideas that are
- well-researched and stable.</span><br>
- <span><strong>🍂 Compost:</strong> Ideas you no longer agree with but want to
- keep for historical context.</span><br><br>
-</section>
-<ul>
- {% for post in posts %}
- <li>
- <a href='{{ url_for("garden", slug=post.slug) }}'>{{ post.title }}</a>
- {% if post.description %}
- <span>{{ post.description }}</span>
- {% endif %}
- </li>
- {% endfor %}
-</ul>
-{% endblock %}
diff --git a/theme/templates/index.html b/theme/templates/index.html
deleted file mode 100644
index 75fc83d..0000000
--- a/theme/templates/index.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{% extends "base.html" %}
-{% block meta %}<meta name="bubbles:fediverse" content="@[email protected]">{% endblock %}
-{% block main %}
-<section>
- <h1>Christian Cleberg</h1>
- <p>[ <a href="https://krz.sh">krz</a> &middot; <a href="https://audit-labs.dev">audit labs</a> ]</p>
- <p>Privacy &middot; Self-Hosting &middot; iOS</p>
- <p>I build tools, write about systems, and run my own infrastructure. Focused on privacy, user control, and long-term utility.</p>
- <p><a href="/uses/">Uses</a> &middot; <a href="/now/">Now</a></p>
-</section>
-
-<section>
- <h2>Recent Posts</h2>
- <p>Things I've written recently.</p>
- <ul class="post-list">
- <!-- BEGIN_POSTS --><!-- END_POSTS -->
- </ul>
- <p><a href="/blog/">All Posts &rarr;</a></p>
-</section>
-
-<section>
- <h2>Elsewhere</h2>
- <p>Places to find me online.</p>
- <ul>
- <li>cgit (primary): <a href="https://git.krz.sh">~cmc</a></li>
- <li>GitHub (mirror): <a href="https://github.com/ccleberg">@ccleberg</a></li>
- <li>Email: <a href="mailto:[email protected]">[email protected]</a> (<a href="/gpg.txt">GPG</a>)</li>
- <li>Lemmy: <a href="https://r.nf/u/cmc">@cmc</a></li>
- <li>Mastodon: <a href="https://c.im/@cmc">@cmc</a></li>
- <li>Pixelfed: <a href="https://gram.social/cmc">@cmc</a></li>
- </ul>
-</section>
-{% endblock %}
diff --git a/theme/templates/page.html b/theme/templates/page.html
deleted file mode 100644
index 6c22589..0000000
--- a/theme/templates/page.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends "base.html" %}
-{% block subtitle %}{{ post.title }} - {% endblock %}
-{% block main %}
-<article>
- <h1>{{ post.title }}</h1>
- <div>{{ post.html | safe }}</div>
-</article>
-{% endblock %}
diff --git a/theme/templates/post.html b/theme/templates/post.html
deleted file mode 100644
index a2951b0..0000000
--- a/theme/templates/post.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "base.html" %} {% block subtitle %} {{ post.title }} - {% endblock %}
-{% block meta %}
-<meta property="og:title" content="{{ post.title }}" />
-<meta property="og:url" content="{{ post.url }}" />
-{% if post.description is defined %}
-<meta property="og:description" content="{{ post.description }}" />
-{% elif project_description is defined %}
-<meta property="og:description" content="{{ project_description }}" />
-{% endif %}
-{% endblock %}
-{% block main %}
-<article>
- <h1>{{ post.title }}</h1>
- <p><time datetime='{{ post.date|strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d") }}</time>{% if post.description is defined %} &middot; {{ post.description }}{% endif %}</p>
- <div>{{ post.html | safe }}</div>
- <div><a href="mailto:[email protected]">Reply via email &rarr;</a></div>
- <div><i>...or, comment on this post on <a href="https://bubbles.town/source/cleberg.net">Bubbles</a>!</i></div>
-</article>
-{% endblock %}
diff --git a/theme/templates/tags.html b/theme/templates/tags.html
deleted file mode 100644
index 83619d4..0000000
--- a/theme/templates/tags.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{% extends "base.html" %} {% block subtitle %}tags - {% endblock %} {% block main %}
-<h1>Tags</h1>
-<p>Browse posts by topic.</p>
-<!-- BEGIN_TAGS -->
-<!-- END_TAGS -->
-{% endblock %}