rewrite site and stop using iframes
This commit is contained in:
13
scripts/gengit
Executable file
13
scripts/gengit
Executable 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
|
Reference in New Issue
Block a user