diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 63cfd55..678d39b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,6 +14,9 @@ theme = "hugo-bootstrap" tag = "tags" category = "categories" +# disqus +# disqusShortname = "xxxxxx" + # Google analytics # googleAnalytics = "" @@ -80,6 +83,9 @@ theme = "hugo-bootstrap" # Default author author = "John Doe" + # Enable katex globally, or add "katex: true" for specific post + katex = true + # Date format (default: Jan 2, 2006) # date_format = "Jan 2, 2006" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1e2c668..e65b921 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -24,5 +24,7 @@

{{ i18n "translations" }}

{{ partial "related" . }} - +{{ if and (not .Params.nocomment) .Site.DisqusShortname }} + {{ template "_internal/disqus.html" . }} +{{ end }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 36dd6ce..09bdc99 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,6 +6,45 @@ {{ $copyright := default $thanks .Site.Copyright }} {{ $colorScheme := default "light" .Site.Params.footer.colorScheme }} +{{ if $.Param "katex" }} + + + +{{ end }} +