diff --git a/README.md b/README.md index 6098b18..28cf6a9 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,14 @@ disqusShortname = "your_disqus_shortname" optin = true #opt-in: true/false [params] + ## Commento Host + #commentoHostname = "" + ## Coral Host + #coralHostname = "" + ## Remark42 Host + #remarkHostname = "" + #remarkID = "" + # bootswatch theme name, select one: cerulean, cosmo, cyborg, darkly, # default, flatly, journal, lumen, paper, readable, sandstone, simplex, # slate, spacelab, superhero, united, yeti. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2880a92..e22c1f8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -67,6 +67,14 @@ errormessage = "Submitting form failed!" optin = true #opt-in: true/false [params] +## Commento Host +#commentoHostname = "" +## Coral Host +#coralHostname = "" +## Remark42 Host +#remarkHostname = "" +#remarkID = "" + # bootswatch theme name, unmark and select one: cerulean, cosmo, cyborg, darkly, # default, flatly, journal, lumen, paper, readable, sandstone, simplex, # slate, spacelab, superhero, united, yeti. diff --git a/layouts/partials/base/metas.html b/layouts/partials/base/metas.html index 7fc4a3f..b6c422d 100644 --- a/layouts/partials/base/metas.html +++ b/layouts/partials/base/metas.html @@ -64,10 +64,10 @@ {{ end }} {{ end }} -{{ if .RSSLink }} - +{{ with .Site.Home.AlternativeOutputFormats.Get "RSS" }} + {{ end }} -{{ .Hugo.Generator }} +{{ hugo.Generator }} diff --git a/layouts/partials/bloc/content/comments.html b/layouts/partials/bloc/content/comments.html index 6e498cd..1d03c6d 100644 --- a/layouts/partials/bloc/content/comments.html +++ b/layouts/partials/bloc/content/comments.html @@ -1,3 +1,6 @@
{{ partial "modules/disqus.html" . }} + {{ partial "modules/commento.html" . }} + {{ partial "modules/coral.html" . }} + {{ partial "modules/remark.html" . }}
diff --git a/layouts/partials/bloc/content/sidebar.html b/layouts/partials/bloc/content/sidebar.html index 33d9929..0c279ca 100644 --- a/layouts/partials/bloc/content/sidebar.html +++ b/layouts/partials/bloc/content/sidebar.html @@ -27,7 +27,7 @@
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html index 6ce6891..778bfed 100644 --- a/layouts/partials/foot.html +++ b/layouts/partials/foot.html @@ -1,7 +1,4 @@ {{ partial "base/footer.html" . }} {{ partial "base/scripts.html" . }} - - - diff --git a/layouts/partials/homepage.html b/layouts/partials/homepage.html index 00f920f..7cb0d84 100644 --- a/layouts/partials/homepage.html +++ b/layouts/partials/homepage.html @@ -9,7 +9,7 @@ {{ end }}
- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where site.RegularPages "Type" "post") }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} diff --git a/layouts/partials/modules/commento.html b/layouts/partials/modules/commento.html new file mode 100644 index 0000000..857e122 --- /dev/null +++ b/layouts/partials/modules/commento.html @@ -0,0 +1,16 @@ +{{ with .Site.Params.CommentoHostname }} +
+ + +{{ end }} diff --git a/layouts/partials/modules/coral.html b/layouts/partials/modules/coral.html new file mode 100644 index 0000000..70def38 --- /dev/null +++ b/layouts/partials/modules/coral.html @@ -0,0 +1,29 @@ +{{ with .Site.Params.CoralHostname }} +
+ + +{{ end }} diff --git a/layouts/partials/modules/remark.html b/layouts/partials/modules/remark.html new file mode 100644 index 0000000..d5cea22 --- /dev/null +++ b/layouts/partials/modules/remark.html @@ -0,0 +1,17 @@ +{{ with .Site.Params.RemarkHostname }} +
+ + +{{ end }}