diff options
author | uPagge <upagge@mail.ru> | 2020-11-29 12:28:10 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2020-11-29 12:28:10 +0300 |
commit | 840c177f9942aaab3eab3bc63dccaf6f47e15467 (patch) | |
tree | b466fd57bd1e7108d34d2bbf3f9cf0b7aecde3f8 /layouts/partials | |
parent | f5253591f3a47b63f7eaf24c0b0ac225b1e0fdf5 (diff) |
Доработка дизайна и исправление статей
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/plugin/share.html | 24 | ||||
-rw-r--r-- | layouts/partials/single/footer.html | 26 |
2 files changed, 33 insertions, 17 deletions
diff --git a/layouts/partials/plugin/share.html b/layouts/partials/plugin/share.html index 77f412b..06e2f64 100644 --- a/layouts/partials/plugin/share.html +++ b/layouts/partials/plugin/share.html @@ -4,77 +4,77 @@ {{- /* 000: Telegram */ -}} {{- if $share.Telegram -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Telegram" data-sharer="telegram" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Site.Params.Social.Telegram }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}> + <a class="share-icon share-telegram" href="javascript:void(0);" title="{{ T `shareOn` }} Telegram" data-sharer="telegram" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Site.Params.Social.Telegram }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}> {{- dict "Class" "fab fa-telegram fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 001: Twitter */ -}} {{- if $share.Twitter -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Twitter" data-sharer="twitter" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Site.Params.Social.Twitter }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}> + <a class="share-icon share-twitter" href="javascript:void(0);" title="{{ T `shareOn` }} Twitter" data-sharer="twitter" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Site.Params.Social.Twitter }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}> {{- dict "Class" "fab fa-twitter fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 002: Facebook */ -}} {{- if $share.Facebook -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Facebook" data-sharer="facebook" data-url="{{ .Permalink }}"{{ with .Params.tags }} data-hashtag="{{ index . 0 }}"{{ end }}> + <a class="share-icon share-facebook" href="javascript:void(0);" title="{{ T `shareOn` }} Facebook" data-sharer="facebook" data-url="{{ .Permalink }}"{{ with .Params.tags }} data-hashtag="{{ index . 0 }}"{{ end }}> {{- dict "Class" "fab fa-facebook-square fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 003: Linkedin */ -}} {{- if $share.Linkedin -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Linkedin" data-sharer="linkedin" data-url="{{ .Permalink }}"> + <a class="share-icon share-linkedin" href="javascript:void(0);" title="{{ T `shareOn` }} Linkedin" data-sharer="linkedin" data-url="{{ .Permalink }}"> {{- dict "Class" "fab fa-linkedin fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 004: WhatsApp */ -}} {{- if $share.Whatsapp -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} WhatsApp" data-sharer="whatsapp" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-web> + <a class="share-icon share-whatsapp" href="javascript:void(0);" title="{{ T `shareOn` }} WhatsApp" data-sharer="whatsapp" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-web> {{- dict "Class" "fab fa-whatsapp fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 005: Viber */ -}} {{- if $share.Viber -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Viber" data-sharer="viber" data-url="{{ .Permalink }}" data-title="{{ .Title }}"> + <a class="share-icon share-viber" href="javascript:void(0);" title="{{ T `shareOn` }} Viber" data-sharer="viber" data-url="{{ .Permalink }}" data-title="{{ .Title }}"> {{- dict "Class" "fab fa-viber fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 006: Pinterest */ -}} {{- if $share.Pinterest -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Pinterest" data-sharer="pinterest" data-url="{{ .Permalink }}"{{ with .Description }} data-description="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}> + <a class="share-icon share-pinterest" href="javascript:void(0);" title="{{ T `shareOn` }} Pinterest" data-sharer="pinterest" data-url="{{ .Permalink }}"{{ with .Description }} data-description="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}> {{- dict "Class" "fab fa-pinterest fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 007: Tumblr */ -}} {{- if $share.Tumblr -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Tumblr" data-sharer="tumblr" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Description }} data-caption="{{ . }}"{{ end }}{{ with .Params.tags }} data-tags="{{ delimit . `,` }}"{{ end }}> + <a class="share-icon tumblr" href="javascript:void(0);" title="{{ T `shareOn` }} Tumblr" data-sharer="tumblr" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Description }} data-caption="{{ . }}"{{ end }}{{ with .Params.tags }} data-tags="{{ delimit . `,` }}"{{ end }}> {{- dict "Class" "fab fa-tumblr fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 008: Hacker News */ -}} {{- if $share.Hackernews -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Hacker News" data-sharer="hackernews" data-url="{{ .Permalink }}" data-title="{{ .Title }}"> + <a class="share-icon share-hackernews" href="javascript:void(0);" title="{{ T `shareOn` }} Hacker News" data-sharer="hackernews" data-url="{{ .Permalink }}" data-title="{{ .Title }}"> {{- dict "Class" "fab fa-hacker-news fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 009: Reddit */ -}} {{- if $share.Reddit -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Reddit" data-sharer="reddit" data-url="{{ .Permalink }}"> + <a class="share-icon share-reddit" href="javascript:void(0);" title="{{ T `shareOn` }} Reddit" data-sharer="reddit" data-url="{{ .Permalink }}"> {{- dict "Class" "fab fa-reddit fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} {{- /* 010: VK */ -}} {{- if $share.VK -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} VK" data-sharer="vk" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Description }} data-caption="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}> + <a class="share-icon share-vk" href="javascript:void(0);" title="{{ T `shareOn` }} VK" data-sharer="vk" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Description }} data-caption="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}> {{- dict "Class" "fab fa-vk fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} @@ -109,7 +109,7 @@ {{- /* 015: Pocket */ -}} {{- if $share.Pocket -}} - <a href="javascript:void(0);" title="{{ T `shareOn` }} Pocket" data-sharer="pocket" data-url="{{ .Permalink }}"> + <a class="share-icon share-pocket" href="javascript:void(0);" title="{{ T `shareOn` }} Pocket" data-sharer="pocket" data-url="{{ .Permalink }}"> {{- dict "Class" "fab fa-get-pocket fa-fw" | partial "plugin/icon.html" -}} </a> {{- end -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index c5b682f..7dcb2f1 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -1,5 +1,26 @@ {{- $params := .Scratch.Get "params" -}} +<div class="post-info-share"> + <span> + {{- partial "plugin/share.html" . -}} + </span> +</div> + + +{{ $author := index .Site.Data.authors (.Params.author | default "default") }} +{{- if $author -}} +<div class="footer-post-author"> + <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> +<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> +{{- end -}} + <div class="post-footer" id="post-footer"> <div class="post-info"> <div class="post-info-line"> @@ -37,11 +58,6 @@ {{- end -}} {{- end -}} </div> - <div class="post-info-share"> - <span> - {{- partial "plugin/share.html" . -}} - </span> - </div> </div> </div> |