mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 10:56:16 +01:00
f14301c395
* feat: improve configuration * fix: fix partials/footer.html error
68 lines
3 KiB
HTML
68 lines
3 KiB
HTML
{{- $params := .Scratch.Get "params" -}}
|
|
{{- $modify_date := .Lastmod.Format (.Site.Params.dateformat | default "2006-01-02") -}}
|
|
<div class="post-footer" id="post-footer">
|
|
<div class="post-info">
|
|
<div class="post-info-line">
|
|
<div class="post-info-mod">
|
|
<span>
|
|
{{- printf (T "lastMod") $modify_date -}}
|
|
{{- with .GitInfo -}}
|
|
{{- $gitHash := .Hash -}}
|
|
<a class="git-hash" {{ with $.Site.Params.gitRepo }}href="{{ printf `%s/commit/%s` . $gitHash }}" target="_blank"{{ else }}href="javascript:void(0);"{{ end }} title="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ $gitHash }}: {{ .Subject }}">
|
|
<i class="fas fa-hashtag fa-fw"></i>{{- .AbbreviatedHash -}}
|
|
</a>
|
|
{{- end -}}
|
|
</span>
|
|
</div>
|
|
<div class="post-info-license">
|
|
{{- with $params.license -}}
|
|
<span>
|
|
{{- printf (T "license") . | safeHTML -}}
|
|
</span>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
<div class="post-info-line">
|
|
<div class="post-info-md">
|
|
{{- if $params.linktomarkdown -}}
|
|
{{- with .OutputFormats.Get "markdown" -}}
|
|
<span>
|
|
<a class="link-to-markdown" href="{{ .RelPermalink }}" target="_blank">
|
|
{{- T "seeMarkdown" -}}
|
|
</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 -}}
|
|
<i class="fas fa-tags fa-fw"></i>
|
|
{{- range $index, $value := . -}}
|
|
{{- if gt $index 0 }}, {{ end -}}
|
|
<a href="{{ `/tags/` | relLangURL }}{{ urlize $value }}">{{ $value }}</a>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</section>
|
|
<section>
|
|
<span><a href="javascript:window.history.back();">{{ T "back" }}</a></span> | <span><a href="{{ `/` | relLangURL }}">{{ T "home" }}</a></span>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="post-nav">
|
|
{{- if .PrevInSection -}}
|
|
<a href="{{ .PrevInSection.RelPermalink }}" class="prev" rel="prev" title="{{ .PrevInSection.Title }}"><i class="fas fa-angle-left fa-fw"></i>{{ .PrevInSection.Title }}</a>
|
|
{{- end -}}
|
|
{{ if .NextInSection }}
|
|
<a href="{{ .NextInSection.RelPermalink }}" class="next" rel="next" title="{{ .NextInSection.Title }}">{{ .NextInSection.Title }}<i class="fas fa-angle-right fa-fw"></i></a>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|