mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Only load isso script and css on pages that support comments
This commit is contained in:

committed by
Michael Noronha

parent
4d4c5a691f
commit
017543b2f8
@@ -1,5 +1,13 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ if .Site.Params.issoHost }}
|
||||
<style type="text/css" media="screen">
|
||||
.isso section {
|
||||
margin: 0px;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
|
||||
<div class="main post non-narrow zero-top-spacing column">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
@@ -73,6 +81,12 @@
|
||||
</div>
|
||||
{{ if .Site.Params.issoHost }}
|
||||
<div class="isso" id="isso-thread"></div>
|
||||
<script
|
||||
data-isso="//{{ .Site.Params.issoHost }}/"
|
||||
data-isso-css="true"
|
||||
data-isso-lang="{{ .Site.LanguageCode }}"
|
||||
src="//{{ .Site.Params.issoHost }}/js/embed.min.js"
|
||||
></script>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user