added optional author blogpost display
This commit is contained in:
@@ -45,6 +45,7 @@ internal_level = "warn"
|
||||
|
||||
[extra]
|
||||
author = "Speyll"
|
||||
display_author = true
|
||||
favicon = "favicon.ico"
|
||||
image = ""
|
||||
list_pages = false
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user