31 lines
663 B
HTML
31 lines
663 B
HTML
<?shp
|
|
TITLE="blog"
|
|
include header-unified.shp
|
|
?>
|
|
|
|
<main>
|
|
<?shp gen_titlebar "blog" green ?>
|
|
<h1>blog</h1>
|
|
<p>here's posts I make. you can read them if you want. follow this <a href="feed.atom">atom feed</a> for these posts if you really want to</p>
|
|
|
|
<ul>
|
|
<?shp
|
|
# build blog post list, descending date order
|
|
for md in *.md; do
|
|
set_md_metadata "$md"
|
|
title=$(__lowdown <<-EOF
|
|
$title
|
|
EOF
|
|
)
|
|
title=${title#*>}
|
|
title=${title%<*}
|
|
printf '%s <li><p><time>%s</time> - <a href="%s">%s</a></li>\n' \
|
|
"$ctime" "${ctime%%T*}" "${md%.md}.html" "$title"
|
|
done | sort -r | cut -d ' ' -f 2-
|
|
?>
|
|
</ul>
|
|
|
|
</main>
|
|
|
|
<?shp include footer.shp ?>
|