diff --git a/config/_default/params.toml b/config/_default/params.toml index 2c290954..99730681 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -17,6 +17,7 @@ showHeadingAnchors = true showPagination = true showReadingTime = true + # sharingLinks = ["facebook", "twitter", "reddit", "linkedin", "email"] [list] groupByYear = true diff --git a/data/sharing.json b/data/sharing.json new file mode 100644 index 00000000..327c9b1d --- /dev/null +++ b/data/sharing.json @@ -0,0 +1,27 @@ +{ + "email": { + "icon": "email", + "title": "Send via email", + "url": "mailto:?body=%s&subject=%s" + }, + "facebook": { + "icon": "facebook", + "title": "Share on Facebook", + "url": "https://www.facebook.com/sharer/sharer.php?u=%s"e=%s" + }, + "linkedin": { + "icon": "linkedin", + "title": "Share on LinkedIn", + "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" + }, + "reddit": { + "icon": "reddit", + "title": "Submit to Reddit", + "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" + }, + "twitter": { + "icon": "twitter", + "title": "Tweet on Twitter", + "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" + } +} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a77d1420..2d7653c8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,8 +16,9 @@
{{ .Content | emojify }}
-