write updated date in tiddlywiki

This commit is contained in:
fred 2021-08-25 02:32:12 +02:00
parent 455ef72bd9
commit 7a5bad7365
2 changed files with 8 additions and 6 deletions

View File

@ -14126,7 +14126,7 @@ Moa
<div title="$:/status/RequireReloadDueToPluginChange">
<pre>no</pre>
</div>
<div created="20210804082150267" list="Moa Astroport TiddlyWiki" modified="20210804083151598" title="$:/StoryList">
<div list="GettingStarted Moa" title="$:/StoryList">
<pre></pre>
</div>
<div author="JeremyRuston" core-version="&gt;=5.0.0" dependents="$:/themes/tiddlywiki/vanilla" description="Emphasises individual tiddlers" name="Snow White" plugin-priority="0" plugin-type="theme" title="$:/themes/tiddlywiki/snowwhite" type="application/json" version="5.1.23">
@ -14246,7 +14246,7 @@ C'est une couche logicielle qui une fois installée sur votre machine Linux perm
https://astroport.com
</pre>
</div>
<div created="20210224201642486" modified="20210804082324147" tags="moa" title="Moa" type="">
<div created="20210224201642486" modified="20210825002046412" tags="moa" title="Moa" type="">
<pre>''[[Ouvrez mon WIKI|http://127.0.0.1:8181/ipns/_IPFSNODEID_/._IPFSNODEID_]]''
''[[Découvrez mes amis|http://127.0.0.1:8181/ipns/_IPFSNODEID_/._IPFSNODEID_/FRIENDS]]'' dans ma toile de confiance distribuée.
@ -14255,7 +14255,8 @@ Répondez à mes ''[[petites annonces sur Gchange|https://www.gchange.fr/#/app/u
Vous aimez mes publications, faites un don sur le ''[[portefeuille Monnaie Libre G1|https://demo.cesium.app/#/app/wot/_G1PUB_/]]''
!!! [[Astroport|Astroport]] Espace Numérique Libre TiddlyWiki</pre>
!!! [[Astroport|Astroport]] Espace Numérique Libre TiddlyWiki
_UPDATED_</pre>
</div>
<div created="20210804082551273" modified="20210804083131264" title="TiddlyWiki">
<pre>TiddlyWiki est un WIKI qui tient dans un seul fichier.

View File

@ -103,12 +103,12 @@ fi
########################################################################
echo "####################################################
Customisation TiddlyWiki"
[[ ! -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID} && cp ~/.zen/astrXbian/.install/templates/tiddlywiki/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
# cp ~/.zen/astrXbian/.install/templates/tiddlywiki/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
# [[ ! -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID} && cp ~/.zen/astrXbian/.install/templates/tiddlyone/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
cp ~/.zen/astrXbian/.install/templates/tiddlyone/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
zuid="$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid)"
wiki="/home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html"
updated="$(date +"%m-%d-%Y_%H:%M")"
sed -i "s/GettingStarted/$zuid/g" $wiki ## (star) pseudo (score)
sed -i "s/Moa/$zuid/g" $wiki ## (star) pseudo (score)
@ -116,6 +116,7 @@ GTITLE="$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title | sed 's/\ /-/g'
sed -i "s/$zuid/$GTITLE/g" $wiki ## (star) pseudo (score)
sed -i "s/_IPFSNODEID_/$IPFSNODEID/g" $wiki
sed -i "s/_G1PUB_/$G1PUB/g" $wiki
sed -i "s/_UPDATED_/$updated/g" $wiki
## CREATE IPFSNODEID G1PUB QR CODE
[[ ! -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/QR.png ]] && qrencode -s 6 -o "/home/$YOU/.zen/ipfs/.$IPFSNODEID/QR.png" "$G1PUB"