Merge pull request #104 from iakunin/issue-103

#103: extracting disqus code to separate file
This commit is contained in:
Dmitry Kolosov 2021-10-11 09:15:56 +03:00 committed by GitHub
commit a89f25c400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
{{ end }}
</nav>
{{ end }}
<article class="post h-entry">
<header class="post-header">
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
@ -24,11 +24,11 @@
{{ end }}
{{ if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{ partial "disqus.html" . }}
{{ end }}
{{ if .Site.Params.UtterancesRepo }}
{{ partial "utterances.html" . }}
{{ end }}
{{ end }}
{{ end }}

View File

@ -0,0 +1 @@
{{ template "_internal/disqus.html" . }}