mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Update addthis share
This commit is contained in:
parent
179176e3ed
commit
4b417629d1
@ -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 %}
|
||||
|
||||
@ -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') }}
|
||||
|
||||
5
layout/_partials/post/post-share.njk
Normal file
5
layout/_partials/post/post-share.njk
Normal 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 %}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user