mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-03 11:22:17 +00:00
add email reply, collapse giscus comments
This commit is contained in:
parent
f60a231bb5
commit
26a37d52df
4 changed files with 16 additions and 2 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -2,3 +2,6 @@
|
|||
path = themes/risotto
|
||||
url = https://github.com/joeroe/risotto.git
|
||||
|
||||
[submodule "themes/hugo-cloak-email"]
|
||||
path = themes/hugo-cloak-email
|
||||
url = https://github.com/martignoni/hugo-cloak-email.git
|
||||
|
|
|
@ -54,6 +54,7 @@ giscusTheme = "noborder_gray"
|
|||
|
||||
analytics = true
|
||||
kudos = true
|
||||
emailReplies = true
|
||||
|
||||
[author]
|
||||
name = "John Bowdre"
|
||||
|
|
|
@ -49,9 +49,20 @@
|
|||
{{- $showKudos = false }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Site.Params.analytics true) (ne $showKudos false) }}
|
||||
<span class="post_kudos">Celebrate this post: <button class="tinylytics_kudos"></button></span>
|
||||
<span class="post_kudos"><button class="tinylytics_kudos"></button></span>
|
||||
{{- end }}
|
||||
{{- $emailReplies := true }}
|
||||
{{- if eq .Site.Params.emailReplies false }}
|
||||
{{- $emailReplies = false }}
|
||||
{{- else if eq .Params.emailReplies false }}
|
||||
{{- $emailReplies = false }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Site.Params.comments true) (ne $emailReplies false) }}
|
||||
<span class="post_email_reply"><a href="mailto:replies-{{ .Title | urlize }}@runtimeterror.dev?Subject=Re: {{ .Title }}">📧 Reply via email</a></span>
|
||||
{{- end }}
|
||||
<br><details><summary>Expand comments</summary>
|
||||
{{- partial "comments" . }}
|
||||
</details>
|
||||
{{- end }}
|
||||
<footer class="content__footer"></footer>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{{ if isset site.Params "giscusrepo" }}
|
||||
<br>
|
||||
<div class="post_comments">
|
||||
<script src="https://giscus.runtimeterror.dev/client.js"
|
||||
data-repo="{{ .Site.Params.giscusRepo }}"
|
||||
|
|
Loading…
Reference in a new issue