summaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
blob: 26a8213ff80dd69353bf25b8a0dd36230b6899be (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
{{ define "main" }}
<article>
    <!-- post meta -->
    <h2 class="post-item post-title">
        <a href="{{ .Permalink }}">{{ .Title }}</a>
    </h2>
    <div class="post-item post-meta">
        {{ partial "post-meta.html" . }}
    </div>
    {{ with .Params.player }}
    <div id="post-aplayer"></div>
    {{ end }}
    <!-- post main content -->
    <div class="post-content markdown-body">
        {{ .Content }}
    </div>
</article>
<!-- post license -->
{{ if and (or .Site.Params.showLicense .Params.showLicense) (ne .Params.showLicense false) }}
<div class="license markdown-body">
    <blockquote>
        <p>{{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}"
               target="_blank">{{ .Site.Params.license }}</a>{{ i18n "postCopyrightEnd" }}</p>
    </blockquote>
</div>
{{ end }}
{{ if .Site.Params.disqusJSApi }}
{{ partial "comment-disqusjs.html" . }}
{{ else if .Site.Params.disqusShortname }}
{{ partial "comment-disqus.html" . }}
{{ else if .Site.Params.utterancesRepo }}
{{ partial "comment-utterances.html" . }}
{{ else }}{{ end }}
{{ end }}