mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-20 20:11:53 +02:00
Merge pull request #1526 from nunocoracao/1521-zen-mode-doenst-work-when-toc-is-disabled
🐛 fix https://github.com/nunocoracao/blowfish/issues/1521
This commit is contained in:
commit
ef71d07bc3
2 changed files with 43 additions and 41 deletions
|
@ -11,7 +11,9 @@ function _toogleZenMode(zendModeButton) {
|
||||||
body.classList.toggle('zen-mode-enable');
|
body.classList.toggle('zen-mode-enable');
|
||||||
|
|
||||||
// Show/Hide 'toc right' and 'toc inside'
|
// Show/Hide 'toc right' and 'toc inside'
|
||||||
|
if (tocRight)
|
||||||
tocRight.classList.toggle('lg:block');
|
tocRight.classList.toggle('lg:block');
|
||||||
|
if (tocInside)
|
||||||
tocInside.classList.toggle('lg:hidden');
|
tocInside.classList.toggle('lg:hidden');
|
||||||
|
|
||||||
// Change width of article content
|
// Change width of article content
|
||||||
|
|
|
@ -67,7 +67,7 @@ smartTOCHideUnfocusedChildren = false
|
||||||
showPagination = true
|
showPagination = true
|
||||||
invertPagination = false
|
invertPagination = false
|
||||||
showReadingTime = true
|
showReadingTime = true
|
||||||
showTableOfContents = true
|
showTableOfContents = false
|
||||||
showRelatedContent = true
|
showRelatedContent = true
|
||||||
relatedContentLimit = 6
|
relatedContentLimit = 6
|
||||||
showTaxonomies = true
|
showTaxonomies = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue