blob: cdb6604e3c9a605c2bee46fecad038824542c041 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{{- $Deliver := . -}}
<main class="main single" id="main">
<div class="main-inner">
{{ partial "components/data-attributes.html" . }}
{{- $smallCaps := .Scratch.Get "smallCaps" -}}
{{- $align := .Scratch.Get "align" -}}
{{- $type := .Scratch.Get "type" -}}
{{- $layout := .Scratch.Get "layout" -}}
{{- $indent := .Scratch.Get "indent" -}}
<article class="content post"{{ if $smallCaps }} data-small-caps="true"{{ end }}{{ with $align }} data-align="{{ . }}"{{ end }}{{ with $type }} data-type="{{ . }}"{{ end }}{{ with $layout }} data-layout="{{ . }}"{{ end }}{{ if $indent }} data-indent="true"{{ end }}>
<h1 class="post-title">{{ .Title }}</h1>
{{ with .Params.subtitle }}
{{- $raw := . -}}
{{- partial "components/markdownify.html" (dict "Deliver" $Deliver "raw" $raw) -}}
{{- $Content := $Deliver.Scratch.Get "Content" -}}
<div class="post-subtitle">{{ $Content | safeHTML }}</div>
{{ end }}
{{ if .Site.Params.displayPostDescription }}
{{ with .Params.description }}
{{- $raw := . -}}
{{- partial "components/markdownify.html" (dict "Deliver" $Deliver "raw" $raw) -}}
{{- $Content := $Deliver.Scratch.Get "Content" -}}
<div class="post-description">{{ $Content | safeHTML }}</div>
{{ end }}
{{ end }}
{{ if .Params.meta | default .Site.Params.enablePostMeta }}
{{ partial "post-meta.html" (dict "Deliver" . "isHome" false) }}
{{ end }}
{{ $enableTOC := .Params.toc | default .Site.Params.enableTOC -}}
{{- if $enableTOC -}}
{{- partial "components/toc.html" . -}}
{{- $toc := .Scratch.Get "toc" }}
{{ $toc -}}
{{- end -}}
{{- partial "components/content.html" . -}}
{{- $Content := .Scratch.Get "Content" -}}
<div class="post-body">
{{- $Content -}}
</div>
</article>
{{ if and .Site.Params.enableGoogleAdUnits (eq hugo.Environment "production") -}}
{{ partial "third-party/google-adsense-unit.html" . }}
{{- end }}
{{ partial "post-copyright.html" . }}
{{ partial "post-updated-badge.html" . }}
{{ partial "post-gitinfo.html" . }}
{{ partial "related-posts.html" . }}
{{ partial "post-tags.html" . }}
{{ partial "minimal-footer.html" . }}
{{ partial "minimal-footer-about.html" . }}
{{ partial "post-nav.html" . }}
{{ partial "comments.html" . }}
</div>
</main>
|