]> git.ameliathe1st.gay Git - site-web.git/commitdiff
Ajout d'un raccourci pour l'affichage d'une chaine entre " dans esh
authorAmélia Coutard-Sander <git@ameliathe1st.gay>
Sat, 21 Jun 2025 10:27:17 +0000 (12:27 +0200)
committerAmélia Coutard-Sander <git@ameliathe1st.gay>
Sat, 21 Jun 2025 10:27:17 +0000 (12:27 +0200)
esh.sh
html/atom.xml.esh
html/index.html.esh

diff --git a/esh.sh b/esh.sh
index 62fe66745dd4de59797ccda0a61a32cf9e97a990..d045f791fc7a9494aa0d52a6441a6c74d852db84 100755 (executable)
--- a/esh.sh
+++ b/esh.sh
@@ -1,5 +1,6 @@
 while read -r line; do
        case "$line" in
+       "#\""*) echo "echo \"$(echo "$line" | sed 's/#"//')\"";;
        "#"*) echo "$(echo "$line" | sed "s/#//")";;
        *) echo "echo '$(echo "$line" | sed "s/'/'\\\\''/g")'";;
        esac
index 72afa509902b56aeb84910981c9c11c3e7920c83..99c6e38d8f25c50b01353d3cfe9ad5115c278448 100644 (file)
@@ -4,7 +4,7 @@
        <id>https://ameliathe1st.gay/</id>
        <title>AméliaThe1st</title>
        <link rel="self" href="https://ameliathe1st.gay/atom.xml"/>
-       # echo "<updated>$(recsel -P date docs/meta.rec -S date | tail -n 1)T00:00:00Z</updated>"
+       #" <updated>$(recsel -P date docs/meta.rec -S date | tail -n 1)T00:00:00Z</updated>
        <author>
                <name>Amélia Coutard</name>
                <email>contact@ameliathe1st.gay</email>
 
        # recsel -P file docs/meta.rec -C -S date | tail -n 10 | while read -r file; do
        <entry>
-               # echo "<title>$(recsel -e "file = \"$file\"" -P title docs/meta.rec)</title>"
-               # echo "<link rel=\"alternate\" href=\"https://ameliathe1st.gay/docs/$(printf '%s' "$file" | jq -Rr @uri)\"/>"
-               # echo "<id>https://ameliathe1st.gay/docs/$(printf '%s' "$file" | jq -Rr @uri)</id>"
-               # echo "<updated>$(recsel -e "file = \"$file\"" -P date docs/meta.rec)T00:00:00Z</updated>"
+               #" <title>$(recsel -e "file = \"$file\"" -P title docs/meta.rec)</title>
+               #" <link rel='alternate' href='https://ameliathe1st.gay/docs/$(printf '%s' "$file" | jq -Rr @uri)'/>
+               #" <id>https://ameliathe1st.gay/docs/$(printf '%s' "$file" | jq -Rr @uri)</id>
+               #" <updated>$(recsel -e "file = \"$file\"" -P date docs/meta.rec)T00:00:00Z</updated>
        </entry>
        # done
 
index 0ec13cde67e42bb662ffe2cf303164d43288d2fe..8166c5d2d0c9872fb5a54d631e6272cd16465412 100644 (file)
@@ -10,7 +10,7 @@
        <h3> Mes dernières publications: </h3>
        <ul>
                # recsel -P file docs/meta.rec -C | while read -r file; do
-               # echo "<li> <a href=\"/docs/$file\">$(recsel -e "file = \"$file\"" -P title docs/meta.rec)</a> </li>"
+               #" <li> <a href='/docs/$file'>$(recsel -e "file = \"$file\"" -P title docs/meta.rec)</a> </li>
                # done
        </ul>
        <h3> Des liens: </h3>