custom configuration support

- custom extensions
- custom filters
- ignore files matching given patterns
This commit is contained in:
nuex
2011-10-20 14:29:30 -04:00
parent f7affcaca7
commit ad7a86f1c5
10 changed files with 196 additions and 108 deletions

View File

@@ -5,9 +5,10 @@ function load_helpers() {
}
function page_title( title) {
if ("title" in data) {
return data["title"] " - " data["site_title"]
if (data["title"]) {
title = data["title"] " - " data["site_title"]
} else {
return data["site_title"]
title = data["site_title"]
}
return title
}

View File

@@ -6,10 +6,14 @@
<title>{{page_title}}</title>
</head>
<body>
{{>header}}
<header>
<h1><a href="/">{{site_title}}</a></h1>
</header>
<article>
{{{yield}}}
</article>
{{>footer}}
<footer>
<p>powered by static files</p>
</footer>
</body>
</html>