If page doesn't have a title fallback to site.title

This commit is contained in:
Michael Rose 2016-04-14 14:26:47 -04:00
parent 759766a66e
commit 9ce87108ff

View file

@ -25,7 +25,7 @@
{% if paginator %}
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page }} {{ paginator.page }}{% endunless %}
{% else %}
{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
{% endif %}
</h1>
{% if page.excerpt %}