Display 'Posts' header only if the site has posts (#144)
This commit is contained in:
parent
e47c5ac128
commit
9bf8bee149
|
@ -8,6 +8,7 @@ layout: default
|
||||||
<div class="index inner">
|
<div class="index inner">
|
||||||
<div>{{ content }}</div>
|
<div>{{ content }}</div>
|
||||||
|
|
||||||
|
{% if site.posts.size > 0 %}
|
||||||
<div>
|
<div>
|
||||||
<header class="section-title">
|
<header class="section-title">
|
||||||
<h2>{{ site.data.theme.t.posts | default: 'Posts' }}{% if paginator.page > 1 %}{{ site.data.theme.t.page | default: 'Page' | prepend: ' - ' | append: ' ' }}{{ paginator.page }} {{ site.data.theme.t.of | default: 'of' }} {{ paginator.total_pages }}{% endif %}</h2>
|
<h2>{{ site.data.theme.t.posts | default: 'Posts' }}{% if paginator.page > 1 %}{{ site.data.theme.t.page | default: 'Page' | prepend: ' - ' | append: ' ' }}{{ paginator.page }} {{ site.data.theme.t.of | default: 'of' }} {{ paginator.total_pages }}{% endif %}</h2>
|
||||||
|
@ -24,5 +25,7 @@ layout: default
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in New Issue