forked from monkeyWzr/hugo-theme-cactus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 8fec65a Author: Axel Bock <[email protected]> Date: Fri Apr 15 15:29:35 2022 +0200 fix matomo integration commit aae9f12 Author: Axel Bock <[email protected]> Date: Fri Mar 25 20:12:30 2022 +0100 update theme installation in readme commit f2b23c2 Author: Axel Bock <[email protected]> Date: Fri Mar 25 20:04:19 2022 +0100 add optional <hr> element before comments commit e88bc3e Author: Axel Bock <[email protected]> Date: Fri Mar 25 19:55:47 2022 +0100 add remark42 comment system commit f786127 Author: Axel Bock <[email protected]> Date: Fri Mar 25 19:50:21 2022 +0100 update comment documentation in readme commit 33a77a0 Author: Axel Bock <[email protected]> Date: Fri Mar 25 19:44:19 2022 +0100 don't include cactus coments script if not activated commit c105fd3 Author: Axel Bock <[email protected]> Date: Fri Mar 25 19:26:39 2022 +0100 add config for disabling page gallery commit e339d02 Author: Axel Bock <[email protected]> Date: Fri Mar 25 18:45:02 2022 +0100 add matomo integration based on hugo matomo module Squashed commit of the following: commit 60e7543 Author: Jayden Deng <[email protected]> Date: Sat Apr 2 01:50:50 2022 +0800 Fixed navigation disappearing issue in chrome version 100.* Squashed commit of the following: commit f677fba Author: Mehdi Hasan <[email protected]> Date: Tue Dec 29 15:02:57 2020 +0100 show related posts if present Squashed commit of the following: commit 8351bf4 Author: andodet <[email protected]> Date: Wed Jul 14 14:40:43 2021 +0200 Deactivate integrity check for css Squashed commit of the following: commit 584768a Author: Shanhe Yi <[email protected]> Date: Sat Sep 4 23:54:12 2021 -0700 add customizable copyright - years can be configured - fix monkeyWzr#56 copyright can be enabled/disabled - moved all copyright config under .Site.Params.Copyright
- Loading branch information
1 parent
a27a143
commit fcfc417
Showing
10 changed files
with
160 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
{{ if (not (isset .Site.Params "comments")) }} | ||
{{ .Scratch.Set "enable_comments" false }} | ||
{{ else if (isset .Params "comments") }} | ||
{{ .Scratch.Set "enable_comments" .Params.comments }} | ||
{{ else if (isset .Site.Params.Comments "enabled") }} | ||
{{ .Scratch.Set "enable_comments" .Site.Params.Comments.Enabled }} | ||
{{ else }} | ||
{{ .Scratch.Set "enable_comments" true }} | ||
{{ end }} | ||
|
||
{{ $enable_comments := .Scratch.Get "enable_comments" }} | ||
{{ if $enable_comments }} | ||
{{ if $enable_comments -}} | ||
{{- if .Site.Params.Comments.insert_hr_line -}}<hr/> | ||
{{ end -}} | ||
<div class="blog-post-comments"> | ||
{{ if (or (not (isset .Site.Params.Comments "engine")) (eq .Site.Params.Comments.Engine "disqus")) }} | ||
{{ partial "comments/disqus.html" . }} | ||
{{ else if eq .Site.Params.Comments.Engine "utterances" }} | ||
{{ partial "comments/utterances.html" . }} | ||
{{ else if eq .Site.Params.Comments.Engine "cactus_comments" }} | ||
{{ partial "comments/cactus_comments.html" . }} | ||
{{ else if eq .Site.Params.Comments.Engine "remark42" }} | ||
{{ partial "comments/remark42.html" . }} | ||
{{ end }} | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div id="remark42"></div> | ||
<script type="text/javascript"> | ||
{{ `// docs see here: https://github.com/umputun/remark42#comments` | safeJS }} | ||
var remark_config = { | ||
host: {{ .Site.Params.comments.remark42.url | default "https://CHANGE.ME.IN.CONFIG.TOML" }}, | ||
site_id: {{ .Site.Params.comments.remark42.site_id | default "CHANGE ME IN CONFIG.TOML" }}, | ||
components: ['embed'], | ||
url: {{ .Permalink }}, | ||
max_shown_comments: {{ .Site.Params.comments.remark42.max_comments | default 15 }}, | ||
theme: {{ .Site.Params.comments.remark42.theme | default "light" }}, | ||
page_title: {{ .Title }}, | ||
locale: {{ .Site.Params.comments.remark42.locale | default "en" }}, | ||
show_email_subscription: false, | ||
simple_view: {{ .Site.Params.comments.remark42.simple_view | default false }} | ||
}; | ||
</script> | ||
<script> | ||
! function(e, n) { | ||
for (var o = 0; o < e.length; o++) { | ||
var r = n.createElement("script"), | ||
c = ".js", | ||
d = n.head || n.body; | ||
"noModule" in r ? (r.type = "module", c = ".mjs") : r.async = !0, r.defer = !0, r.src = remark_config.host + "/web/" + e[o] + c, d.appendChild(r) | ||
} | ||
}(remark_config.components || ["embed"], document); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{ $related := .Site.RegularPages.Related . | first 5 }} | ||
{{ with $related }} | ||
<hr /> | ||
<h2>See Also</h2> | ||
<ul> | ||
{{ range . }} | ||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters