Le site web bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/bebou
Log | Files | Refs |
commit 818bd8704b93c2daf919394213eea489fa1e8553 parent 1abfbcdb5bb1295dc8171da6fce25b249bd7456b Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Sat, 27 Apr 2024 23:44:13 +0200 Meilleur sommaire et retour accueil Diffstat:
M | faq | | | 8 | ++++---- |
M | layouts/html | | | 2 | +- |
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/faq b/faq @@ -9,10 +9,10 @@ save_md() { } grep -E "^##+" "$FILE" > $the/titles -< $the/titles tr -d 'àéùôêè/?#' | - tr -s ' ' | - tr ' [A-Z]' '-[a-z]' | - sed -E 's/^-/(#/;s/$/)/' > $the/slugs +< $the/titles lowdown | + grep -v '^$' | + cut -d'"' -f2 | + sed -E 's/^/(#/;s/$/)/' > $the/slugs sed -E 's/#/ /g;' $the/titles | sed -E 's/ (\w)/[\1/;s/$/]/' | sed -E 's/([^* ])/* \1/' | diff --git a/layouts/html b/layouts/html @@ -13,7 +13,7 @@ layout() { </head> <header> <h1>$title</h1> -<p>$subtitle</p> +$([ "$FILE" = "contents/index.sh" ] || echo "<p>$subtitle</br><a href='/'>retour accueil</a></p>") </header> <body> <main>