blog/templates/post.skooma.yue

17 lines
360 B
Text

import output from require 'params'
url = (path) -> "/"..output..path
(attributes) =>
{
nav {
ul {
li a "Index", href: url "/"
[li a post.head.title, href: url post.head.uri for post in *require("posts")]
}
}
article { h1(attributes.title), @ }
}, {
title attributes.title
link rel: "stylesheet", href: "/#{output}/css/post.css"
}