blob: 1178484659f945e7aac5cce7ed5d2323be5396a5 (
plain) (
tree)
|
|
set -e
title=$(lowdown -X title "$1")
date=$(lowdown -X date "$1")
author=$(lowdown -X author "$1")
flags="--html-no-skiphtml --html-no-escapehtml"
cat<<EOF
<?xml version="1.0" encoding="UTF-8" ?>
<article data-sblg-article="true">
<header>
<h1>$title</h1>
<address>$author</address>
<a href=".." title="Back to frontpage">↖</a>
<time datetime="$date">$(date -d"$date" '+%A, %B %e, %Y')</time>
</header>
$(lowdown $flags "$1")
</article>
EOF
|