Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/single/footer.html')
-rw-r--r--layouts/partials/single/footer.html36
1 files changed, 15 insertions, 21 deletions
diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html
index d37d5eb..9cc7f11 100644
--- a/layouts/partials/single/footer.html
+++ b/layouts/partials/single/footer.html
@@ -1,30 +1,15 @@
{{- $params := .Scratch.Get "params" -}}
+{{- $pageTheme := $params.Theme | default .Site.Params.Page.theme | default "classic" -}}
+{{ $button := $params.button}}
+{{ if eq $button.enable true }}
<div class="post-info-share">
- <span>
- {{- partial "plugin/share.html" . -}}
- </span>
+ <a href="{{ $button.link }}" class="button button-big button-red">{{ $button.text }}</a>
</div>
-
-{{- $authorName := $params.author | default .Site.Author.name | default " " -}}
-{{- if not (eq $authorName " ") -}}
-{{ $author := index .Site.Data.authors $authorName }}
-<div class="footer-post-author" {{- if not $author.ps -}} style="border-radius: 10px;border-bottom: solid 2px #ececec" {{- end -}}>
- <div class="author-avatar"><a href="{{ with $author.link }} {{- . | safeHTML -}}{{ end }}" target="_blank"><img alt="" src="{{ with $author.avatar }} {{- . | safeHTML -}}{{ end }}" border="0"></a></div>
- <div class="author-info">
- <div class="name"><a href="{{ with $author.link }} {{- . | safeHTML -}}{{ end }}" target="_blank">{{ $author.name }}</a></div>
- <div class="number-posts">{{ $author.about }}</span></div>
- </div>
-</div>
-{{- if $author.ps -}}
-<div class="footer-donate">
- <div>{{- $author.ps | safeHTML -}}</div>
-</div>
-{{- end -}}
-{{- end -}}
+{{ end }}
<div class="post-footer" id="post-footer">
- {{- if or .PrevInSection .NextInSection -}}
+ {{- if and (or .PrevInSection .NextInSection) $params.showPostNav -}}
<div class="post-navigation">
{{- if .PrevInSection -}}
<div class="post-nav-box nav-box-prev">
@@ -39,3 +24,12 @@
</div>
{{- end -}}
</div>
+
+{{- with .Params.tags -}}
+<div class="post-tags">
+ {{- range $index, $value := . -}}
+ {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
+ <a href="{{ $tag.RelPermalink }}" class="tag">{{ $tag.Title }}</a>
+ {{- end -}}
+</div>
+{{- end -}}