hacks-guide-minimal-mistake.../_layouts/post.html

80 lines
2.7 KiB
HTML
Raw Normal View History

2016-02-22 22:16:15 +01:00
{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
2013-05-24 16:25:31 +02:00
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
<head>
2016-02-22 20:58:16 +01:00
{% include head.html %}
2013-05-24 16:25:31 +02:00
</head>
<body class="post">
2013-05-24 16:25:31 +02:00
2016-02-22 20:58:16 +01:00
{% include browser-upgrade.html %}
2013-05-24 16:25:31 +02:00
2016-02-22 20:58:16 +01:00
{% include navigation.html %}
2013-05-24 16:25:31 +02:00
2014-03-11 00:42:54 +01:00
{% if page.image.feature %}
<div class="image-wrap">
<img src=
{% if page.image.feature contains 'http' %}
2014-03-11 00:42:54 +01:00
"{{ page.image.feature }}"
{% else %}
2016-02-22 22:16:15 +01:00
"{{ page.image.feature | prepend: "/images/" | prepend: absurl }}"
2014-03-11 00:42:54 +01:00
{% endif %}
alt="{{ page.title }} feature image">
{% if page.image.credit %}
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
{% endif %}
</div><!-- /.image-wrap -->
{% endif %}
2013-05-24 16:25:31 +02:00
<div id="main" role="main">
<div class="article-author-side">
2016-02-22 20:58:16 +01:00
{% include author-bio.html %}
2013-05-24 16:25:31 +02:00
</div>
<article class="post">
2013-05-24 16:25:31 +02:00
<div class="headline-wrap">
2014-03-25 18:16:22 +01:00
{% if page.link %}
<h1><a href="{{ page.link }}">{{ page.title }}</a></h1>
{% else %}
2016-02-22 22:16:15 +01:00
<h1><a href="{{ absurl }}{{ page.url }}" rel="bookmark" title="{{ page.title }}">{{ page.title }}</a></h1>
2014-03-25 18:16:22 +01:00
{% endif %}
2013-05-24 16:25:31 +02:00
</div><!--/ .headline-wrap -->
<div class="article-wrap">
2013-05-24 16:25:31 +02:00
{{ content }}
<hr />
<footer role="contentinfo">
2016-02-22 20:58:16 +01:00
{% if page.share != false %}{% include social-share.html %}{% endif %}
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
2013-05-24 16:25:31 +02:00
</footer>
</div><!-- /.article-wrap -->
{% if site.owner.disqus-shortname and page.comments == true %}
2014-03-25 17:25:21 +01:00
<section id="disqus_thread"></section><!-- /#disqus_thread -->
{% endif %}
2013-05-24 16:25:31 +02:00
</article>
</div><!-- /#main -->
<div class="footer-wrap">
{% if site.related_posts.size > 0 %}
2014-02-27 21:00:37 +01:00
<div class="related-articles">
2016-02-22 22:16:15 +01:00
<h4>You might also enjoy <small class="pull-right">(<a href="{{ absurl }}/posts/">View all posts</a>)</small></h4>
2013-05-24 16:25:31 +02:00
<ul>
{% for post in site.related_posts limit:3 %}
2016-02-22 22:16:15 +01:00
<li><a href="{{ absurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
2013-05-24 16:25:31 +02:00
{% endfor %}
</ul>
<hr />
2014-02-27 21:00:37 +01:00
</div><!-- /.related-articles -->
{% endif %}
2013-05-24 16:25:31 +02:00
<footer>
2016-02-22 20:58:16 +01:00
{% include footer.html %}
2013-05-24 16:25:31 +02:00
</footer>
</div><!-- /.footer-wrap -->
2016-02-22 20:58:16 +01:00
{% include scripts.html %}
2013-05-24 16:25:31 +02:00
</body>
2015-04-17 12:43:36 +02:00
</html>