Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating comments with 'disqus' breaks html template #229

Open
AAriam opened this issue May 17, 2023 · 0 comments
Open

Activating comments with 'disqus' breaks html template #229

AAriam opened this issue May 17, 2023 · 0 comments

Comments

@AAriam
Copy link

AAriam commented May 17, 2023

Describe the bug

When the html theme has its own sidebars, pages that use blog sidebars and comments together do no display correctly.

To Reproduce

Docs directory structure (generated by sphinx-quickstart):

docs/
├── build/
├── source/
│   ├── conf.py
│   ├── index.rst
│   ├── test.rst
│   └── blog.rst
├── make.bat
└── Makefile

conf.py:

project = 'Test'
extensions = ['ablog','sphinx.ext.intersphinx']
html_theme = 'pydata_sphinx_theme'
html_sidebars = {
    "blog": [
        'ablog/postcard.html',
        'ablog/recentposts.html',
        'ablog/tagcloud.html',
        'ablog/categories.html',
        'ablog/archives.html',
    ]
}
blog_baseurl: str = "https://my-documentation-website.com"
disqus_shortname: str = "my_disqus_id"

index.rst

Homepage
========

.. toctree::
   test

test.rst

Test Page
=========

.. toctree::

   blog

blog.rst

:blogpost: true
:date: May 17, 2023


Test post
=========

This is a blog post.

Screenshots

test.html

Displays correctly:
Screenshot 2023-05-17 at 02 51 30

blog.html

Displays incorrectly:
Screenshot 2023-05-17 at 02 53 01

System Details

ablog 0.11.4.post1
pydata-sphinx-theme 0.13.3
sphinx 6.2.1
python 3.11.3
MacOS 12.6

Installation method

conda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants