Content
@
https://obsidian.md
0 reply
0 recast
0 reaction
Thomas
@aviationdoctor.eth
Question for fellow users of Obsidian Publish: how do I customize the unauthenticated landing page of a password-protected vault? I understand there’s no official way to do this. I’m thinking of adding some code to publish.js that injects content if the URL is the root URL, e.g, something like ‘if (window.location.pathname === '/') { */ inject content here /* }’ It’s quite hacks though, and I don’t know if publish.js is even parsed in the password protection page. Has anybody done that or figured out a better way?
1 reply
1 recast
8 reactions
Sujit 🇮🇳 🎩
@0xsujit
Interesting question 🤔 haven’t tried that myself, but curious if publish.js even loads pre-auth did you test with console logs yet?
1 reply
0 recast
1 reaction
Thomas
@aviationdoctor.eth
I've checked the logs and publish.js only gets loaded post-auth. My genial plan is foiled
0 reply
0 recast
0 reaction