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] [extra]
author = "Speyll" author = "Speyll"
display_author = true
favicon = "favicon.ico" favicon = "favicon.ico"
image = "" image = ""
list_pages = false list_pages = false

View file

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