Base template cleanup, flesh out config sitenav handling.

This commit is contained in:
Brit Butler 2012-09-12 12:56:11 -04:00
parent 26b7e1b866
commit e57f350cb4

View file

@ -4,25 +4,29 @@
<!doctype html>{\n} <!doctype html>{\n}
<html> <html>
<head> <head>
<title>{$title}</title> <title>{$config.title}</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<link href="http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" /> <link href="http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css" /> <link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css" />
<link href= "{$siteroot}/css/style.css" rel="stylesheet" type="text/css" /> <link href= "{$config.domain}/css/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" href="{$siteroot}/rss.xml" type="application/rss+xml" /> <link rel="alternate" href="{$config.domain}/rss.xml" type="application/rss+xml" />
{if $headInject} {$headInject |noAutoescape} {/if} {if $headInject} {$headInject |noAutoescape} {/if}
</head> </head>
<body> <body>
<div class="navigation"> <div class="navigation">
{$navigation |noAutoescape} {foreach $link in $config.sitenav}
<a href="{$siteroot}">{$title}</a> <a href="{$link.url}">{$link.name}</a>
{sp} | {sp}
{/foreach}
<a href="{$config.domain}">{$config.title}</a>
</div> </div>
<div id="content"> <div id="content">
{$content |noAutoescape} {$content |noAutoescape}
</div> </div>
{if $bodyInject} {$bodyInject |noAutoescape} {/if} {if $bodyInject} {$bodyInject |noAutoescape} {/if}
<div class="fineprint"> <div class="fineprint">
Unless otherwise credited all material {if $license} {$license} {else} © {/if} {$credits} Unless otherwise credited all material {if $config.license} {$config.license} {else} © {/if}
{$config.credits}
</div> </div>
</body> </body>
</html> </html>