Update addthis share

This commit is contained in:
Mimi 2022-11-12 12:32:48 +08:00
parent 179176e3ed
commit 4b417629d1
4 changed files with 10 additions and 8 deletions

View File

@ -129,6 +129,8 @@
</div>
{%- 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 %}

View File

@ -81,10 +81,4 @@
</div>
{%- endif %}
{%- if theme.add_this_id %}
<div class="addthis_inline_share_toolbox">
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async="async"></script>
</div>
{%- endif %}
{{- next_inject('footer') }}

View File

@ -0,0 +1,5 @@
{%- if theme.add_this_id %}
<div class="addthis_inline_share_toolbox social-like">
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async="async"></script>
</div>
{%- endif %}

View File

@ -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;
}