neil in gemini space

more gmi footer and lists work - 2021-07-01

tidy up lists

replaced - with * for lists. i actually prefer - but if gemini is * then * it is.

for file in *.gmi; do sed -i 's|^- |* |g' "$file"; done

change footer with a link back to index.gmi

change footer by adding text before my target line. it works too:-)

#!/bin/bash
# footfix.sh
# add:
#	---
#	=> gemini://gemini.mingmengtou.org/index.gmi return to gemini.mingmengtou.org index page.
#	---
# to every .gmi before: neil.gemini@ 
#
before="neil.g"
dashes="---"
indexlink="=> gemini://gemini.mingmengtou.org/index.gmi return to gemini.mingmengtou.org index page."
#
echo $1
sed -i "s|^$before|\n$dashes\n$indexlink\n$dashes\n$before|" $1

i ran it in bash loop:

for file in *.gmi; do ./footfix.sh "$file"; done

it worked:-}


=> return to gemini.mingmengtou.org index page.


neil.gemini@mingmengtou.org

content licensed CC-BY-SA 4.0 unless stated.

=> creative commons licence.

Proxy Information
Original URL
gemini://gemini.mingmengtou.org/2021-07-01-more-gmi-footer-and-lists-work.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
297.420916 milliseconds
Gemini-to-HTML Time
0.307586 milliseconds

This content has been proxied by September (ba2dc).