Skip to content

Commit fdc8c2a

Browse files
fix(giscus): add missing attributes
1 parent b1b667e commit fdc8c2a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

_config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,13 @@ footer-hover-col: "#0085A1"
239239
# category: Announcements # Category name of your GitHub Discussion posts
240240
# category-id: # ID of your category, retrieve this info from https://giscus.app
241241
# mapping: pathname
242+
# strict: 0
242243
# reactions-enabled: 1
243244
# emit-metadata: 0
245+
# input-position: bottom
244246
# theme: light
247+
# lang: en
248+
# lazy-loading: true
245249

246250
################
247251
# --- Misc --- #

_includes/giscus-comment.html

+6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
data-category="{{ site.giscus.category }}"
77
data-category-id="{{ site.giscus.category-id }}"
88
data-mapping="{{ site.giscus.mapping }}"
9+
data-strict="{{ site.giscus.strict }}"
910
data-reactions-enabled="{{ site.giscus.reactions-enabled }}"
1011
data-emit-metadata="{{ site.giscus.emit-metadata }}"
12+
data-input-position="{{ site.giscus.input-position }}"
1113
data-theme="{{ site.giscus.theme }}"
14+
data-lang="{{ site.giscus.lang }}"
15+
{% if site.giscus.lazy-loading == true %}
16+
data-loading="lazy"
17+
{% endif %}
1218
crossorigin="anonymous"
1319
async>
1420
</script>

0 commit comments

Comments
 (0)