16 lines
368 B
Text
16 lines
368 B
Text
import output from require 'params'
|
|
|
|
post = =>
|
|
blogPost {
|
|
name: @head.slug
|
|
a @head.title, href: "/"..output..@head.uri
|
|
}
|
|
|
|
(json) => {
|
|
title "Index"
|
|
script "window.posts = JSON.parse(`#{json}`)"
|
|
script type: 'module', src: "/#{output}/javascript/BlogPost.js"
|
|
script type: 'module', src: "/#{output}/javascript/LocalDate.js"
|
|
}, (
|
|
ul [li post p for p in *@]
|
|
)
|