summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/views/pagination-item.html3
-rw-r--r--_includes/views/post-header.html4
2 files changed, 7 insertions, 0 deletions
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 @@
</h2>
<div class="post-meta">
<span class="post-date"><i class="fa fa-calendar"></i> {{ post.date | date: date_format }}</span>
+ {%- if post.author -%}
+ <span class="post-author left-vsplit"><i class="fa fa-pencil"></i> {{ post.author | escape }}</span>
+ {%- endif -%}
<span class="post-reading-time left-vsplit"><i class="fa fa-clock-o"></i> {{ reading_time }}</span>
</div>
<a class="post-excerpt" href="{{ post_url }}">
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 @@
<i class="fa fa-calendar"></i> {{ page.date | date: date_format }}
</time>
+ {%- if page.author -%}
+ <span class="post-author left-vsplit"><i class="fa fa-pencil"></i> {{ page.author | escape }}</span>
+ {%- endif -%}
+
{% assign article = page.content %}
{% assign lang = page.lang %}
{%- include functions.html func='get_reading_time' -%}