diff --git a/README.md b/README.md index e47cac4..d3d9a94 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,21 @@ params: color: '#ff6800' ``` +#### Limit Follow or Share + +If a user needs to control Share and Follow of a service, for example enabling "Share on Facebook" without having a Facebook Page to "follow", they can set `follow: false` one the registered service. + +```yaml +params: + ananke_socials: + - name: facebook + label: Facebook + follow: false + - name: twitter + url: https://twitter.com/theNewDynamic + label: TND Twitter +``` + #### Social Icons Customization On top of easily customizing the built-in services' label and color, user can overwrite their icon by adding an svg file at `/assets/ananke/socials` with a filename matching the service's name. diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index d651ad6..7e3f920 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -1,4 +1,4 @@ -{{ $socials := partialCached "func/socials/Get" "socials/Get" }} +{{ $socials := where (partialCached "func/socials/Get" "socials/Get") "follow" "!=" false }}
{{ range $socials }}