datat.fi/_includes/page-intro.html

31 lines
1.2 KiB
HTML
Raw Normal View History

2017-03-09 16:24:15 +02:00
<header id="intro">
2017-03-07 23:12:17 +02:00
<div class="inner">
<div class="intro-text">
2017-03-08 23:07:06 +02:00
<h1 class="intro-title">{{ page.alt_title | default: page.title | default: site.title | markdownify | strip_html }}</h1>
2017-03-07 23:12:17 +02:00
{% if page.sub_title %}
2017-03-08 23:07:06 +02:00
<p class="intro-subtitle">{{ page.sub_title | markdownify | strip_html }}</p>
2017-03-07 23:12:17 +02:00
{% endif %}
{% if page.date %}
{% include author %}
<p class="entry-meta">
{% if author_name %}<span class="byline-item">{{ author_name | prepend: 'by ' }}</span>{% endif %}<span class="byline-item"><time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time></span>
</p>
{% endif %}
{% if page.introduction %}
<div class="intro-more">
{{ page.introduction | markdownify }}
</div>
{% endif %}
{% if page.actions %}
<ul class="intro-actions">
{% for action in page.actions %}
<li><a href="{{ action.url }}" class="btn">{% if action.icon %}<span class="icon">{% include {{ action.icon | prepend: 'icon-' | append: '.svg' }} %}</span>{% endif %}{{ action.label }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</header>