feat: Add Woodburn favicon
All checks were successful
Build Docker / Build Image (push) Successful in 19s

This commit is contained in:
Nathan Woodburn 2023-10-31 14:40:58 +11:00
parent 986e4fb5ae
commit f5aac5c35b
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
3 changed files with 4 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text

View File

@ -15,7 +15,9 @@ def index():
# Get host from request # Get host from request
host = request.headers.get('host') host = request.headers.get('host')
tld = host.split('.')[-1] tld = host.split('.')[-1]
tld = tld.split(':')[0]
if tld == 'localhost' or tld == '1':
tld = 'example'
return render_template('index.html', tld=tld) return render_template('index.html', tld=tld)
if __name__ == '__main__': if __name__ == '__main__':

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 130 B