From 33bff944f23f404805cc76e3d97afb8845931019 Mon Sep 17 00:00:00 2001 From: John Sing Dao Siu Date: Wed, 11 Sep 2019 16:25:14 -0400 Subject: [PATCH] Add pinterest share button. (#16) Close #15 --- README.md | 3 ++- layouts/partials/post_share.html | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 488ded1..6205ad4 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id linkedin = true vk = true pocket = true + pinterest = true # Web App Manifest settings # https://www.w3.org/TR/appmanifest/ @@ -302,7 +303,7 @@ More information available at [Hugo Related Content](https://gohugo.io/content-m To display share buttons, set up `[Params.Share]` specific parameters in your site config file. -Available share buttons: Facebook, Twitter, Reddit, Telegram, LinkedIn, VK, Pocket +Available share buttons: Facebook, Twitter, Reddit, Telegram, LinkedIn, VK, Pocket, Pinterest #### Thumbnail Image diff --git a/layouts/partials/post_share.html b/layouts/partials/post_share.html index 02c891d..b8081a7 100644 --- a/layouts/partials/post_share.html +++ b/layouts/partials/post_share.html @@ -35,5 +35,10 @@ {{ partial "svg/pocket.svg" (dict "class" "share__icon" ) }} {{- end }} + {{- if .Param "share.pinterest" }} + + {{ partial "svg/pinterest.svg" (dict "class" "share__icon" ) }} + + {{- end }} {{- end }} \ No newline at end of file