rewrite site and stop using iframes

This commit is contained in:
2023-03-11 12:41:48 -05:00
parent 53ba59c39d
commit 721630bec0
13 changed files with 102 additions and 32 deletions

13
scripts/gengit Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
repos=$(ls -1 /var/git | grep -o '.*\.git' | head -5)
# delete old list
sed -i -n '1,/ <p> <!-- script marker git -->/p;/ <\/p> <!-- script marker git -->/,$p' index.html
for i in $repos ; do
name=$(echo $i | sed 's/\.git//')
line="<a href=\"https://git.squi.bid/$name\" target=\"top\" id=\"link\">$name</a><br>"
# add new repo
sed -i "/ <\/p> <!-- script marker git -->/i $line" index.html
done