freehold-cottage/_includes/title.html
2022-11-11 04:16:46 +00:00

20 lines
588 B
HTML

<div class="header">
<h1 class="header__text">
{% if page.icon %}
<i class="header__icon icon-{{page.icon}}"></i>
{% endif %}
{{ page.title | switcheroo | escape }}
{% if page.subtitle %}
<small class="header__subtitle">
{{ page.subtitle }}
</small>
{% endif %}
{% if page.collection == "news" %}
<small class="header__subtitle" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
{{ page.date | date: date_format }}
</small>
{% endif %}
</h1>
</div>