diff options
author | uPagge <upagge@mail.ru> | 2020-12-03 03:57:52 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2020-12-03 03:57:52 +0300 |
commit | 99551a93e36180e026c075dce2f331417db01ee7 (patch) | |
tree | 1f0e83283e199ed4563f59e927e0562271fd2007 /layouts/partials | |
parent | cc1ec25adb7253b80930063ec9c6df889712b623 (diff) |
ps author
exampleSite
toc
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/function/content.html | 2 | ||||
-rw-r--r-- | layouts/partials/single/footer.html | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/function/content.html b/layouts/partials/function/content.html index f1d7ce8..fbc7731 100644 --- a/layouts/partials/function/content.html +++ b/layouts/partials/function/content.html @@ -1,5 +1,6 @@ {{- $content := .Content -}} +{{- if ne "" $content -}} {{- if .Ruby -}} {{- $content = partial "function/ruby.html" $content -}} {{- end -}} @@ -15,5 +16,6 @@ {{- $content = partial "function/checkbox.html" $content -}} {{- $content = partial "function/escape.html" $content -}} +{{- end -}} {{- return $content -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index d9225cd..0c8e99c 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -9,17 +9,19 @@ {{ $author := index .Site.Data.authors (.Params.author | default "default") }} {{- if $author -}} -<div class="footer-post-author"> +<div class="footer-post-author" {{- if not $author.ps -}} style="border-radius: 10px" {{- end -}}> <div class="author-avatar"><a href="{{ with $author.site }} {{- . | safeHTML -}}{{ end }}" target="_blank"><img alt="" src="{{ with $author.avatar }} {{- . | safeHTML -}}{{ end }}" border="0"></a></div> <div class="author-info"> <div class="name">{{ $author.name }}</div> <div class="number-posts">{{ $author.bio }}</span></div> </div> </div> +{{- if $author.ps -}} <div class="footer-donate"> - <div>Статья оказалась полезной? Делай репост 👆 или <a class="donate-link" href="https://www.tinkoff.ru/sl/NSGSK7FgEI" target="_blank" style="border-bottom: dashed 1px;color: #2c678d"> налей пива</a></div> + <div>{{- $author.ps | safeHTML -}}</div> </div> {{- end -}} +{{- end -}} <div class="post-footer" id="post-footer"> <div class="post-info"> |