From 99a0f751005d3692430303679463a8b5298cc849 Mon Sep 17 00:00:00 2001 From: valvin Date: Thu, 22 Sep 2022 20:21:43 +0200 Subject: [PATCH] feat: add feed in gemini format --- capsule/config.toml | 4 ++-- capsule/content/_index.gmi | 2 +- capsule/templates/gemlog/atom.gmi | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 capsule/templates/gemlog/atom.gmi diff --git a/capsule/config.toml b/capsule/config.toml index 1c488c3..cb0d4b2 100644 --- a/capsule/config.toml +++ b/capsule/config.toml @@ -16,5 +16,5 @@ output_dir = "public" [[tasks.feeds]] input_dir = "./gemlog" title = "La capsule de Valvin" -template = "atom.xml" -output = "atom.xml" +template = "atom.gmi" +output = "atom.gmi" diff --git a/capsule/content/_index.gmi b/capsule/content/_index.gmi index 5a85e53..1b1cba2 100644 --- a/capsule/content/_index.gmi +++ b/capsule/content/_index.gmi @@ -13,7 +13,7 @@ Ma toute première capsule qui me permet de découvrir Gemini => /gemlog Mon gemlog => /contact Me contacter -=> /atom.xml Mon Flux (gemlog) +=> /atom.gmi Mon Flux (gemlog) INFO: 18/09/22 - suite à la migration kiln / agate, j'ai de nouveaux certificats pour cette capsule. diff --git a/capsule/templates/gemlog/atom.gmi b/capsule/templates/gemlog/atom.gmi new file mode 100644 index 0000000..8c8c0d1 --- /dev/null +++ b/capsule/templates/gemlog/atom.gmi @@ -0,0 +1,4 @@ +# {{ .Title }} + +{{ range .Pages }}=> {{ .URL }} {{ .Date.Format "2006-01-02" }} {{ .Title }} +{{ end -}}