Skip to content

Commit

Permalink
Add readtime daattali#594
Browse files Browse the repository at this point in the history
Add readtime to post-meta if config param enabled
  • Loading branch information
rubyontherez authored and Matt Erickson committed Apr 24, 2020
1 parent 98386a5 commit b4774df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ <h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>

{% if include.type == "post" %}
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
{% if page.readtime %}
{% include readtime.html %}
{% endif %}
</span>
{% endif %}
</div>
</div>
Expand All @@ -64,6 +68,10 @@ <h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>

{% if include.type == "post" %}
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
{% if page.readtime %}
{% include readtime.html %}
{% endif %}
</span>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit b4774df

Please sign in to comment.