mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-25 16:32:19 +00:00
Merge branch 'main' into drafts
This commit is contained in:
commit
94ecaf551c
6 changed files with 32 additions and 2 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -2,3 +2,6 @@
|
||||||
path = themes/risotto
|
path = themes/risotto
|
||||||
url = https://github.com/joeroe/risotto.git
|
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
|
analytics = true
|
||||||
kudos = true
|
kudos = true
|
||||||
|
emailReplies = true
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "John Bowdre"
|
name = "John Bowdre"
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
hugo
|
hugo
|
||||||
nodePackages.npm
|
nodePackages.npm
|
||||||
];
|
];
|
||||||
|
shellHook = ''
|
||||||
|
source .env
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -49,9 +49,20 @@
|
||||||
{{- $showKudos = false }}
|
{{- $showKudos = false }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (eq .Site.Params.analytics true) (ne $showKudos false) }}
|
{{- 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 }}
|
{{- 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:blogreply-{{ .Title | truncate 40 | urlize}}@runtimeterror.dev?Subject=Re: {{ .Title }}">📧 Reply by email</a></span>
|
||||||
|
{{- end }}
|
||||||
|
<br><details><summary>Comments</summary>
|
||||||
{{- partial "comments" . }}
|
{{- partial "comments" . }}
|
||||||
|
</details>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<footer class="content__footer"></footer>
|
<footer class="content__footer"></footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{{ if isset site.Params "giscusrepo" }}
|
{{ if isset site.Params "giscusrepo" }}
|
||||||
<br>
|
|
||||||
<div class="post_comments">
|
<div class="post_comments">
|
||||||
<script src="https://giscus.runtimeterror.dev/client.js"
|
<script src="https://giscus.runtimeterror.dev/client.js"
|
||||||
data-repo="{{ .Site.Params.giscusRepo }}"
|
data-repo="{{ .Site.Params.giscusRepo }}"
|
||||||
|
|
|
@ -391,4 +391,17 @@ a.tinylytics_webring {
|
||||||
/* hr override */
|
/* hr override */
|
||||||
hr {
|
hr {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* summary styling */
|
||||||
|
details {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
details summary::before {
|
||||||
|
content: 'Load ';
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary::before {
|
||||||
|
content: 'Hide ';
|
||||||
}
|
}
|
Loading…
Reference in a new issue