Create includes for greater layout flexibility

This commit is contained in:
Michael Rose
2016-03-23 12:56:23 -04:00
parent 0e365ee248
commit 3663ba897a
6 changed files with 104 additions and 97 deletions
+12
View File
@@ -0,0 +1,12 @@
<div class="page__hero">
<img src=
{% if page.header.image contains "http" %}
"{{ page.header.image }}"
{% else %}
"{{ page.header.image | prepend: "/images/" | prepend: base_path }}"
{% endif %}
alt="{{ page.title }}" class="page__hero-image">
{% if page.header.caption %}
<span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
{% endif %}
</div>