diff --git a/capsule/config.toml b/capsule/config.toml index cb0d4b2..003e5e8 100644 --- a/capsule/config.toml +++ b/capsule/config.toml @@ -13,6 +13,12 @@ template = ".gmi" static_dir = "static" output_dir = "public" +[[tasks.feeds]] +input_dir = "./gemlog" +title = "La capsule de Valvin" +template = "atom.xml" +output = "atom.xml" + [[tasks.feeds]] input_dir = "./gemlog" title = "La capsule de Valvin" diff --git a/capsule/content/_index.gmi b/capsule/content/_index.gmi index 1b1cba2..6287e09 100644 --- a/capsule/content/_index.gmi +++ b/capsule/content/_index.gmi @@ -13,7 +13,8 @@ Ma toute première capsule qui me permet de découvrir Gemini => /gemlog Mon gemlog => /contact Me contacter -=> /atom.gmi Mon Flux (gemlog) +=> /atom.xml Mon Flux atom (gemlog) +=> /atom.gmi Mon Flux gmi (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 index 8c8c0d1..09aebed 100644 --- a/capsule/templates/gemlog/atom.gmi +++ b/capsule/templates/gemlog/atom.gmi @@ -1,4 +1,6 @@ # {{ .Title }} -{{ range .Pages }}=> {{ .URL }} {{ .Date.Format "2006-01-02" }} {{ .Title }} +This a generated page to allow feed subscription. + +{{ range .Pages }}=> {{ .URL }} {{ .Date.Format "2006-01-02" }} - {{ .Title }} {{ end -}} diff --git a/capsule/templates/gemlog/atom.xml b/capsule/templates/gemlog/atom.xml index d702ccd..66ae306 100644 --- a/capsule/templates/gemlog/atom.xml +++ b/capsule/templates/gemlog/atom.xml @@ -5,6 +5,7 @@ {{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }} {{ range .Pages }} + {{ .URL }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05Z07:00" }}