forked from nat/webbed-site
add footer support, make include script
This commit is contained in:
@ -1,19 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Natalie information</title>
|
||||
<title>Natalie "thoughts"</title>
|
||||
<style>
|
||||
$[cat style.css]
|
||||
</style>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
$[python3 -c 'import utils; print(utils.parse_file("html/header.html"))' | sed 's/\$PREV_URL\$/"{prev}"/']
|
||||
$[include html/header.html]
|
||||
<main>
|
||||
<section>
|
||||
<h1>arbitrary thoughts generated by natalie</h1>
|
||||
I am bad at thinking of things to make blog posts for. this webpage might contain things that I would put in a blog post if I was more proficient at writing filler. It might also contain other things.
|
||||
</section>
|
||||
$[stat -c "%W %n" ./html/thoughts/* | sort -n --reverse | cut -d ' ' -f2- | while read -r file; do echo "<section><details><summary>$(stat -c'%w' $file | cut -d '.' -f1): $(grep '^<!-- TITLE:' $file | sed 's/^<!-- TITLE: //; s/-->$//')</summary><div>$(python -c "import utils; print(utils.parse_file('$file'))")</details></section>"; done]
|
||||
$[stat -c "%W %n" ./html/thoughts/* | sort -n --reverse | cut -d ' ' -f2- | while read -r file; do echo "<section><details><summary>$(stat -c'%w' $file | cut -d '.' -f1): $(grep '^<!-- TITLE:' $file | sed 's/^<!-- TITLE: //; s/-->$//')</summary><div>$(include $file)</details></section>"; done]
|
||||
</main>
|
||||
$[include html/footer.html]
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user