diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 60937fb9..f676d5b2 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -253,4 +253,20 @@ .post-tags a:hover { background: var(--border); +} + +.share-buttons { + fill: currentColor; + margin: 4px 0; + text-align: center; + background: var(--code-bg); + border-radius: var(--radius); + margin-top: 24px; +} + +.share-button-single svg { + fill: currentColor; + height: 30px; + width: 30px; + margin: 0 10px; } \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8ba8fc60..625bafb9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -33,6 +33,9 @@
  • {{ . }}
  • {{- end }} + {{ if .Site.Params.ShowShareButtons }} + {{ partial "share-icons.html" . }} + {{ end }} {{- end }} diff --git a/layouts/partials/share-icons.html b/layouts/partials/share-icons.html new file mode 100644 index 00000000..f3f13125 --- /dev/null +++ b/layouts/partials/share-icons.html @@ -0,0 +1,54 @@ +{{ $pageurl := .Permalink }} +{{ $title := .Title }} +
    +

    Share On

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    \ No newline at end of file