From 61fa3f81e7f1a116430db8be977e0523586f798e Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Fri, 5 May 2017 18:29:03 +0200 Subject: [PATCH] Add share links at bottom of page --- exampleSite/config.toml | 1 + layouts/blog/single.html | 8 +++++ layouts/partials/css/colors.css | 4 +++ layouts/partials/css/main.css | 23 +++++++++++++++ layouts/partials/css/social-share-kit.css | 7 +++++ layouts/partials/footer_scripts.html | 10 +++++++ layouts/partials/head_includes.html | 6 ++++ static/fonts/social-share-kit.eot | Bin 0 -> 8884 bytes static/fonts/social-share-kit.svg | 34 ++++++++++++++++++++++ static/fonts/social-share-kit.ttf | Bin 0 -> 8680 bytes static/fonts/social-share-kit.woff | Bin 0 -> 6920 bytes static/js/social-share-kit.min.js | 8 +++++ 12 files changed, 101 insertions(+) create mode 100644 layouts/partials/css/social-share-kit.css create mode 100644 static/fonts/social-share-kit.eot create mode 100644 static/fonts/social-share-kit.svg create mode 100644 static/fonts/social-share-kit.ttf create mode 100644 static/fonts/social-share-kit.woff create mode 100644 static/js/social-share-kit.min.js diff --git a/exampleSite/config.toml b/exampleSite/config.toml index dc161cb..e01e699 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,6 +23,7 @@ logofile = "img/logo.png" faviconfile = "img/logo.png" highlightjs = true progressively = true +share = true latestpostcount = 5 github = "example" email = "you@example.com" diff --git a/layouts/blog/single.html b/layouts/blog/single.html index d490f2f..90ac437 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -29,6 +29,14 @@ {{ partial "content" . }}
+ {{ if .Site.Params.share }} +
+ + + + +
+ {{ end }} {{ if .Site.Params.posts_navigation }}