dash-website/_includes/hero/post.html
2016-11-17 09:38:07 -05:00

20 lines
830 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="hero hero--post" id="hero">
<div class="hero__background">
{% if page.image %}
<img src="/assets/img/blog/{{ page.image }}" alt="" class="hero__background-image">
{% endif %}
</div>
<!-- Navigation -->
{% include nav-desktop.html %}
<!-- Hero content -->
<div class="hero__content">
<a href="{{ basenav }}/blog/">{% t nav.blog %}{% if page.categories | size == 1 %} {{ page.categories | first }}{% if page.categories | size > 1 %}{% for category in page.categories offset: 1 %} / {{ category }} {% endfor %} {% endif %}{% endif %}</a><!-- TODO: Add category page and link to it -->
<h1 class="hero__title">{% if page.title %}{{ page.title }}{% endif %}</h1>
<p class="hero__lead">{{ page.date | date: "%b %d, %Y" }}</p>
</div>
<!-- Hero stripe -->
<div class="hero__stripe"></div>
</div>