added optional author blogpost display

This commit is contained in:
Speyll 2023-10-03 16:56:08 +01:00
parent 7cf2f0a817
commit f8d26c5907
2 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,7 @@ internal_level = "warn"
[extra]
author = "Speyll"
display_author = true
favicon = "favicon.ico"
image = ""
list_pages = false

View file

@ -3,7 +3,9 @@
{% block content %}
<div><a href="..">..</a>/<span class="metaData">{{ page.slug }}</span></div>
<time datetime="{{ page.date }}">Published on: <span class="metaData">{{ page.date }}</span></time>
{% if config.extra.author and config.extra.display_author == true %}
<address rel="author">By <span class="metaData">{{config.extra.author}}</span></address>
{% endif %}
<h1>{{ page.title }}</h1>
{% if page.toc and page.extra.toc %}