added banned users page

This commit is contained in:
jan6 2021-12-24 00:15:43 +02:00
parent f096383c59
commit de6b0f3e37
3 changed files with 12 additions and 1 deletions

View File

@ -72,6 +72,9 @@ done
echo "creating user list page.."
./users.sh|markdown|
if [ "$no_ext" = "1" ];then
sed -e 's|\(<a href="https://tilde.cafe/banned).html\(#.*\)\?">|\1\2">|g'
else cat;fi |
cat "$header" - "$footer_start" > dist/users.html
mdate "dist/users.html" "Last Generated: "|
cat - "$footer_end" >> dist/users.html
@ -79,6 +82,9 @@ echo "creating user list page.."
echo "creating index page.."
./users.sh|
cat src/index.md -|markdown|
if [ "$no_ext" = "1" ];then
sed -e 's|\(<a href="https://tilde.cafe/banned).html\(#.*\)\?">|\1\2">|g'
else cat;fi |
cat "$header" - "$footer_start" > dist/index.html
mdate "dist/index.html" "Last Generated: "|
cat - "$footer_end" >> dist/index.html

5
src/banned.md Normal file
View File

@ -0,0 +1,5 @@
#banned users list
* <span id="mrv">mrv</span>
ban reason: abusing vulnerabilities
banned for: <time datetime="P0Y0M00DT0H0M0S">indefinite</time>
banned by : jan6

View File

@ -8,6 +8,6 @@ do
if [ "$(stat -c %G "/home/$user")" != "banned" ];then
echo "[~$user](/~$user) ";
else
echo "~$user (banned) ";
echo "~$user ([banned](banned.html#$user)) ";
fi
done