From: Zack M. Davis Date: Tue, 14 Jul 2026 20:36:39 +0000 (-0700) Subject: theme adjustments (feat. Claude Code) X-Git-Url: https://zackmdavis.net/blog/source?a=commitdiff_plain;h=627923141a914fe32c2d1857dc9c1f822bda0013;p=An_Algorithmic_Lucidity.git theme adjustments (feat. Claude Code) --- diff --git a/theme/static/css/style.css b/theme/static/css/style.css index f6c93ad..a2a0b29 100644 --- a/theme/static/css/style.css +++ b/theme/static/css/style.css @@ -60,7 +60,7 @@ header h1 a:hover { .main { display: flex; - gap: 30px; + gap: 15px; align-items: flex-start; margin-top: 10px; } @@ -69,14 +69,21 @@ header h1 a:hover { .content { flex: 1; min-width: 0; +} + +/* A plain box for non-post content listings (archives, tags, categories) */ +.content-box { background-color: #fff; padding: 20px; box-shadow: 0 3px 8px rgba(0,0,0,0.25); } -/* Posts */ +/* Posts: each one is its own box, sitting on the page's gray background */ .post { - margin-bottom: 40px; + background-color: #fff; + padding: 20px; + margin-bottom: 15px; + box-shadow: 0 3px 8px rgba(0,0,0,0.25); } .post:last-child { @@ -278,11 +285,30 @@ header h1 a:hover { /* Pagination */ .pagination { - margin-top: 30px; - padding-top: 15px; - border-top: 1px solid #ddd; + margin-top: 10px; + padding: 15px 20px; + background-color: #fff; + box-shadow: 0 3px 8px rgba(0,0,0,0.25); display: flex; - justify-content: space-between; + flex-wrap: wrap; + align-items: center; + gap: 10px; + font-size: 13px; +} + +.pagination .page-count { + color: #999; + margin-right: 10px; +} + +.pagination a { + padding: 2px 4px; +} + +.pagination .current { + font-weight: bold; + color: #222; + padding: 2px 4px; } /* Footer */ @@ -295,6 +321,19 @@ footer { font-size: 12px; } +footer p { + margin-bottom: 6px; +} + +footer p:last-child { + margin-bottom: 0; +} + +footer a { + color: #999; + text-decoration: underline; +} + /* Responsive */ @media (max-width: 768px) { .main { diff --git a/theme/templates/archives.html b/theme/templates/archives.html index 23a8583..2e085cc 100644 --- a/theme/templates/archives.html +++ b/theme/templates/archives.html @@ -3,6 +3,7 @@ {% block title %}{{ SITENAME }} - Archives{% endblock %} {% block content %} +

Archives

{% for year, year_articles in dates|groupby('date.year')|reverse %}

{{ year }}

@@ -15,4 +16,5 @@ {% endfor %} {% endfor %} +
{% endblock %} diff --git a/theme/templates/article.html b/theme/templates/article.html index e9cab1f..7600d70 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -3,6 +3,10 @@ {% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %} +{% block extra_head %} + +{% endblock %} + {% block content %} {{ post_card.render_post(article) }} {% endblock %} diff --git a/theme/templates/authors.html b/theme/templates/authors.html index 7491620..d1556ed 100644 --- a/theme/templates/authors.html +++ b/theme/templates/authors.html @@ -3,10 +3,12 @@ {% block title %}{{ SITENAME }} - Authors{% endblock %} {% block content %} +

Authors

+
{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html index 3bf152c..ee873c6 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -9,6 +9,7 @@ {% if FEED_ALL_ATOM %} {% endif %} + {% block extra_head %}{% endblock %} @@ -87,7 +88,8 @@ diff --git a/theme/templates/categories.html b/theme/templates/categories.html index c837533..dfd5ab8 100644 --- a/theme/templates/categories.html +++ b/theme/templates/categories.html @@ -3,10 +3,12 @@ {% block title %}{{ SITENAME }} - Categories{% endblock %} {% block content %} +

Categories

+
{% endblock %} diff --git a/theme/templates/includes/pagination.html b/theme/templates/includes/pagination.html new file mode 100644 index 0000000..b94092c --- /dev/null +++ b/theme/templates/includes/pagination.html @@ -0,0 +1,23 @@ +{% macro render_pagination(page, paginator) %} +{% if paginator.num_pages > 1 %} + +{% endif %} +{% endmacro %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 09949fe..1adbc5c 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% import "includes/post_card.html" as post_card %} +{% import "includes/pagination.html" as pagination %} {% block content %} {% block content_title %}{% endblock %} @@ -8,16 +9,5 @@ {{ post_card.render_post(article) }} {% endfor %} - {% if articles_page.has_previous() or articles_page.has_next() %} - - {% endif %} + {{ pagination.render_pagination(articles_page, articles_paginator) }} {% endblock %} diff --git a/theme/templates/tags.html b/theme/templates/tags.html index c27d5a7..b51fc38 100644 --- a/theme/templates/tags.html +++ b/theme/templates/tags.html @@ -3,10 +3,12 @@ {% block title %}{{ SITENAME }} - Tags{% endblock %} {% block content %} +

Tags

+
{% endblock %}