mirror of
https://github.com/fruworg/themu.git
synced 2025-06-12 09:40:25 +03:00
Add disqus comment (#79)
* add disqus * Add readme --------- Co-authored-by: adibaulia <adib.aulia@gli.id>
This commit is contained in:
@ -28,6 +28,15 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- $.Scratch.Set "isDisqus" true -}}
|
||||
<!-- Check if disqus short name is given -->
|
||||
{{ if not .Site.DisqusShortname }}
|
||||
{{- $.Scratch.Set "isDisqus" false -}}
|
||||
{{ end }}
|
||||
|
||||
{{- if eq ($.Scratch.Get "isDisqus") true -}}
|
||||
{{- partial "disqus.html" . -}}
|
||||
{{- end -}}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user