+ + {{ end }} + + {{ if .Site.Params.showRelatedPosts }} + {{ $related := .Site.RegularPages.Related . | first 3 }} + {{ with $related }} +
{{ i18n "seeAlso" }}
+-
+ {{ range . }}
+
- {{ .Title }} + {{ end }} +
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" }} +