mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56: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
@@ -52,10 +52,18 @@
|
||||
</div>
|
||||
{{ if .Site.Params.share }}
|
||||
<div class="share">
|
||||
<a href="" class="ssk ssk-facebook"></a>
|
||||
<a href="" class="ssk ssk-twitter"></a>
|
||||
<a href="" class="ssk ssk-google-plus"></a>
|
||||
<a href="" class="ssk ssk-linkedin"></a>
|
||||
{{ if .Site.Params.share_on_fb | default true }}
|
||||
<a href="" class="ssk ssk-facebook"></a>
|
||||
{{ end }}
|
||||
{{ 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>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.posts_navigation }}
|
||||
|
Reference in New Issue
Block a user