mirror of
https://github.com/naoufalzerai/zerai.xyz.git
synced 2025-12-24 22:43:58 +00:00
change theme again :D
This commit is contained in:
11
themes/notepadium/layouts/partials/article-share.html
Normal file
11
themes/notepadium/layouts/partials/article-share.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $addThisId := site.Params.share.addThisId -}}
|
||||
{{- if $addThisId -}}
|
||||
{{- if or (eq .Params.share true) (and (ne .Params.share false) (eq site.Params.share.enable true)) -}}
|
||||
{{- if (gt (len $addThisId) 0) -}}
|
||||
{{- $inlineToolId := site.Params.share.inlineToolId -}}
|
||||
<div class="article share addthis_inline_share_toolbox{{- if $inlineToolId -}}{{- if gt (len $inlineToolId) 0 -}}{{- print "_" $inlineToolId -}}{{- end -}}{{- end -}}"></div>
|
||||
{{- $js := resources.Get "js/addthis_widget.js" | resources.Minify | resources.Fingerprint "sha384" -}}
|
||||
<script defer src="{{- $js.RelPermalink -}}#pubid={{- $addThisId -}}" integrity="{{- $js.Data.Integrity -}}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user