Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/puresyntax71/hugo-theme-chunky-poster.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvirtualcursor <2540378-virtualcursor@users.noreply.gitlab.com>2019-12-17 07:44:34 +0300
committervirtualcursor <2540378-virtualcursor@users.noreply.gitlab.com>2019-12-17 07:44:34 +0300
commit3350c8d4c0d731f26ac6a17aefea433d67a068d1 (patch)
tree13a03110d0e7ef8b8a5fbaba14db80b8eb7d211a
parent530e0e9190ee50a57de2d2e98b32f3b84c62f543 (diff)
Add commento and author metatag.v0.0.1
-rwxr-xr-xexampleSite/config.toml8
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/post/single.html9
3 files changed, 17 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 3ceb23a..0fd4633 100755
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -6,7 +6,8 @@ languageCode = "en"
DefaultContentLanguage = "en"
enableInlineShortcodes = true
footnoteReturnLinkContents = "^"
-googleAnalytics = ""
+googleAnalytics = "UA-XXXX"
+DisqusShortname = "hugo-authors"
[menu]
[[menu.main]]
@@ -27,6 +28,7 @@ series = "series"
author = "authors"
[params]
+ author = "Hugo Authors"
description = "Lorem ipsum dolor sit amet."
homepageImage = "/images/homepage-image.jpg"
@@ -51,6 +53,10 @@ author = "authors"
enable = true
theme = ""
+ [params.commento]
+ enable = true
+ url = "http://localhost:1313"
+
[markup]
[markup.highlight]
codeFences = false
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index e321caf..8063d23 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -8,7 +8,7 @@
<meta name="description" content="{{ .Site.Params.description }}">
{{- end -}}
-<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ .Site.Params.author }}{{ end }}">
+<meta name="author" content="{{ if .Params.authors }}{{ delimit .Params.authors ", " }}{{ else }}{{ .Site.Params.author }}{{ end }}">
{{ if .Site.Params.prismJS.enable }}
{{ if .Site.Params.prismJS.theme }}
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 87a9a77..b18c778 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -55,6 +55,15 @@
{{ template "_internal/disqus.html" . }}
</div>
</div>
+
+ {{- if .Site.Params.commento.enable -}}
+ <div class="row justify-content-center my-3">
+ <div class="col-lg-8">
+ <div id="commento"></div>
+ <script src="{{ .Site.Params.commento.url }}"></script>
+ </div>
+ </div>
+ {{- end -}}
</article>
</div>
</div>