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

70 lines
3 KiB
HTML
Raw Normal View History

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>
{% include head.html %}
</head>
2013-05-29 14:24:26 +02:00
<body class="article" itemscope itemtype="http://schema.org/WebPage">
2013-05-24 16:25:31 +02:00
2013-09-07 15:25:00 +02:00
{% include browser-upgrade.html %}
2013-05-24 16:25:31 +02:00
{% include navigation.html %}
{% if page.image.feature %}<div class="image-wrap">
2013-05-29 14:43:05 +02:00
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
2013-05-24 16:25:31 +02:00
</div><!-- /.image-wrap -->{% endif %}
2013-05-29 14:24:26 +02:00
<div id="main" role="main" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
2013-05-24 16:25:31 +02:00
<div class="article-author-top">
{% include author-bio.html %}
</div>
2013-05-29 14:24:26 +02:00
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
2013-05-24 16:25:31 +02:00
<div class="headline-wrap">
<h1 itemprop="name">{{ page.title }}</h1>
2013-05-24 16:25:31 +02:00
<h2>{{ page.tagline }}</h2>
</div><!--/ .headline-wrap -->
2013-05-29 14:24:26 +02:00
<div class="article-wrap" itemprop="text">
2013-05-24 16:25:31 +02:00
{{ content }}
<hr />
<footer role="contentinfo">
<div class="article-author-bottom">
{% include author-bio.html %}
</div>
2013-05-29 14:52:06 +02:00
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}" itemprop="dateModified">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %} by <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><a href="{{ site.url }}/about" title="About {{ site.owner.name }}" itemprop="url">{{ site.owner.name }}</a></span></span>.</p>
2013-05-24 16:25:31 +02:00
</footer>
</div><!-- /.article-wrap -->
</article>
</div><!-- /#main -->
<div class="footer-wrap">
{% if site.related_posts.size %}<div class="related-articles">
2013-05-25 05:53:41 +02:00
<h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/articles">View all articles</a>)</small></h4>
2013-05-24 16:25:31 +02:00
<ul>
{% for post in site.related_posts limit:3 %}
{% assign match = false %}
{% for category in post.categories %}
{% if page.categories contains category %}
{% assign match = true %}
{% endif %}
{% endfor %}
{% if match %}
2013-05-24 17:43:59 +02:00
<li><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
2013-05-24 16:25:31 +02:00
{% endif %}
{% endfor %}
</ul>
<hr />
</div><!-- /.related-articles -->{% endif %}
<footer>
{% include footer.html %}
</footer>
</div><!-- /.footer-wrap -->
{% include scripts.html %}
</body>
2013-05-25 05:53:41 +02:00
</html>