mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Enable partial sharing
It is currently not possible to disable the sharing on a specific site, say google plus or facebook. This allows a configuration item switch to tweak this behavior.
This commit is contained in:

committed by
Michael Noronha

parent
017543b2f8
commit
c74cf85db5
@@ -25,6 +25,9 @@ faviconfile = "img/logo.png"
|
|||||||
highlightjs = true
|
highlightjs = true
|
||||||
progressively = true
|
progressively = true
|
||||||
share = true
|
share = true
|
||||||
|
# Share to googleplus, twitter, fb, linkedin by default
|
||||||
|
# disable by setting share_on_<social network> = false
|
||||||
|
# example: share_on_googleplus = false
|
||||||
latestpostcount = 5
|
latestpostcount = 5
|
||||||
github = "example"
|
github = "example"
|
||||||
email = "you@example.com"
|
email = "you@example.com"
|
||||||
|
@@ -52,10 +52,18 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ if .Site.Params.share }}
|
{{ if .Site.Params.share }}
|
||||||
<div class="share">
|
<div class="share">
|
||||||
<a href="" class="ssk ssk-facebook"></a>
|
{{ if .Site.Params.share_on_fb | default true }}
|
||||||
<a href="" class="ssk ssk-twitter"></a>
|
<a href="" class="ssk ssk-facebook"></a>
|
||||||
<a href="" class="ssk ssk-google-plus"></a>
|
{{ end }}
|
||||||
<a href="" class="ssk ssk-linkedin"></a>
|
{{ if .Site.Params.share_on_twitter | default true }}
|
||||||
|
<a href="" class="ssk ssk-twitter"></a>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.share_on_googleplus | default true }}
|
||||||
|
<a href="" class="ssk ssk-google-plus"></a>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.share_on_linkedin | default true }}
|
||||||
|
<a href="" class="ssk ssk-linkedin"></a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.posts_navigation }}
|
{{ if .Site.Params.posts_navigation }}
|
||||||
|
Reference in New Issue
Block a user