🏗️ Finish post share widget coding.

This commit is contained in:
凡梦星尘 2022-06-04 21:07:43 +08:00
parent ebe60171af
commit 7a1e4b85bb
6 changed files with 10 additions and 3 deletions

View File

@ -12,7 +12,7 @@
height: 0px;
background-image: none;
border-bottom: .125em dashed #999;
margin: 24px 0;
margin: 24px 0 12px 0;
&:after{
content: $post_end_line_tip;

View File

@ -62,6 +62,7 @@ kbd {
font-family: inherit;
padding: .1em .3em;
white-space: nowrap;
color: #fff;
}
// `highlight.line_number: false` and `highlight.wrap: false`

View File

@ -737,7 +737,7 @@ params:
# AddThis Share. See: https://www.addthis.com
# Go to https://www.addthis.com/dashboard to customize your tools.
add_this_id:
addThisId:
# ---------------------------------------------------------------

View File

@ -187,7 +187,7 @@ X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
<kbd>X</kbd>获胜。或按<kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>F</kbd></kbd>显示 FPS 计数器。
<mark>比特作为信息论中的信息单位,也被称为 shannon <mark>,以信息论领域的创始人 Claude shannon 的名字命名。
<mark>比特作为信息论中的信息单位,也被称为 shannon </mark>,以信息论领域的创始人 Claude shannon 的名字命名。
参考:
- 来自 **Mainroad** 主题的 [Basic Elements](https://mainroad-demo.netlify.app/post/basic-elements/) 内容

View File

@ -0,0 +1,5 @@
{{- with .Site.Params.addThisId }}
<div class="addthis_inline_share_toolbox" style="text-align: center;">
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ . }}" async="async"></script>
</div>
{{- end }}

View File

@ -10,6 +10,7 @@
<div class="post-eof"></div>
{{- else }}
{{ partial "post/post_footer/tags.html" . }}
{{ partial "_thirdparty/share/addthis.html" . }}
<hr/>
{{ partial "post/post_footer/reward.html" . }}
{{ partial "post/post_footer/copyright.html" . }}