Fix interstitial on localhost, distill-appendix crash on unpublished articles

This commit is contained in:
Ludwig Schubert
2017-10-19 13:44:56 -07:00
parent 02563c32d6
commit 1a4cd694cd
10 changed files with 134 additions and 83 deletions
+8 -2
View File
@@ -1,3 +1,10 @@
/* Flag that we're being loaded */
if (window.distillLoaded) {
throw new Error('Distill Template is getting loaded more than once, aborting!');
} else {
window.distillLoaded = true;
}
/* Static styles and other modules */
import { makeStyleTag } from './styles/styles';
makeStyleTag(document);
@@ -20,8 +27,7 @@ import { References } from './components/d-references';
import { TOC } from './components/d-toc';
import { Figure } from './components/d-figure';
import { Interstitial } from './components/d-interstitial';
import { Slider } from './ui/d-slider';
import { Slider } from './ui/d-slider';
const components = [
Abstract, Appendix, Article, Bibliography, Byline, Cite, CitationList, Code,