From f09ccfea7fbd47e50f76b73c581b2f5eaaa1dc2c Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Sun, 26 Jul 2026 09:05:48 -0700 Subject: [PATCH] render byline on individual post pages --- theme/templates/article.html | 2 +- theme/templates/base.html | 1 + theme/templates/includes/post_card.html | 9 ++++++++- 3 files changed, 10 insertions(+), 2 deletions(-) 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 }}