From 23010243d8850e56e872c112ab6f5c75efe60a38 Mon Sep 17 00:00:00 2001 From: Tom Hebb Date: Wed, 23 Aug 2023 19:52:54 -0700 Subject: feat: show author for posts that specify one (#122) * feat: show author for posts that specify one Posts by default inherit the site's author, but it's possible to override that per post, which affects--e.g.--the RSS metadata. For posts that do so, we don't currently show that anywhere in the theme. Add a new piece of metadata to posts, along with the date and reading time, that displays the author only when it's not inherited from the site. * Update pagination-item.html --------- Co-authored-by: JT --- _includes/views/pagination-item.html | 3 +++ _includes/views/post-header.html | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/_includes/views/pagination-item.html b/_includes/views/pagination-item.html index bea6d91..fff6541 100644 --- a/_includes/views/pagination-item.html +++ b/_includes/views/pagination-item.html @@ -17,6 +17,9 @@ diff --git a/_includes/views/post-header.html b/_includes/views/post-header.html index 33bbdaa..b6ea964 100644 --- a/_includes/views/post-header.html +++ b/_includes/views/post-header.html @@ -8,6 +8,10 @@ {{ page.date | date: date_format }} + {%- if page.author -%} + + {%- endif -%} + {% assign article = page.content %} {% assign lang = page.lang %} {%- include functions.html func='get_reading_time' -%} -- cgit v1.2.3