mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01:00
Added note on custom comment system integration
This commit is contained in:
parent
865a18db6e
commit
34b67addaa
@ -1,6 +1,5 @@
|
||||
---
|
||||
template: overrides/main.html
|
||||
disqus: mkdocs material
|
||||
---
|
||||
|
||||
# Adding a comment system
|
||||
@ -78,3 +77,21 @@ specific pages by adding the following to the front matter of a page:
|
||||
```
|
||||
|
||||
[7]: #metadata
|
||||
|
||||
### Other comment systems
|
||||
|
||||
[:octicons-file-code-24: Source][8] ·
|
||||
:octicons-mortar-board-24: Difficulty: _easy_
|
||||
|
||||
In order to integrate another JavaScript-based comment system provider, you can
|
||||
[extend the theme][9] and [override the `disqus` block][10]:
|
||||
|
||||
``` html
|
||||
{% block disqus %}
|
||||
<!-- Add custom comment system integration here -->
|
||||
{% endblock %}
|
||||
```
|
||||
|
||||
[8]: https://github.com/squidfunk/mkdocs-material/blob/master/src/base.html#L340-342
|
||||
[9]: ../customization.md#extending-the-theme
|
||||
[10]: ../customization.md#overriding-blocks
|
||||
|
@ -45,7 +45,7 @@ search tracking:
|
||||
|
||||
## Customization
|
||||
|
||||
### Using other analytics services
|
||||
### Other analytics providers
|
||||
|
||||
[:octicons-file-code-24: Source][3] ·
|
||||
:octicons-mortar-board-24: Difficulty: _easy_
|
||||
@ -63,11 +63,6 @@ and [override the `analytics` block][6]:
|
||||
[5]: ../customization.md#extending-the-theme
|
||||
[6]: ../customization.md#overriding-blocks
|
||||
|
||||
### Using instant loading
|
||||
|
||||
[:octicons-file-code-24: Source][3] ·
|
||||
:octicons-mortar-board-24: Difficulty: _easy_
|
||||
|
||||
If you're using [instant loading][7], you may use the `location$` observable,
|
||||
which will emit the current `URL` to listen for navigation events and register
|
||||
a page view event with:
|
||||
|
Loading…
Reference in New Issue
Block a user