capsite

Ressources et outils pour la génération de ma capsule et de mon site
git clone git://git.asteride.xyz/~ldp/capsite.git
Journaux | Fichiers | Références

commit 457af700ac2b1841f33c53b6bfd5443194bc2f8c
parent 026aa4ec2ba808958ecbef8d4b09b0e59efadeb6
Auteur: Selve <selve@asteride.xyz>
Date:   Fri, 27 Oct 2023 12:53:50 -0400

[cont] changement du nom du flux atom

Diffstat:
Mconstruire.sh | 26+++++++++++++-------------
Mliens/liens.debout | 6++++++
Rsrc/flux/articles.special.debout -> src/flux/cybercarnet.special.debout | 0
3 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/construire.sh b/construire.sh @@ -69,7 +69,7 @@ copier() { sitemap.txt() { res="$DOS_DST/$1/sitemap.txt" tous="$(find "$DOS_DST/$1/" -type f ! -name 'sitemap.*' \ - ! -name '*.gz' ! -name '*.css' ! -name '*.xml')" + ! -name '*.gz' ! -name '*.css' ! -name '*.atom')" echo "$res" echo "$tous" | sed 's|^dst/\([^/]*\)|\1://'"$RACINE"'|' > "$res" } @@ -94,10 +94,10 @@ flux() { # $1 protocole # $2 destination -flux_articles() { +flux_cybercarnet() { fichiers="$(find "$DOS_SRC/articles" -type f -name "*.$1.aplat")" - flux "$DOS_SRC/flux/articles.special.debout" "$1" "$2" \ - "$DOS_DST/$2/flux/articles_$1.xml" $fichiers + flux "$DOS_SRC/flux/cybercarnet.special.debout" "$1" "$2" \ + "$DOS_DST/$2/flux/cybercarnet_$1.atom" $fichiers } # $1 protocole @@ -139,9 +139,9 @@ gemini() { gen_final "gemini" "gemtext" "gmi" humans "gemini" sitemap.txt "gemini" - flux_articles "gemini" "gemini" - flux_articles "https" "gemini" - flux_articles "http" "gemini" + flux_cybercarnet "gemini" "gemini" + flux_cybercarnet "https" "gemini" + flux_cybercarnet "http" "gemini" } http() { @@ -154,9 +154,9 @@ http() { humans "http" sitemap.txt "http" compresser "$DOS_DST/http" - flux_articles "gemini" "http" - flux_articles "https" "http" - flux_articles "http" "http" + flux_cybercarnet "gemini" "http" + flux_cybercarnet "https" "http" + flux_cybercarnet "http" "http" } https() { @@ -169,9 +169,9 @@ https() { humans "https" sitemap.txt "https" compresser "$DOS_DST/https" - flux_articles "gemini" "https" - flux_articles "https" "https" - flux_articles "http" "https" + flux_cybercarnet "gemini" "https" + flux_cybercarnet "https" "https" + flux_cybercarnet "http" "https" } # $1 protocol diff --git a/liens/liens.debout b/liens/liens.debout @@ -19,6 +19,12 @@ "://asteride.xyz/~selve/articles/avant-propos.") (lien (@ (id "PAGE_A_VISITER")) "://asteride.xyz/~selve/a_visiter.") + (lien (@ (id "FLUX_CYBERCARNET_GEMINI")) + "://asteride.xyz/~selve/flux/cybercarnet_gemini.atom") + (lien (@ (id "FLUX_CYBERCARNET_HTTP")) + "://asteride.xyz/~selve/flux/cybercarnet_http.atom") + (lien (@ (id "FLUX_CYBERCARNET_HTTPS")) + "://asteride.xyz/~selve/flux/cybercarnet_https.atom") (lien (@ (id "SITEMAP.TXT")) "://asteride.xyz/~selve/sitemap.txt") (lien (@ (id "HUMANS.TXT")) diff --git a/src/flux/articles.special.debout b/src/flux/cybercarnet.special.debout