mirror of
https://github.com/wassname/template.git
synced 2026-09-10 12:44:01 +08:00
Extracting distill specific sections from the template
This commit is contained in:
@@ -7,6 +7,7 @@ import meta from "./components/meta";
|
||||
import banner from "./components/banner";
|
||||
import byline from "./components/byline";
|
||||
import appendix from "./components/appendix";
|
||||
import appendixDistill from "./components/appendix-distill";
|
||||
import citation from "./components/citation";
|
||||
import footnote from "./components/footnote";
|
||||
import markdown from "./components/markdown";
|
||||
@@ -48,6 +49,7 @@ if(window && window.document) {
|
||||
banner(window.document, data);
|
||||
}
|
||||
generateCrossref(data);
|
||||
// console.log(data);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -63,6 +65,7 @@ function render(dom, data) {
|
||||
// Distill specific rendering
|
||||
function distillify(dom, data) {
|
||||
header(dom, data);
|
||||
appendixDistill(dom, data);
|
||||
footer(dom, data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user