add twtxt support: https://twtxt.readthedocs.io/en/stable/ - saait - the most b… | |
git clone git://git.codemadness.org/saait | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8a92c9d41937be9b766c020d260f4c8360b819cb | |
parent 2d2e29f01cc83bf0adf67cca4df8dff8cec2a7d0 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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" } | |
+ } | |
} | |
}; | |
diff --git a/templates/twtxt.txt/footer.txt b/templates/twtxt.txt/footer.txt | |
diff --git a/templates/twtxt.txt/header.txt b/templates/twtxt.txt/header.txt | |
diff --git a/templates/twtxt.txt/item.txt b/templates/twtxt.txt/item.txt | |
@@ -0,0 +1 @@ | |
+${created}T00:00:00Z ${title}: ${siteurl}/${filename} |