mirror of
https://github.com/wassname/template.git
synced 2026-07-22 13:00:30 +08:00
Add interstitial splash screen for use with in-review posts on drafts.distill.pub
This commit is contained in:
@@ -109,6 +109,11 @@ export const Controller = {
|
||||
const data = event.detail;
|
||||
frontMatter.mergeFromYMLFrontmatter(data);
|
||||
|
||||
const interstitial = document.querySelector('d-interstitial');
|
||||
if (interstitial) {
|
||||
interstitial.password = frontMatter.password;
|
||||
}
|
||||
|
||||
const prerendered = document.body.hasAttribute('distill-prerendered');
|
||||
if (!prerendered) {
|
||||
optionalComponents(document, frontMatter);
|
||||
|
||||
Reference in New Issue
Block a user