hacks-guide-minimal-mistake.../_layouts/default.html
Michael Rose 538d4cf450 Update header images
- Rename image.feature to header.image
2016-02-24 21:23:29 -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.credit %}
<span class="image-credit">Photo Credit: <a href="{{ page.header.credit.url }}">{{ page.header.credit.caption }}</a></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>