mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-02 11:02:17 +00:00
Compare commits
No commits in common. "61415ed3738618d67f9bc8e5ad7d4ae6f06580a7" and "69b8bb14dc1cbcaf7664cc637bf318482aa3c9e6" have entirely different histories.
61415ed373
...
69b8bb14dc
5 changed files with 51 additions and 0 deletions
|
@ -38,6 +38,20 @@ robots = [
|
||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
comments = true
|
comments = true
|
||||||
|
giscusCategory = "Announcements"
|
||||||
|
giscusCategoryId = "DIC_kwDOKKEGD84CcG89"
|
||||||
|
giscusCrossOrigin = "anonymous"
|
||||||
|
giscusEmitMetadata = "0"
|
||||||
|
giscusInputPosition = "bottom"
|
||||||
|
giscusLang = "en"
|
||||||
|
giscusLoading = "lazy"
|
||||||
|
giscusMapping = "og:title"
|
||||||
|
giscusReactions = "0"
|
||||||
|
giscusRepo = "jbowdre/site-comments"
|
||||||
|
giscusRepoId = "R_kgDOKKEGDw"
|
||||||
|
giscusStrict = "0"
|
||||||
|
giscusTheme = "noborder_gray"
|
||||||
|
|
||||||
analytics = true
|
analytics = true
|
||||||
kudos = true
|
kudos = true
|
||||||
emailReplies = true
|
emailReplies = true
|
||||||
|
|
|
@ -63,6 +63,9 @@
|
||||||
{{- $address := printf "blogreply.%s@%s" $path "runtimeterror.dev" }}
|
{{- $address := printf "blogreply.%s@%s" $path "runtimeterror.dev" }}
|
||||||
<span class="post_email_reply"><a href="mailto:{{ $address }}?Subject=Re: {{ .Title }}">📧 Reply by email</a></span>
|
<span class="post_email_reply"><a href="mailto:{{ $address }}?Subject=Re: {{ .Title }}">📧 Reply by email</a></span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
<br><details class="comments_widget"><summary>Comments</summary>
|
||||||
|
{{- partial "comments" . }}
|
||||||
|
</details>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<footer class="content__footer"></footer>
|
<footer class="content__footer"></footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
20
layouts/partials/comments.html
Normal file
20
layouts/partials/comments.html
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{{ if isset site.Params "giscusrepo" }}
|
||||||
|
<div class="post_comments">
|
||||||
|
<script src="https://giscus.runtimeterror.dev/client.js"
|
||||||
|
data-repo="{{ .Site.Params.giscusRepo }}"
|
||||||
|
data-repo-id="{{ .Site.Params.giscusRepoId }}"
|
||||||
|
data-category="{{ .Site.Params.giscusCategory }}"
|
||||||
|
data-category-id="{{ .Site.Params.giscusCategoryId }}"
|
||||||
|
data-mapping="{{ .Site.Params.giscusMapping }}"
|
||||||
|
data-strict="{{ .Site.Params.giscusStrict }}"
|
||||||
|
data-reactions-enabled="{{ .Site.Params.giscusReactions }}"
|
||||||
|
data-emit-metadata="{{ .Site.Params.giscusEmitMetadata }}"
|
||||||
|
data-input-position="{{ .Site.Params.giscusInputPosition }}"
|
||||||
|
data-theme="{{ .Site.Params.giscusTheme }}"
|
||||||
|
data-lang="{{ .Site.Params.giscusLang }}"
|
||||||
|
data-loading="{{ .Site.Params.giscusLoading }}"
|
||||||
|
crossorigin="{{ .Site.Params.giscusCrossOrigin }}"
|
||||||
|
async>
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- partial "lang.html" . -}}
|
||||||
<p class="copyright">{{ .Site.Copyright | markdownify }}</p>
|
<p class="copyright">{{ .Site.Copyright | markdownify }}</p>
|
||||||
<p class="powered_by">{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"<a target="_blank" href="{{ $link.url }}">{{ $link.title }}</a>"{{ end }}]}
|
<p class="powered_by">{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"<a target="_blank" href="{{ $link.url }}">{{ $link.title }}</a>"{{ end }}]}
|
||||||
<br><<a target="_blank" href="https://github.com/jbowdre/runtimeterror">view source</a>></p>
|
<br><<a target="_blank" href="https://github.com/jbowdre/runtimeterror">view source</a>></p>
|
||||||
|
|
|
@ -391,3 +391,16 @@ a.tinylytics_webring {
|
||||||
hr {
|
hr {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* summary styling */
|
||||||
|
details {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.comments_widget summary::before {
|
||||||
|
content: 'Load ';
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open].comments_widget summary::before {
|
||||||
|
content: 'Hide ';
|
||||||
|
}
|
Loading…
Reference in a new issue