diff --git a/config.toml b/config.toml index 4ef6b6c..cc18dc8 100644 --- a/config.toml +++ b/config.toml @@ -24,6 +24,7 @@ pygmentsCodefencesGuessSyntax = true readingTime = true wordCount = true useHLJS = true + selfHosted=true socialShare = true delayDisqus = true showRelatedPosts = true diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9ea1861 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,84 @@ +{{ define "main" }} +
+
+
+
+ {{ .Content }} + + {{ if .Params.tags }} +
+ {{ range .Params.tags }} + {{ . }}  + {{ end }} +
+ {{ end }} + + {{ if $.Param "socialShare" }} +
+
+ +
+ {{ end }} + + {{ if .Site.Params.showRelatedPosts }} + {{ $related := .Site.RegularPages.Related . | first 3 }} + {{ with $related }} +

{{ i18n "seeAlso" }}

+ + {{ end }} + {{ end }} +
+ + {{ if ne .Type "page" }} + + {{ end }} + + {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }} + {{ partial "remark42.html" . }} + {{ if .Site.DisqusShortname }} + {{ if .Site.Params.delayDisqus }} +
+ +
+ + +
+ {{ else }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} + {{ end }} + {{ if .Site.Params.staticman }} +
+ {{ partial "staticman-comments.html" . }} +
+ {{ end }} + {{ end }} + +
+
+
+{{ end }} diff --git a/layouts/partials/footer_custom.html b/layouts/partials/footer_custom.html index 18abf62..b2f273f 100644 --- a/layouts/partials/footer_custom.html +++ b/layouts/partials/footer_custom.html @@ -1 +1,22 @@ +{{ if or (eq (substr .URL 0 6) "/post/") (eq (substr .URL 0 6) "/page/") }} + +{{ end }} + \ No newline at end of file diff --git a/layouts/partials/remark42.html b/layouts/partials/remark42.html new file mode 100644 index 0000000..8e529e5 --- /dev/null +++ b/layouts/partials/remark42.html @@ -0,0 +1,5 @@ +
+ +
\ No newline at end of file