diff --git a/templates/blogPage.html b/templates/blogPage.html index dc4f09850..ac866753e 100644 --- a/templates/blogPage.html +++ b/templates/blogPage.html @@ -1,6 +1,11 @@ {% extends "_default/base.html" %} {% block content %} +{% if page.taxonomies.people %} + {% set author_path = 'people/' ~ page.taxonomies.people[0] ~ '/index.md' %} + {% set author = get_page(path=author_path) %} +{% endif %} +
@@ -19,7 +24,9 @@
-

{{ page.extra.author }}

+ {% if author %} +

{{ author.title }}

+ {% endif %}

diff --git a/templates/partials/postCard.html b/templates/partials/postCard.html index c32252d05..06d074fea 100644 --- a/templates/partials/postCard.html +++ b/templates/partials/postCard.html @@ -1,3 +1,8 @@ +{% if post.taxonomies.people %} + {% set author_path = 'people/' ~ post.taxonomies.people[0] ~ '/index.md' %} + {% set author = get_page(path=author_path) %} +{% endif %} +