mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Merge pull request #41 from ntzwrk/feature/isso-comments
Add Isso support
This commit is contained in:
@@ -33,6 +33,7 @@ twitter = "example"
|
||||
facebook = "facebook_id"
|
||||
social_banner = "img/banner.png"
|
||||
posts_navigation = true
|
||||
# issoHost = "comments.domain.tld:1234"
|
||||
# githubRepo = "githubUsername/repositoryName"
|
||||
|
||||
[params.colors]
|
||||
|
@@ -70,6 +70,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,16 @@
|
||||
<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 }}
|
||||
|
||||
{{ if .Site.Params.share }}
|
||||
<script src="{{ .Site.BaseURL }}js/social-share-kit.min.js" defer></script>
|
||||
{{ end }}
|
||||
|
@@ -44,6 +44,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