add ability to disbale share on certain pages

add disableShare = true in page params
---
disableShare: true
---
This commit is contained in:
Aditya Telange 2020-08-28 16:39:06 +05:30
parent f392195b18
commit 7f7d8cfb22
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -36,7 +36,7 @@
{{- end }}
</ul>
{{- end }}
{{ if .Site.Params.ShowShareButtons }}
{{ if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true) ) }}
{{ partial "share-icons.html" . }}
{{ end }}
</footer>