Add a template for static pages.
rust-clippy Build rust-clippy has succeeded Details
rust-test Build rust-test has succeeded Details
format Build format has succeeded Details

main
Tom Alexander 4 months ago
parent 8905c9356b
commit 4fc08f4375
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -10,6 +10,7 @@
{#.page_header}{>page_header/}{/.page_header}
<main class="main_content">
{@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}

@ -0,0 +1,19 @@
<article class="page">
{?.title}<h1 class="blog_post_title"><span>{.title}</span></h1>{/.title}
{! TODO: date? !}
{! TODO: Table of contents? !}
<div class="blog_post_body">
{#.children}
{>document_element/}
{/.children}
{?.footnotes}
<h2>Footnotes:</h2>
{#.footnotes}
{>real_footnote_definition/}
{/.footnotes}
{/.footnotes}
</div>
</article>
Loading…
Cancel
Save