diff options
author | Dmitry Kolosov <Mitrichius@users.noreply.github.com> | 2021-10-11 09:15:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 09:15:56 +0300 |
commit | a89f25c40068b2ee3939f219812bc4590c80e7f9 (patch) | |
tree | d5da8a4e107c8b893af16a4dada5c16059c8ddd0 | |
parent | 4768cf6f9cbb280c03715c9f2fa10753ba37162b (diff) | |
parent | 0dbddf0e2d558347a2481d6399192d9f0184f3ed (diff) |
Merge pull request #104 from iakunin/issue-103
#103: extracting disqus code to separate file
-rw-r--r-- | layouts/_default/single.html | 6 | ||||
-rw-r--r-- | layouts/partials/disqus.html | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0123dc9..94a711e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html new file mode 100644 index 0000000..0b59e05 --- /dev/null +++ b/layouts/partials/disqus.html @@ -0,0 +1 @@ +{{ template "_internal/disqus.html" . }} |