diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css index 47db37e..d5126e2 100644 --- a/assets/css/extended/custom.css +++ b/assets/css/extended/custom.css @@ -5,4 +5,9 @@ .paginav a:hover { background: none; +} + +.share-buttons { + background: none; + border: none; } \ No newline at end of file diff --git a/config.yml b/config.yml index 3b7d448..3e0f7ad 100644 --- a/config.yml +++ b/config.yml @@ -23,6 +23,7 @@ params: ShowToc: true ShowRssButtonInSectionTermList: true ShowCodeCopyButtons: true + ShowShareButtons: true assets: # disableHLJS: true # to disable highlight.js diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html new file mode 100644 index 0000000..ee80a2b --- /dev/null +++ b/layouts/partials/share_icons.html @@ -0,0 +1,62 @@ +{{- $pageurl := .Permalink }} +{{- $title := .Title }} + +{{- $.Scratch.Set "tags" ""}} + +{{- with .Params.Tags }} +{{- $hashtags := newScratch}} +{{- range . }}{{ $hashtags.Add "tags" (slice (replaceRE "(\\s)" "" . ))}}{{end}} +{{- $.Scratch.Set "tags" (delimit ($hashtags.Get "tags") ",") }} +{{- end -}} + +{{- $custom := false }} +{{- $ShareButtons := (.Param "ShareButtons")}} +{{- with $ShareButtons }}{{ $custom = true }}{{ end }} + +
\ No newline at end of file