unverbuggt / mkdocs-encryptcontent-plugin

A MkDocs plugin that encrypt/decrypt markdown content with AES
https://unverbuggt.github.io/mkdocs-encryptcontent-plugin/
MIT License
123 stars 15 forks source link

global_password doesnt work #39

Closed CoinK0in closed 1 year ago

CoinK0in commented 1 year ago
    I am running into an issue where only my index.md and random page accepts the global_password
    All other pages say invalid password where I dont have set anything in any of the pages, not sure what I am missing here, using CTRL+ENTER to enter global password also doesnt work

Originally posted by @zerenxyz in https://github.com/CoinK0in/mkdocs-encryptcontent-plugin/issues/37#issuecomment-1273653578

CoinK0in commented 1 year ago

Can you provide more information about your configuration so that I can reproduce your problem?

zerenxyz commented 1 year ago

I am using mkdocs-material, I added encryptcontent to plugins like so:

plugins:
  - search:
      lang: en
  - tags
  - blog
  - encryptcontent:
        global_password: '12345'

This is also my nav setup: image

The global password only works on the home page and the second home page on towards the bottom of the nav

CoinK0in commented 1 year ago

The problem seems to be related to the "blog" mode of the insider version of material. Did you install the "insider" version of material with the "mkdocs-material-insiders" package ?

zerenxyz commented 1 year ago

Yup, I used the insiders package of mkdocs material

unverbuggt commented 1 year ago

see here