blog/pages/index.skooma.yue

11 lines
212 B
Text

import output from require 'params'
link = =>
a @title, href: "/"..output..@uri
(json) => {
title "Index"
script "window.posts = JSON.parse(`#{json}`)"
}, (
ul [li link post.head, prefix for post in *@])
)