add current page

This commit is contained in:
deepend 2020-06-24 07:51:15 -06:00
parent 147e755778
commit e35d0b8d4a
1 changed files with 24 additions and 0 deletions

24
index.gmi Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
printf "20 text/gemini\r\n"
printf "hello gemini!!\n"
printf '```\n'
cowsay WELCOME TO TILDE.CLUB A PLACE FOR WEBPAGES
printf '```\n'
printf "\n"
printf "we're a a digital community for socializing, \n"
printf "learning, and making cool stuff\n"
printf "\n"
printf "visit us in gopher and html lands for more info\n"
printf "\n"
printf "here are our esteemed users:\n"
printf "if you're not appearing here, mkdir ~/public_gemini\n"
for user in $(ls -d1 /home/*/public_gemini); do
user=$(stat -c '%U' $user)
if [[ -f /home/$user/public_gemini/index.gmi ]]; then
printf "=> gemini://tilde.club/~%s/ ~%s\n" "$user" "$user"
fi
done