mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Add feature to use Isso for comments
This commit is contained in:
@@ -50,6 +50,9 @@
|
||||
<div class="disqus">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ if .Site.Params.issoHost }}
|
||||
<div class="isso" id="isso-thread"></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@@ -18,6 +18,15 @@
|
||||
<script src="{{ .Site.BaseURL }}js/progressively.min.js" defer></script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.issoHost }}
|
||||
<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 }}
|
||||
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
|
||||
<script>
|
||||
|
@@ -38,6 +38,14 @@
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.issoHost }}
|
||||
<style type="text/css" media="screen">
|
||||
.isso section {
|
||||
margin: 0px;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
|
||||
<!-- Icon -->
|
||||
<link rel="shortcut icon"
|
||||
{{ if .Site.Params.faviconfile }}
|
||||
|
Reference in New Issue
Block a user