-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpost.html
36 lines (34 loc) · 1.58 KB
/
post.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
layout: default
---
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
<p class="post-meta">
Created <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>
{% if page.author %} by <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author.name }}</span></span>{% endif %}
and published in <a href="{{site.url}}">{{site.title}}</a>.
{% if page.categories.size > 0 %}
Labeled as {% for category in page.categories %}{% unless forloop.first %}{% if forloop.last %} and {% else %}, {% endif %}{% endunless %}<em>{{ category }}</em>{% endfor %}.
{% endif %}
</p>
</header>
<div class="post-content" itemprop="articleBody">
{{ content }}
</div>
<footer class="article-footer">
<p>
Thanks for reading.
{% if site.feedback_url %}<a href="{{site.feedback_url}}">Comment on this post!</a>{% endif %}
{% if site.post_revisions_url %}<a href="{{site.post_revisions_url}}{{page.path}}">Revision history.</a>{% endif %}
</p>
{% if page.discussions.size > 0 %}
<p>
This post has been discussed on {% for link in page.discussions %}{% unless forloop.first %}{% if forloop.last %} and {% else %}, {% endif %}{% endunless %}<a href="{{ link[1] }}">{{ link[0] }}</a>{% endfor %}.
</p>
{% endif %}
<p>
<a href="{{ site.url }}">Back to index</a>.
</p>
</footer>
</article>