summaryrefslogtreecommitdiff
path: root/_layouts/post.html
blob: cae547624a2a011e81dcc5e3f7e03a013da4bbaf (plain)
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: framework
banner: 'default'
banner_html: post-header.html
sidebar:
  - article-menu
---

<div class="post">
    <section>

      {%- assign name = 'banner' -%}
      {%- include functions.html func='get_value' -%}
      {%- assign banner = return -%}

      {%- if banner == nil -%}
      {%- include views/post-header.html -%}
      {%- endif -%}

      {%- include views/article.html -%}

      <div class="post-nav">
        {%- if page.previous -%}
          <a href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">&laquo; Prev</a>
        {%- else -%}
          <span></span>
        {%- endif -%}

        {%- if page.next -%}
          <a href="{{ page.next.url }}" title="{{ page.next.title | escape }}">Next &raquo;</a>
        {%- else -%}
          <span></span>
        {%- endif -%}
      </div>

      {%- if page.comments != false -%}

        {%- if site.disqus.shortname -%}
        {%- include extensions/comments/disqus.html -%}
        {%- endif -%}

        {%- if site.gitment.username -%}
        {%- include extensions/comments/gitment.html -%}
        {%- endif -%}

      {%- endif -%}

    </section>

    {%- include extensions/mathjax.html -%}
</div>