Add interstitial splash screen for use with in-review posts on drafts.distill.pub

This commit is contained in:
Ludwig Schubert
2017-10-02 17:10:20 -07:00
parent e6202c5442
commit db254c3366
5 changed files with 144 additions and 15 deletions
+5
View File
@@ -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);