mirror of
https://github.com/wassname/template.git
synced 2026-07-12 16:05:31 +08:00
Improve interstitial behavior
Remove if no password during pre-render Remove if no password during onFrontMatterChanged Remove self if on production host
This commit is contained in:
@@ -50,6 +50,8 @@ export default function(dom, data) {
|
||||
interstitial.password = data.password;
|
||||
body.insertBefore(interstitial, body.firstChild);
|
||||
}
|
||||
} else if (!hasPassword && interstitial) {
|
||||
interstitial.parentElement.removeChild(this);
|
||||
}
|
||||
|
||||
let appendix = dom.querySelector('d-appendix');
|
||||
|
||||
Reference in New Issue
Block a user