Add feature to use Isso for comments

This commit is contained in:
Valentin Sundermann
2017-06-10 13:52:48 +02:00
parent 103b92f658
commit becb2f87ab
3 changed files with 20 additions and 0 deletions

View File

@@ -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>

View File

@@ -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 }}