diff options
Diffstat (limited to 'theme')
| -rw-r--r-- | theme/static/styles.css | 4 | ||||
| -rw-r--r-- | theme/templates/base.html | 46 | ||||
| -rw-r--r-- | theme/templates/blog.html | 13 | ||||
| -rw-r--r-- | theme/templates/feed.xml | 37 | ||||
| -rw-r--r-- | theme/templates/garden.html | 27 | ||||
| -rw-r--r-- | theme/templates/index.html | 33 | ||||
| -rw-r--r-- | theme/templates/page.html | 8 | ||||
| -rw-r--r-- | theme/templates/post.html | 19 | ||||
| -rw-r--r-- | theme/templates/tags.html | 6 |
9 files changed, 4 insertions, 189 deletions
diff --git a/theme/static/styles.css b/theme/static/styles.css index 19e4711..6f9ef0c 100644 --- a/theme/static/styles.css +++ b/theme/static/styles.css @@ -9,6 +9,9 @@ img { max-width: 100%; } .post-list-item a { flex-grow: 1; white-space: normal; } .post-list-year { list-style: none; margin-top: 1rem; margin-bottom: 0.5rem; font-weight: bold; } .skip-link { display: none; } +table { border-collapse: collapse; } +table, th, td { border: 1px solid #ccc; } +th, td { padding: 0.25rem 0.5rem; text-align: left; } footer { margin: 2rem 0;} pre, blockquote { margin: 1rem 0; padding: 0.5rem; background-color: #eee; } pre { overflow: auto; white-space: pre; } @@ -20,4 +23,5 @@ code { color: #942192; } a, a:visited { color: #68A9F8; } code { color: #ff68e1; } pre, blockquote { background-color: black; } + table, th, td { border-color: #444; } } 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> · - <a href="/feed.xml">RSS</a> · - <a href="http://paske4urhs6nttrtlkuwa5cowum3fjkc6yv6kl4ncx3mjxcd77764nqd.onion/">Onion</a> · - <a href="/tips/">Tips</a> · - <a href="https://iheartrss.com/">I ♥ RSS</a> - <p>[ <a href="https://krz.sh">krz</a> · <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 · <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> · <a href="https://audit-labs.dev">audit labs</a> ]</p> - <p>Privacy · Self-Hosting · 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> · <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 →</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 %} · {{ post.description }}{% endif %}</p> - <div>{{ post.html | safe }}</div> - <div><a href="mailto:[email protected]">Reply via email →</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 %} |
