LoveIt/layouts/partials/single/footer.html

86 lines
3.7 KiB
HTML
Raw Normal View History

{{- $params := .Scratch.Get "params" -}}
2019-08-24 13:32:41 +02:00
<div class="post-footer" id="post-footer">
2019-08-18 19:36:52 +02:00
<div class="post-info">
2019-08-19 07:26:39 +02:00
<div class="post-info-line">
<div class="post-info-mod">
2020-01-31 15:53:04 +01:00
<span>
2020-05-18 10:10:24 +02:00
{{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}}
{{- dict "Date" . | T "updatedOnDate" -}}
{{- if $.Site.Params.gitRepo -}}
{{- with $.GitInfo -}}
&nbsp;<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 -}}
2020-05-18 10:10:24 +02:00
</a>
{{- end -}}
{{- end -}}
2020-03-03 18:27:30 +01:00
{{- end -}}
2020-01-31 15:53:04 +01:00
</span>
2019-08-19 07:26:39 +02:00
</div>
{{- with $params.license | string -}}
2019-08-19 07:26:39 +02:00
<div class="post-info-license">
<span>
{{- . | safeHTML -}}
</span>
2019-08-19 07:26:39 +02:00
</div>
{{- end -}}
2019-08-19 07:26:39 +02:00
</div>
<div class="post-info-line">
<div class="post-info-md">
{{- if $params.linktomarkdown -}}
2020-01-31 15:53:04 +01:00
{{- with .OutputFormats.Get "markdown" -}}
<span>
<a class="link-to-markdown" href="{{ .RelPermalink }}" target="_blank">
2020-05-18 10:10:24 +02:00
{{- T "readMarkdown" -}}
2020-01-31 15:53:04 +01:00
</a>
</span>
{{- end -}}
{{- end -}}
2019-08-19 07:26:39 +02:00
</div>
<div class="post-info-share">
2020-02-24 10:00:39 +01:00
<span>
{{- partial "plugin/share.html" . -}}
</span>
2019-08-19 07:26:39 +02:00
</div>
2019-08-18 19:36:52 +02:00
</div>
</div>
<div class="post-info-more">
<section class="post-tags">
2020-04-28 06:53:06 +02:00
{{- with .Params.tags -}}
<i class="fas fa-tags fa-fw" aria-hidden="true"></i>&nbsp;
{{- range $index, $value := . -}}
{{- if gt $index 0 }},&nbsp;{{ end -}}
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
<a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- end -}}
2019-08-18 19:36:52 +02:00
</section>
<section>
<span><a href="javascript:void(0);" onclick="window.history.back();">{{ T "back" }}</a></span>&nbsp;|&nbsp;<span><a href="{{ .Site.Home.RelPermalink }}">{{ T "home" }}</a></span>
2019-08-18 19:36:52 +02:00
</section>
</div>
<div class="post-nav">
{{- $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>
2020-01-31 15:53:04 +01:00
{{- end -}}
{{ 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>
2020-01-31 15:53:04 +01:00
{{- end -}}
2019-08-18 19:36:52 +02:00
</div>
2020-02-06 17:10:00 +01:00
</div>