diff --git a/default_environment/templates/html/main.dust b/default_environment/templates/html/main.dust index d183145..4c3a4f2 100644 --- a/default_environment/templates/html/main.dust +++ b/default_environment/templates/html/main.dust @@ -10,6 +10,7 @@ {#.page_header}{>page_header/}{/.page_header}
{@select key=.type} + {@eq value="page"}{>page/}{/eq} {@eq value="blog_post_page"}{>blog_post_page/}{/eq} {@eq value="blog_stream"}{>blog_stream/}{/eq} {@none}{!TODO: make this panic!}ERROR: Unrecognized page content type{/none} diff --git a/default_environment/templates/html/page.dust b/default_environment/templates/html/page.dust new file mode 100644 index 0000000..45b389b --- /dev/null +++ b/default_environment/templates/html/page.dust @@ -0,0 +1,19 @@ +
+ {?.title}

{.title}

{/.title} + {! TODO: date? !} + + {! TODO: Table of contents? !} + +
+ {#.children} + {>document_element/} + {/.children} + + {?.footnotes} +

Footnotes:

+ {#.footnotes} + {>real_footnote_definition/} + {/.footnotes} + {/.footnotes} +
+