blob: 350f98a0bc349d8f2a467bc96727114e5cdc31aa (
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
|
{{ partial "head.html" . }}
<body>
<div id="blog">
{{ partial "header.html" . }}
{{ partial "sidebar.html" . }}
{{ partial "post/header-cover.html" . }}
<div id="main" data-behavior="{{ .Scratch.Get "sidebarBehavior" }}"
class="{{ with .Params.coverimage }}hasCover{{ end }}
{{ if eq .Params.covermeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }}
{{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
<article class="post" id="top">
{{ with .Params.covercaption }}
<span class="post-header-cover-caption caption">{{ . | markdownify }}</span>
{{ end }}
{{ if or (not .Params.coverimage) (eq .Params.covermeta "out") }}
{{ partial "post/header.html" . }}
{{ end }}
<div class="post-content markdown">
<div class="main-content-wrap">
{{ .Content }}
{{ partial "post/gallery.html" . }}
</div>
</div>
<div id="post-footer" class="post-footer main-content-wrap">
{{ if (not (eq .Params.showTags false)) }}
{{ with .Params.tags }}
{{ $tagsLength := len . }}
{{ if gt $tagsLength 0 }}
<div class="post-footer-tags">
<span class="text-color-light text-small">{{ i18n "post.tagged_in" }}</span><br/>
{{ partial "post/tag.html" $ }}
</div>
{{ end }}
{{ end }}
{{ end }}
{{ partial "post/actions.html" . }}
{{ partial "post/comment.html" . }}
</div>
</article>
{{ partial "footer.html" . }}
</div>
<div id="bottom-bar" class="post-bottom-bar" data-behavior="{{ .Scratch.Get "sidebarBehavior" }}">
{{ partial "post/actions.html" . }}
</div>
{{ partial "post/share-options.html" . }}
</div>
{{ partial "foot.html" . }}
|