hacks-guide-minimal-mistake.../_layouts/default.html
Michael Rose acd8720126 Allow Markdown for header.image.caption
- Simplify and remove extra variables by condensing into one
2016-02-25 08:15:54 -05:00

49 lines
1.1 KiB
HTML

---
layout: compress
---
{% include absolute-url.liquid %}
<!DOCTYPE html>
<html lang="{{ site.locale | slice: 0,2 }}">
<head>
{% include head.html %}
</head>
<body>
{% include browser-upgrade.html %}
{% include navigation.html %}
{% if page.header.image %}
<div class="image-wrap">
<img src=
{% if page.header.image contains "http" %}
"{{ page.header.image }}"
{% else %}
"{{ page.header.image | prepend: "/images/" | prepend: absurl }}"
{% endif %}
alt="{{ page.title }}">
{% if page.header.caption %}
<span class="image-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
{% endif %}
</div><!-- /.image-wrap -->
{% endif %}
<div id="main" role="main">
<div class="author-profile">
{% include author-profile.html %}
</div>
{{ content }}
</div><!-- /#main -->
<div class="footer-wrap">
<footer>
{% include footer.html %}
</footer>
</div><!-- /.footer-wrap -->
{% include scripts.html %}
</body>
</html>