diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 21:44:01 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 21:44:01 +0100 |
commit | e9ec93a471d9a753db01b682e75c52b32adf16f2 (patch) | |
tree | 5f6d9a2b7d90852965b6d24f9db6a9198570c03b /themes/LoveIt/layouts/partials/single | |
parent | bcafaafff80184537a3116de5341a8caa24d63f4 (diff) |
use LoveIt theme, self hosted
Diffstat (limited to 'themes/LoveIt/layouts/partials/single')
-rw-r--r-- | themes/LoveIt/layouts/partials/single/footer.html | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/partials/single/footer.html b/themes/LoveIt/layouts/partials/single/footer.html new file mode 100644 index 0000000..c5b682f --- /dev/null +++ b/themes/LoveIt/layouts/partials/single/footer.html @@ -0,0 +1,72 @@ +{{- $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 -}} + <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"></i>{{- .AbbreviatedHash -}} + </a> + {{- end -}} + {{- end -}} + {{- end -}} + </span> + </div> + <div class="post-info-license"> + {{- with $params.license | string -}} + <span> + {{- . | 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 "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 -}} + <i class="fas fa-tags fa-fw"></i> + {{- 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"> + {{- 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> |