2021-02-18 21:44:01 +01:00
{{- $params := .Scratch.Get "params" -}}
< div class = "post-footer" id = "post-footer" >
< div class = "post-info" >
< div class = "post-info-line" >
< div class = "post-info-mod" >
< span >
{{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}}
{{- dict "Date" . | T "updatedOnDate" -}}
{{- if $.Site.Params.gitRepo -}}
{{- with $.GitInfo -}}
2022-08-14 19:01:21 +02:00
< a class = "git-hash" href = "{{ printf `%v/commit/%v` $.Site.Params.gitRepo .Hash }}" target = "_blank" title = "commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }}" >
< i class = "fas fa-hashtag fa-fw" aria-hidden = "true" > < / i > {{- .AbbreviatedHash -}}
2021-02-18 21:44:01 +01:00
< / a >
{{- end -}}
{{- end -}}
{{- end -}}
< / span >
< / div >
2022-08-14 19:01:21 +02:00
{{- with $params.license | string -}}
2021-02-18 21:44:01 +01:00
< div class = "post-info-license" >
2022-08-14 19:01:21 +02:00
< span >
{{- . | safeHTML -}}
< / span >
2021-02-18 21:44:01 +01:00
< / div >
2022-08-14 19:01:21 +02:00
{{- end -}}
2021-02-18 21:44:01 +01:00
< / div >
< div class = "post-info-line" >
< div class = "post-info-md" >
{{- if $params.linktomarkdown -}}
{{- with .OutputFormats.Get "markdown" -}}
< span >
2022-08-14 19:01:21 +02:00
< a class = "link-to-markdown" href = "{{ .RelPermalink }}" target = "_blank" >
2021-02-18 21:44:01 +01:00
{{- T "readMarkdown" -}}
< / a >
< / span >
{{- end -}}
{{- end -}}
< / div >
< div class = "post-info-share" >
< span >
{{- partial "plugin/share.html" . -}}
< / span >
< / div >
< / div >
< / div >
< div class = "post-info-more" >
< section class = "post-tags" >
{{- with .Params.tags -}}
2022-08-14 19:01:21 +02:00
< i class = "fas fa-tags fa-fw" aria-hidden = "true" > < / i >
2021-02-18 21:44:01 +01:00
{{- range $index, $value := . -}}
{{- if gt $index 0 }}, {{ end -}}
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
< a href = "{{ $tag.RelPermalink }}" > {{ $tag.Title }}< / a >
{{- end -}}
{{- end -}}
< / section >
< section >
< span > < a href = "javascript:void(0);" onclick = "window.history.back();" > {{ T "back" }}< / a > < / span > | < span > < a href = "{{ .Site.Home.RelPermalink }}" > {{ T "home" }}< / a > < / span >
< / section >
< / div >
< div class = "post-nav" >
2022-08-14 19:01:21 +02:00
{{- $prevPage := false -}}
{{- $nextPage := false -}}
{{- if or (.Params.prev) (.Params.next) -}}
{{- with .Params.prev -}}
{{- $prevPage = $.Site.GetPage . -}}
{{- end -}}
{{- with .Params.next -}}
{{- $nextPage = $.Site.GetPage . -}}
{{- end -}}
{{- else -}}
{{- $prevPage = .PrevInSection -}}
{{- $nextPage = .NextInSection -}}
{{- end -}}
{{- with $prevPage -}}
< a href = "{{ .RelPermalink }}" class = "prev" rel = "prev" title = "{{ .Title }}" > < i class = "fas fa-angle-left fa-fw" aria-hidden = "true" > < / i > {{ .Title | emojify }}< / a >
2021-02-18 21:44:01 +01:00
{{- end -}}
2022-08-14 19:01:21 +02:00
{{ with $nextPage }}
< a href = "{{ .RelPermalink }}" class = "next" rel = "next" title = "{{ .Title }}" > {{ .Title | emojify }}< i class = "fas fa-angle-right fa-fw" aria-hidden = "true" > < / i > < / a >
2021-02-18 21:44:01 +01:00
{{- end -}}
< / div >
< / div >