Render the head for the page.

This commit is contained in:
Tom Alexander
2023-10-23 21:51:15 -04:00
parent 2b6f86d4e9
commit 178ce877bc
9 changed files with 126 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
<div class="blog_post">
<div class="blog_post_intro">
</div>
</div>

View File

@@ -2,8 +2,16 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
{#global_settings.css_files}<link rel="stylesheet" href="{.}">{/global_settings.css_files}
{#global_settings.js_files}<script type="text/javascript" src="{.}"></script>{/global_settings.js_files}
{?global_settings.page_title}<title>{global_settings.page_title}</title>{/global_settings.page_title}
</head>
<body>
<p>Hello world!</p>
<div class="main_content">
{@select key=.type}
{@eq value="blog_post_page"}{>blog_post_page/}{/eq}
{@none}{!TODO: make this panic!}ERROR: Unrecognized page content type{/none}
{/select}
</div>
</body>
</html>