From 0dbddf0e2d558347a2481d6399192d9f0184f3ed Mon Sep 17 00:00:00 2001 From: Maksim Iakunin Date: Sun, 10 Oct 2021 15:07:21 +0300 Subject: [PATCH] #103: extracting disqus code to separate file `layouts/partials/disqus.html`. It'll give all the opportunities to override this partial on the client-side. --- layouts/_default/single.html | 6 +++--- layouts/partials/disqus.html | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/disqus.html 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 }} {{ end }} - +

{{ trim .Title " " }}

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