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 4690bc17eaf06e4b5e4e9fe40589f0eba38becc7
parent d8642fda0b0ca13cc5683d09f2fe85bab0274df2
Auteur: Selve <selve@asteride.xyz>
Date:   Sun, 22 Oct 2023 22:45:22 -0400

[gen] génération automatique du fichier sitemap.txt

Diffstat:
Mconstruire.sh | 13+++++++++++++
Dsrc/sitemap.txt.cp | 9---------
2 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/construire.sh b/construire.sh @@ -72,6 +72,16 @@ copier() { } # $1 protocol +sitemap.txt() { + res="$DOS_DST/$1/sitemap.txt" + tous="$(find "$DOS_DST/$1/" -type f ! -name 'sitemap.*' \ + ! -name '*.gz' ! -name '*.css')" + plus_jeune "$res" $tous || return 0 + echo "$res" + echo "$tous" > "$res" +} + +# $1 protocol # $2 destination gen_aplat() { for f in $(find "$DOS_SRC" -type f -name '*.debout' \ @@ -109,6 +119,7 @@ gemini() { copier "gemini" gen_final "gemini" "gemtext" "gmi" humans "gemini" + sitemap.txt "gemini" } http() { @@ -118,6 +129,7 @@ http() { copier "http" gen_final "http" "html" "html" humans "http" + sitemap.txt "http" style "http" compresser "$DOS_DST/http" } @@ -129,6 +141,7 @@ https() { copier "https" gen_final "https" "html" "html" humans "https" + sitemap.txt "https" style "https" compresser "$DOS_DST/https" } diff --git a/src/sitemap.txt.cp b/src/sitemap.txt.cp @@ -1,9 +0,0 @@ -https://asteride.xyz/~selve/ -https://asteride.xyz/~selve/florilege/ -https://asteride.xyz/~selve/a_visiter.html -https://asteride.xyz/~selve/articles/ -https://asteride.xyz/~selve/articles/avant-propos.html -https://asteride.xyz/~selve/articles/chute_voyelles_aymara.html -https://asteride.xyz/~selve/articles/curiosites_catalan.html -https://asteride.xyz/~selve/articles/finger_openbsd.html -https://asteride.xyz/~selve/articles/jex_construction_ideolangue_pile.html