From 88715a4281381492cd94820e2e35fda431364a5d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 13 Jul 2020 03:02:58 +0530 Subject: [PATCH] [skip prod] layouts: add back commento Signed-off-by: Harsh Shandilya --- layouts/_default/single.html | 55 ++++++++++++++++++++++++++++++++++ layouts/partials/commento.html | 3 ++ 2 files changed, 58 insertions(+) create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/commento.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..32b0904 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,55 @@ +{{ define "styles" }} + {{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/post.scss" "dest" "css/post.css") }} +{{ end }} + +{{ define "main" }} + {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }} + +
+
+
+
+

{{.Title}}

+ +
+
+ {{ partial "anchored-headings.html" .Content }} + {{ if or .Params.math .Site.Params.math }} + {{ partial "math.html" . }} + {{ end }} +
+ {{ partial "tags.html" .}} {{ partial "post-pagination.html" .}} + {{ if and .Site.Params.CommentoURL (and (not .Site.BuildDrafts) (not .Site.IsServer)) -}} +

Comments

+ {{ partialCached "commento.html" . }} + {{- end }} +
+ {{ partial "social-icons.html" .}} +

{{ replace .Site.Copyright "{year}" now.Year }}

+
+
+
+ {{ if .Params.toc }} +
+ {{ if .Site.Params.showPageTitleInTOC }}
{{ .Title }}
{{ end }} + {{ .TableOfContents }} +
+ {{ end }} +
+ +{{ end }} + +{{ define "scripts" }} + {{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}} + + + {{/* Automatically loads the needed languages to highlight the code blocks. */}} + + + {{ if .Params.toc }} + + {{ end }} + +{{ end }} diff --git a/layouts/partials/commento.html b/layouts/partials/commento.html new file mode 100644 index 0000000..ff6766c --- /dev/null +++ b/layouts/partials/commento.html @@ -0,0 +1,3 @@ +
+ +