diff --git a/assets/js/zen-mode.js b/assets/js/zen-mode.js index ec6cabdb..ff6acefe 100644 --- a/assets/js/zen-mode.js +++ b/assets/js/zen-mode.js @@ -54,6 +54,10 @@ function _registerZendModeButtonClick(zendModeButton) { const zendModeButton = document.getElementById('zen-mode-button'); if(zendModeButton !== null && zendModeButton !== undefined) { _registerZendModeButtonClick(zendModeButton); + console.log('[DEBUG] Zen-mode button found'); + + }else{ + console.log('[DEBUG] Zen-mode button not found'); } // Initialize localstorage option 'blowfish-zen-mode-enabled' to false, if it does not exist, otherwise enable it. diff --git a/config/_default/params.toml b/config/_default/params.toml index cd20b1e4..4ec4494b 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -73,7 +73,7 @@ disableTextInHeader = false showAuthorsBadges = false showWordCount = true # sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram"] - showZenMode = true + showZenMode = false [list] showHero = false diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index de661e7b..003974c0 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -232,7 +232,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `article.showWordCount` | `false` | Whether or not article word counts are displayed. | | `article.showComments` | `false` | Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer. | | `article.sharingLinks` | _Not set_ | Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed. Available values are: "linkedin", "twitter", "reddit", "pinterest", "facebook", "email", "whatsapp", and "telegram" | -| `article.showZenMode` | `true` | Flag to activate Zen Mode reading feature for articles. | +| `article.showZenMode` | `false` | Flag to activate Zen Mode reading feature for articles. | ### List diff --git a/package.json b/package.json index f7da7e3c..55611954 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.50.0", + "version": "2.49.1", "description": "Blowfish theme for Hugo", "scripts": { "postinstall": "vendor-copy",