From 4b417629d13845e1a943205c921d44a2d6d67626 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sat, 12 Nov 2022 12:32:48 +0800 Subject: [PATCH] Update addthis share --- layout/_macro/post.njk | 2 ++ layout/_partials/footer.njk | 6 ------ layout/_partials/post/post-share.njk | 5 +++++ source/css/_common/components/post/post-widgets.styl | 5 +++-- 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 layout/_partials/post/post-share.njk diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index 222723d..87d27eb 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -129,6 +129,8 @@ {%- endif %} + {{ partial('_partials/post/post-share.njk', {}, {cache: theme.cache.enable}) }} + {%- if theme.post_navigation and (post.prev or post.next) %} {%- set prev = post.prev if theme.post_navigation === 'right' else post.next %} {%- set next = post.next if theme.post_navigation === 'right' else post.prev %} diff --git a/layout/_partials/footer.njk b/layout/_partials/footer.njk index d39307a..0e27c12 100644 --- a/layout/_partials/footer.njk +++ b/layout/_partials/footer.njk @@ -81,10 +81,4 @@ {%- endif %} -{%- if theme.add_this_id %} -
- -
-{%- endif %} - {{- next_inject('footer') }} diff --git a/layout/_partials/post/post-share.njk b/layout/_partials/post/post-share.njk new file mode 100644 index 0000000..0f2148f --- /dev/null +++ b/layout/_partials/post/post-share.njk @@ -0,0 +1,5 @@ +{%- if theme.add_this_id %} +
+ +
+{%- endif %} diff --git a/source/css/_common/components/post/post-widgets.styl b/source/css/_common/components/post/post-widgets.styl index 632f0a8..346f555 100644 --- a/source/css/_common/components/post/post-widgets.styl +++ b/source/css/_common/components/post/post-widgets.styl @@ -1,6 +1,7 @@ .social-like { - display: flex; + border-top: 1px solid $gainsboro; font-size: $font-size-small; - justify-content: center; + margin-top: 1em; + padding-top: 1em; text-align: center; }