2 Commits

Author SHA1 Message Date
1987551aca feat: Add ownthedot.com
All checks were successful
Build Docker / Build Image (push) Successful in 1m1s
2026-01-30 21:09:05 +11:00
b1c6122b4e Merge pull request 'Feat add /ownthedot page' (#4) from ownthedot into main
All checks were successful
Build Docker / Build Image (push) Successful in 52s
Reviewed-on: #4
2026-01-30 19:05:43 +11:00

View File

@@ -403,6 +403,8 @@ def index():
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV: if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
hns_scripts = '' hns_scripts = ''
if 'ownthedot.com' in request.host:
return render_template('ownthedot.html', year=year)
tld = request.host.split('.')[-1] tld = request.host.split('.')[-1]
if tld not in tlds and 'localhost' not in tld: if tld not in tlds and 'localhost' not in tld:
return render_template('index.html',year=year, handshake_scripts=hns_scripts) return render_template('index.html',year=year, handshake_scripts=hns_scripts)