blog/pages/index.html.skooma.yue

17 lines
469 B
Text

import output from require 'params'
slots, json = select 1, ...
posts = require 'posts'
post = =>
a href: "/"..output..@head.uri,
* flexColumn
* h2 @head.title, style: "view-transition-name: #{@head.slug}"
* time is: 'local-date', datetime: @head.date, @head.date
* @head.description
slots.head title "Index"
slots.head script type: 'module', src: "/#{output}/javascript/LocalDate.js"
return main
* h1 "Blog Posts"
* nav ul [li post p for p in *posts]