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

60 lines
2.8 KiB
HTML
Raw Normal View History

2016-02-22 22:46:49 +01:00
---
layout: default
---
{% include base_path %}
2016-02-23 03:22:07 +01:00
2016-02-23 04:46:59 +01:00
<article class="post" itemscope itemtype="http://schema.org/CreativeWork">
2016-02-24 22:10:45 +01:00
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
2016-02-23 04:46:59 +01:00
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
{% if page.modified %}<meta itemprop="dateModified" content="{{ page.modified | date: "%B %d, %Y" }}">{% endif %}
2016-03-04 18:37:24 +01:00
<div class="article-wrap">
2016-02-23 04:46:59 +01:00
<header>
{% if page.link %}
2016-03-06 04:11:00 +01:00
<h1 itemprop="headline"><a href="{{ page.link }}">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
2016-02-23 04:46:59 +01:00
{% else %}
<h1 itemprop="headline"><a href="{{ base_path }}{{ page.url }}" rel="bookmark">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
2016-02-23 04:46:59 +01:00
{% endif %}
</header>
2016-02-23 04:46:59 +01:00
<section itemprop="text">
2016-03-06 04:11:00 +01:00
{{ content }}
2016-02-23 04:46:59 +01:00
</section>
2016-02-22 22:46:49 +01:00
<hr />
2016-02-23 04:46:59 +01:00
2016-02-22 22:46:49 +01:00
<footer role="contentinfo">
{% if site.share and page.share %}{% include social-share %}{% endif %}
{% if page.date %}
<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>
{% endif %}
2016-02-22 22:46:49 +01:00
</footer>
</div><!-- /.article-wrap -->
2013-05-24 16:25:31 +02:00
{% if site.comments.provider and page.comments %}
{% case site.comments.provider %}
{% when "disqus" %}
<section id="disqus_thread"></section>
{% when "facebook" %}
<section class="fb-comments" data-href="{{ base_path }}{{ page.url }}" data-num-posts="{{ site.comments.facebook.num_posts | default: 5 }}" data-width="{{ site.comments.facebook.width | default: 580 }}" data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"></section>
{% when "google-plus" %}
<section class="g-comments" data-href="{{ base_path }}{{ page.url }}" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ Comments ...</section>
{% when "custom" %}
<section id="comments"></section>
{% endcase %}
2014-03-25 17:25:21 +01:00
{% endif %}
2016-02-22 22:46:49 +01:00
</article>
2013-05-24 16:25:31 +02:00
2016-03-04 18:37:24 +01:00
{% comment %}<!-- only show related on a post page when not disabled -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
2014-02-27 21:00:37 +01:00
<div class="related-articles">
<h4>You might also enjoy <small class="pull-right">(<a href="{{ base_path }}/posts/">View all posts</a>)</small></h4>
2013-05-24 16:25:31 +02:00
<ul>
{% for post in site.related_posts limit:3 %}
<li><a href="{{ base_path }}{{ 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 -->
2016-02-22 22:46:49 +01:00
{% endif %}