remove giscus comments

This commit is contained in:
John Bowdre 2024-05-05 13:39:22 -05:00
parent 69b8bb14dc
commit 4956f27730
4 changed files with 0 additions and 50 deletions

View file

@ -38,20 +38,6 @@ 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

View file

@ -63,9 +63,6 @@
{{- $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 }}

View file

@ -1,20 +0,0 @@
{{ 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 }}

View file

@ -391,16 +391,3 @@ 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 ';
}