11{{- $params := .Scratch.Get "params" -}}
22
33< div class ="post-footer " id ="post-footer ">
4- < div class ="post-info ">
5- < div class ="post-info-line ">
6- < div class ="post-info-mod ">
7- < span >
8- {{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}}
9- {{- dict "Date" . | T "updatedOnDate" -}}
10- {{- if $.Site.Params.gitRepo -}}
11- {{- with $.GitInfo -}}
12- < a class ="git-hash " href ="{{ printf `%v/commit/%v` $.Site.Params.gitRepo .Hash }} "
13- target ="_blank "
14- title ="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }} ">
15- < i class ="fas fa-hashtag fa-fw " aria-hidden ="true "> </ i > {{- .AbbreviatedHash -}}
16- </ a >
17- {{- end -}}
18- {{- end -}}
19- {{- end -}}
20- </ span >
21- </ div >
22- {{- with $params.license | string -}}
23- < div class ="post-info-license ">
24- < span >
25- {{- . | safeHTML -}}
26- </ span >
27- </ div >
28- {{- end -}}
29- </ div >
30- < div class ="post-info-line ">
31- < div class ="post-info-md ">
32- {{- if $params.linktomarkdown -}}
33- {{- with .OutputFormats.Get "markdown" -}}
34- < span >
35- < a class ="link-to-markdown " href ="{{ .RelPermalink }} " target ="_blank ">
36- {{- T "readMarkdown" -}}
37- </ a >
38- </ span >
39- {{- end -}}
40- {{- end -}}
41- </ div >
42- < div class ="post-info-share ">
43- < span >
44- {{- partial "plugin/share.html" . -}}
45- </ span >
46- </ div >
47- </ div >
4+ < div class ="post-info ">
5+ {{- with .Site.Params.qrcode | string -}}
6+ < div class ="post-info-line ">
7+ < div class ="post-info-qr "> {{- . | safeHTML -}}</ div >
488 </ div >
49-
50- < div class ="post-info-more ">
51- < section class ="post-tags ">
52- {{- with .Params.tags -}}
53- < i class ="fas fa-tags fa-fw " aria-hidden ="true "> </ i >
54- {{- range $index, $value := . -}}
55- {{- if gt $index 0 }}, {{ end -}}
56- {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
57- < a href ="{{ $tag.RelPermalink }} "> {{ $tag.Title }}</ a >
58- {{- end -}}
59- {{- end -}}
60- </ section >
61- < section class ="post-button ">
62- < span > < a href ="javascript:void(0); " onclick ="window.history.back(); "> {{ T "back"
63- }}</ a > </ span > | < span > < a href ="{{ .Site.Home.RelPermalink }} "> {{ T "home" }}</ a > </ span >
64- </ section >
9+ {{- end -}}
10+ < div class ="post-info-line ">
11+ < div class ="post-info-mod ">
12+ < span >
13+ {{- with .Site.Params.dateformat | default "2006-01-02" |
14+ .Lastmod.Format -}} {{- dict "Date" . | T "updatedOnDate" -}} {{- if
15+ $.Site.Params.gitRepo -}} {{- with $.GitInfo -}} < a
16+ class ="git-hash "
17+ href ="{{ printf `%v/commit/%v` $.Site.Params.gitRepo .Hash }} "
18+ target ="_blank "
19+ title ="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }} "
20+ >
21+ < i class ="fas fa-hashtag fa-fw " aria-hidden ="true "> </ i > {{-
22+ .AbbreviatedHash -}}
23+ </ a >
24+ {{- end -}} {{- end -}} {{- end -}}
25+ </ span >
26+ </ div >
27+ {{- with $params.license | string -}}
28+ < div class ="post-info-license ">
29+ < span > {{- . | safeHTML -}} </ span >
30+ </ div >
31+ {{- end -}}
6532 </ div >
66-
67- < div class ="post-nav ">
68- {{- $prevPage := false -}}
69- {{- $nextPage := false -}}
70- {{- if or (.Params.prev) (.Params.next) -}}
71- {{- with .Params.prev -}}
72- {{- $prevPage = $.Site.GetPage . -}}
73- {{- end -}}
74- {{- with .Params.next -}}
75- {{- $nextPage = $.Site.GetPage . -}}
76- {{- end -}}
77- {{- else -}}
78- {{- $prevPage = .PrevInSection -}}
79- {{- $nextPage = .NextInSection -}}
80- {{- end -}}
81- {{- with $prevPage -}}
82- < a href ="{{ .RelPermalink }} " class ="prev " rel ="prev " title ="{{ .Title }} "> < i class ="fas fa-angle-left fa-fw "
83- aria-hidden ="true "> </ i > {{ .Title | emojify }}</ a >
84- {{- end -}}
85- {{ with $nextPage }}
86- < a href ="{{ .RelPermalink }} " class ="next " rel ="next " title ="{{ .Title }} "> {{ .Title | emojify }}< i
87- class ="fas fa-angle-right fa-fw " aria-hidden ="true "> </ i > </ a >
88- {{- end -}}
33+ < div class ="post-info-line ">
34+ < div class ="post-info-md ">
35+ {{- if $params.linktomarkdown -}} {{- with .OutputFormats.Get "markdown"
36+ -}}
37+ < span >
38+ < a
39+ class ="link-to-markdown "
40+ href ="{{ .RelPermalink }} "
41+ target ="_blank "
42+ >
43+ {{- T "readMarkdown" -}}
44+ </ a >
45+ </ span >
46+ {{- end -}} {{- end -}}
47+ </ div >
48+ < div class ="post-info-share ">
49+ < span > {{- partial "plugin/share.html" . -}} </ span >
50+ </ div >
8951 </ div >
90- </ div >
52+ </ div >
53+
54+ < div class ="post-info-more ">
55+ < section class ="post-tags ">
56+ {{- with .Params.tags -}}
57+ < i class ="fas fa-tags fa-fw " aria-hidden ="true "> </ i > {{- range
58+ $index, $value := . -}} {{- if gt $index 0 }}, {{ end -}} {{- $tag :=
59+ partialCached "function/path.html" $value $value | printf "/tags/%v" |
60+ $.Site.GetPage -}}
61+ < a href ="{{ $tag.RelPermalink }} "> {{ $tag.Title }}</ a >
62+ {{- end -}} {{- end -}}
63+ </ section >
64+ < section class ="post-button ">
65+ < span
66+ > < a href ="javascript:void(0); " onclick ="window.history.back(); "
67+ > {{ T "back" }}</ a
68+ > </ span
69+ > | < span
70+ > < a href ="{{ .Site.Home.RelPermalink }} "> {{ T "home" }}</ a > </ span
71+ >
72+ </ section >
73+ </ div >
74+
75+ < div class ="post-nav ">
76+ {{- $prevPage := false -}} {{- $nextPage := false -}} {{- if or
77+ (.Params.prev) (.Params.next) -}} {{- with .Params.prev -}} {{- $prevPage =
78+ $.Site.GetPage . -}} {{- end -}} {{- with .Params.next -}} {{- $nextPage =
79+ $.Site.GetPage . -}} {{- end -}} {{- else -}} {{- $prevPage = .PrevInSection
80+ -}} {{- $nextPage = .NextInSection -}} {{- end -}} {{- with $prevPage -}}
81+ < a href ="{{ .RelPermalink }} " class ="prev " rel ="prev " title ="{{ .Title }} "
82+ > < i class ="fas fa-angle-left fa-fw " aria-hidden ="true "> </ i > {{ .Title |
83+ emojify }}</ a
84+ >
85+ {{- end -}} {{ with $nextPage }}
86+ < a href ="{{ .RelPermalink }} " class ="next " rel ="next " title ="{{ .Title }} "
87+ > {{ .Title | emojify }}< i
88+ class ="fas fa-angle-right fa-fw "
89+ aria-hidden ="true "
90+ > </ i
91+ > </ a >
92+ {{- end -}}
93+ </ div >
94+ </ div >
0 commit comments