From 723481a7a3cbd355296519b7fe75f1207175a6cc Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 20 Oct 2021 11:07:55 +1100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20Pinterest=20sharing=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + config/_default/params.toml | 2 +- data/sharing.json | 5 +++++ i18n/en.yaml | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96c6357b..59be7179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Article summary support - Slate colour scheme ([#9](https://github.com/jpanther/congo/pull/9)) - Icons for ORCID and ResearchGate ([#9](https://github.com/jpanther/congo/pull/9)) +- Pinterest sharing links - Sharing links can now be specified in front matter ### Changed diff --git a/config/_default/params.toml b/config/_default/params.toml index cc14cef2..e246751d 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -27,7 +27,7 @@ colorScheme = "congo" showHeadingAnchors = true showPagination = true showReadingTime = true - # sharingLinks = ["facebook", "twitter", "reddit", "linkedin", "email"] + # sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"] [list] showBreadcrumbs = false diff --git a/data/sharing.json b/data/sharing.json index ff9dbc54..34e60899 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -14,6 +14,11 @@ "title": "sharing.linkedin", "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" }, + "pinterest": { + "icon": "pinterest", + "title": "sharing.pinterest", + "url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s" + }, "reddit": { "icon": "reddit", "title": "sharing.reddit", diff --git a/i18n/en.yaml b/i18n/en.yaml index b3ae90f9..323877b4 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -26,6 +26,7 @@ sharing: email: "Send via email" facebook: "Share on Facebook" linkedin: "Share on LinkedIn" + pinterest: "Pin on Pinterest" reddit: "Submit to Reddit" twitter: "Tweet on Twitter"