Skip to content

Commit

Permalink
Merge pull request #283 from cyberang3l/do-not-show-footer-entry-if-n…
Browse files Browse the repository at this point in the history
…ot-needed

Do not show footer in entry.html if not needed.
  • Loading branch information
mmistakes authored Apr 10, 2018
2 parents e21ab13 + 1d66980 commit a71d4d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions _includes/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ <h3 class="entry-title p-name">
{% endif %}
</div>
{% endunless %}
<footer class="entry-meta">
{% if site.read_time %}{% include read-time.html %}{% endif %}
{% if entry.date %}{% include entry-date.html %}{% endif %}
</footer>
{% if site.read_time or entry.date and page.layout != 'collection' %}
<footer class="entry-meta">
{% if site.read_time %}{% include read-time.html %}{% endif %}
{% if entry.date %}{% include entry-date.html %}{% endif %}
</footer>
{% endif %}
</article>

0 comments on commit a71d4d9

Please sign in to comment.