Merge pull request #104 from iakunin/issue-103
#103: extracting disqus code to separate file
This commit is contained in:
commit
a89f25c400
@ -6,7 +6,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<article class="post h-entry">
|
<article class="post h-entry">
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
||||||
@ -24,11 +24,11 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if .Site.DisqusShortname }}
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ partial "disqus.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.UtterancesRepo }}
|
{{ if .Site.Params.UtterancesRepo }}
|
||||||
{{ partial "utterances.html" . }}
|
{{ partial "utterances.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
1
layouts/partials/disqus.html
Normal file
1
layouts/partials/disqus.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ template "_internal/disqus.html" . }}
|
Loading…
Reference in New Issue
Block a user