add twtxt support: https://twtxt.readthedocs.io/en/stable/ - saait - the most boring static page generator
HTML git clone git://git.codemadness.org/saait
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8a92c9d41937be9b766c020d260f4c8360b819cb
DIR parent 2d2e29f01cc83bf0adf67cca4df8dff8cec2a7d0
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 21 Dec 2018 13:38:58 +0100
add twtxt support: https://twtxt.readthedocs.io/en/stable/
Diffstat:
M config.h | 7 +++++++
A templates/twtxt.txt/footer.txt | 0
A templates/twtxt.txt/header.txt | 0
A templates/twtxt.txt/item.txt | 1 +
4 files changed, 8 insertions(+), 0 deletions(-)
---
DIR diff --git a/config.h b/config.h
@@ -53,5 +53,12 @@ static struct template templates[] = {
{ .name = "urllist.txt/item.txt" },
{ .name = "urllist.txt/footer.txt" }
}
+ },
+ {
+ .name = "twtxt.txt", .blocks = {
+ { .name = "twtxt.txt/header.txt" },
+ { .name = "twtxt.txt/item.txt" },
+ { .name = "twtxt.txt/footer.txt" }
+ }
}
};
DIR diff --git a/templates/twtxt.txt/footer.txt b/templates/twtxt.txt/footer.txt
DIR diff --git a/templates/twtxt.txt/header.txt b/templates/twtxt.txt/header.txt
DIR diff --git a/templates/twtxt.txt/item.txt b/templates/twtxt.txt/item.txt
@@ -0,0 +1 @@
+${created}T00:00:00Z ${title}: ${siteurl}/${filename}