You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% if (config.extra.disqus and not page.is_homepage) or
(page and page.meta and page.meta.disqus) %}
{% include "partials/integrations/disqus.html" %}
{% endif %}
However, in the homepage, if disqus is set, there would be a Comment section in TOC.
After scrolling down and up in the homepage, my Chrome console shows
application.8eb9be28.js:1 Uncaught TypeError: Cannot read property 'offsetTop' of undefined
at e.update (application.8eb9be28.js:1)
at update_ (application.8eb9be28.js:1)
and then the TOC scroll chasing failed.
Expected behavior
The Comment section should not be shown in homepage's TOC.
Actual behavior
It shows.
Steps to reproduce the bug
Set any disqus id in the yaml config
Build the site
Package versions
Python: Python 3.6.4
MkDocs: mkdocs, version 0.17.2
Material: Version: 2.7.0
The text was updated successfully, but these errors were encountered:
Description
My
disqus
is set in the yaml config likeThe homepage is hard-coded to not show the Disqus forum.
mkdocs-material/src/base.html
Lines 298 to 301 in 0d78871
However, in the homepage, if
disqus
is set, there would be aComment
section in TOC.After scrolling down and up in the homepage, my Chrome console shows
and then the TOC scroll chasing failed.
Expected behavior
The
Comment
section should not be shown in homepage's TOC.Actual behavior
It shows.
Steps to reproduce the bug
Package versions
The text was updated successfully, but these errors were encountered: