aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
blob: b5115639108d5dea4d4189677c90fb5d05d768ab (plain) (blame)
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
---
layout: default
---

<div class="post">
    <div class="post-info">
        <span>Written by</span>
            {% if page.author %}
                {{ page.author }}
            {% else %}
                {{ site.author.name }}
            {% endif %}

            {% if page.date %}
        <br />
        <span>on&nbsp;</span><time datetime="{{ page.date }}">{{ page.date | date: "%B %d, %Y" }}</time> {% endif %}
    </div>

    <h1 class="post-title">{{ page.title }}</h1>
    <div class="post-line"></div>

    {{ content }}

</div>

{% if page.comments %}
    <div id="disqus_thread"></div>
    <script type="text/javascript" defer>
        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://valentineus-link.disqus.com/embed.js';
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
        })();
    </script>
{% endif %}

<div class="pagination">
    {% if page.next.url %}
        <a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">&#8592;</a>
    {% endif %}

    {% if page.previous.url %}
        <a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
    {% endif %}

    <a href="#" class="top">Top</a>
</div>