tpl/tplimpl/embedded: Wrap the relevant templates with the privacy policy disable check

See #4616
This commit is contained in:
Bjørn Erik Pedersen
2018-05-20 20:00:29 +02:00
parent 0bbdef986d
commit 6789207347
9 changed files with 69 additions and 21 deletions

View File

@@ -1,3 +1,5 @@
{{- $pc := .Page.Site.PrivacyConfig.Disqus -}}
{{- if not $pc.Disable -}}
{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
@@ -17,4 +19,5 @@
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}
{{- end -}}