-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.html
57 lines (51 loc) · 1.83 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
layout: default
---
<article
class="post h-entry"
itemscope
itemtype="http://schema.org/BlogPosting"
>
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">
{{ page.title | escape }}
</h1>
<p class="post-meta">
<time
class="dt-published"
datetime="{{ page.date | date_to_xmlschema }}"
itemprop="datePublished"
>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y"
-%} {{ page.date | date: date_format }}
</time>
<!--
Adding tags inpired by Meta Redux blog by bbatsov on github. There were
some other methods around but they involved using python to build the
sites for each tag, which I didn't want to do. This method is simple and
works well because it helps to organize the posts by tags and then helps
you to find them.
github permalink:
https://github.com/bbatsov/metaredux/blob/93f58690c6d142169d3289e6c0fe95dcf20ce9e7/_layouts/post.html
-->
{% if page.tags %} |
{% for tag in page.tags %}
<code class="highlighter-rouge"><a class="post-tag" href="/tags/#{{ tag | slugify }}">{{ tag }}</a></code>
{% endfor %}
{% endif %}
{%- if page.author -%} •
<span itemprop="author" itemscope itemtype="http://schema.org/Person"
><span class="p-author h-card" itemprop="name"
>{{ page.author }}</span
></span
>
{%- endif -%}
</p>
</header>
<div class="post-content e-content" itemprop="articleBody">{{ content }}</div>
{%- assign issue-term = page.title |
remove: " | David Budzyński" |
prepend: 'Comments: ' -%}
{% include utterances.html issue-term=issue-term %}
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>