diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 2d7b955..ffe005f 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -199,7 +199,7 @@ commento = false paypal = "" patreon = "" -# possible share name: ["facebook","twitter", "reddit", "linkedin", "tumblr", "weibo", "douban", "line", "pocket", "feedly", "hatena", "pinterest", "delicious", "google"] +# possible share name: ["facebook", "twitter", "reddit", "linkedin", "tumblr", "weibo", "douban", "line", "telegram", "whatsapp", "pocket", "feedly", "hatena", "pinterest"] [[share]] name = "facebook" username = "" @@ -211,4 +211,4 @@ commento = false link = "" [[footerLinks]] name = "" - link = "" \ No newline at end of file + link = "" diff --git a/layouts/partials/body/share.html b/layouts/partials/body/share.html index 60467af..9d96422 100644 --- a/layouts/partials/body/share.html +++ b/layouts/partials/body/share.html @@ -40,37 +40,29 @@ {{ partial "svgs/share/line.svg" (dict "width" 35 "height" 35) }} {{ else if eq (lower .name) "telegram" }} - + {{ partial "svgs/social/telegram.svg" (dict "width" 35 "height" 35) }} {{ else if eq (lower .name) "whatsapp" }} - + {{ partial "svgs/social/whatsapp.svg" (dict "width" 35 "height" 35) }} {{ else if eq (lower .name) "pocket" }} - + {{ partial "svgs/share/pocket.svg" (dict "width" 35 "height" 35) }} {{ else if eq (lower .name) "feedly" }} - + {{ partial "svgs/share/feedly.svg" (dict "width" 35 "height" 35) }} {{ else if eq (lower .name) "hatena" }} - + {{ partial "svgs/share/hatena.svg" (dict "width" 35 "height" 35) }} {{ else if eq (lower .name) "pinterest" }} - + {{ partial "svgs/share/pinterest.svg" (dict "width" 35 "height" 35) }} - {{ else if eq (lower .name) "delicious" }} - - {{ partial "svgs/share/delicious.svg" (dict "width" 35 "height" 35) }} - - {{ else if eq (lower .name) "google" }} - - {{ partial "svgs/share/google.svg" (dict "width" 35 "height" 35) }} - {{ end }} {{ end }}