mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 10:18:54 -04:00
Documentation
This commit is contained in:
@@ -42,14 +42,14 @@ Before you can use [Giscus], you need to complete the following steps:
|
||||
</script>
|
||||
```
|
||||
|
||||
The by default empty [`comments.html`][comments] partial is the best place to
|
||||
add the code snippet generated by [Giscus]. Follow the guide on [theme extension]
|
||||
The [`comments.html`][comments] partial (empty by default) is the best place to
|
||||
add the snippet generated by [Giscus]. Follow the guide on [theme extension]
|
||||
and [override the `comments.html` partial][overriding partials] with:
|
||||
|
||||
``` html hl_lines="3"
|
||||
{% if page.meta.comments %}
|
||||
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
|
||||
<!-- Insert generated code here -->
|
||||
<!-- Insert generated snippet here -->
|
||||
|
||||
<!-- Synchronize Giscus theme with palette -->
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user