single.html 776 Bytes
Newer Older
Kaushal Modi's avatar
Kaushal Modi committed
1 2 3 4
{{ define "main" }}

<div class="post">
    <h1 class="post-title">{{ .Title }}</h1>
5
    <span class="post-date">{{ partial "publishdate-maybe" . }}</span>
Kaushal Modi's avatar
Kaushal Modi committed
6
    {{ .Content }}
7
</div>
Kaushal Modi's avatar
Kaushal Modi committed
8

9
<div class="post-catlist right">
Kaushal Modi's avatar
Kaushal Modi committed
10 11 12 13 14 15 16
    {{ partial "post_categories" . }}
</div>

{{ end }}

{{ define "after_main" }}

17
<div class="prev-next-navigator clear-float no-color-links">
18 19
    {{ partial "prev_next" . }}
</div>
Kaushal Modi's avatar
Kaushal Modi committed
20

21
{{ if isset .Site.Params "isso" }}
Kaushal Modi's avatar
Kaushal Modi committed
22 23 24 25 26
    <div class="comments clear-float">
        <h1>Comments</h1>
        {{ partial "isso" . }}
    </div>
{{ else if isset .Site.Params "disquscomments" }}
27 28 29 30 31 32
    <div class="comments clear-float">
        <h1>Comments</h1>
        {{/* template "_internal/disqus.html" . */}}
        {{ partial "disqus" . }}
    </div>
{{ end }}
Kaushal Modi's avatar
Kaushal Modi committed
33 34

{{ end }}