From: Zack M. Davis Date: Sun, 26 Jul 2026 16:05:48 +0000 (-0700) Subject: render byline on individual post pages X-Git-Url: https://zackmdavis.net/blog/source?a=commitdiff_plain;h=f09ccfea7fbd47e50f76b73c581b2f5eaaa1dc2c;p=An_Algorithmic_Lucidity.git render byline on individual post pages --- diff --git a/theme/templates/article.html b/theme/templates/article.html index a6b8e02..3f8a889 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -8,5 +8,5 @@ {% endblock %} {% block content %} - {{ post_card.render_post(article, show_source_link=True) }} + {{ post_card.render_post(article, show_source_link=True, show_byline=True) }} {% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html index 7f8ecbf..43c5d2d 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -3,6 +3,7 @@ + {% block title %}{{ SITENAME }}{% endblock %} diff --git a/theme/templates/includes/post_card.html b/theme/templates/includes/post_card.html index 812437f..b360e16 100644 --- a/theme/templates/includes/post_card.html +++ b/theme/templates/includes/post_card.html @@ -1,9 +1,16 @@ -{% macro render_post(article, full=True, show_source_link=False) %} +{# Only article.html passes show_byline: on a single-author blog, repeating the + name down an index page is noise. Visible text rather than just the + in base.html, since extraction pipelines keep the + article and drop -- a scraped or quoted post should carry attribution. #} +{% macro render_post(article, full=True, show_source_link=False, show_byline=False) %}

{{ article.title }}