diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0ee6fc3..f1e8871 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,3 +34,4 @@ footnotereturnlinkcontents = "↩" [params] description = "A website built through Hugo and blogdown." footer = "© [Yihui Xie](https://yihui.name) 2017 -- 2019 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)" + enable_comments = true diff --git a/exampleSite/layouts/partials/foot_custom.html b/exampleSite/layouts/partials/foot_custom.html index 7042f41..270a44d 100644 --- a/exampleSite/layouts/partials/foot_custom.html +++ b/exampleSite/layouts/partials/foot_custom.html @@ -2,5 +2,3 @@ - -{{ template "_internal/disqus.html" . }} diff --git a/layouts/post/single.html b/layouts/post/single.html new file mode 100644 index 0000000..6acdfe6 --- /dev/null +++ b/layouts/post/single.html @@ -0,0 +1,14 @@ +{{ partial "header.html" . }} +
+

{{ .Title | markdownify }}

+{{ with .Params.author }}

{{ . }}

{{ end }} +{{ if (gt .Params.date 0) }}

{{ .Date.Format "2006/01/02" }}

{{ end }} +
+ +
+{{ .Content }} +
+{{ if .Params.enable_comments }} +{{ template "_internal/disqus.html" . }} +{{ end }} +{{ partial "footer.html" . }}