-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.html
More file actions
48 lines (48 loc) · 1.57 KB
/
post.html
File metadata and controls
48 lines (48 loc) · 1.57 KB
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
---
layout: default
---
{%- assign date_format = site.plainwhite.date_format | default: "%b %-d, %Y" -%}
<div class="post-container">
<a class="post-link" href="{{ page.url | relative_url }}">
<h1 class="post-title">{{ page.title | escape }}</h1>
</a>
<div class="post-meta">
<div class="post-date"><i class="icon-calendar"></i>{{ page.date | date: date_format }}</div>
{%- if page.categories.size > 0 -%}
<ul class="post-categories">
{%- for tag in page.categories -%}
<li>{{ tag }}</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
{% if page.excerpt != page.content %}
<ul class="post-excerpt">
{{ page.excerpt }}
</ul>
{%- endif -%}
<div class="post">
{{ content }}
</div>
{% if page.id and page.categories.size > 0 %}
{% include related.html %}
{% endif %}
{%- if site.plainwhite.disqus_shortname -%}
<div id="disqus_thread" style="margin-top:25px"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ page.url | absolute_url }}';
this.page.identifier = '{{ page.url | absolute_url }}';
};
(function () {
var d = document, s = d.createElement('script');
s.src = 'https://{{ site.plainwhite.disqus_shortname }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
s.defer = true;
s.async = true;
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{%- endif -%}
</div>