feat: Add redirects for old pages
All checks were successful
Build Docker / Build Image (push) Successful in 54s

This commit is contained in:
2025-08-07 17:45:33 +10:00
parent be4432386b
commit 21aa0c3eeb
3 changed files with 17 additions and 1 deletions

Binary file not shown.

View File

@@ -435,6 +435,22 @@ def catch_all(path):
return render_template('404.html'), 404 return render_template('404.html'), 404
# Redirects
@app.route('/contact')
def contact():
return redirect('/#contact')
@app.route('/about')
def about():
return redirect('/#about')
@app.route('/support')
@app.route('/donate')
def donate():
return redirect('/#support')
# 404 catch all # 404 catch all
@app.errorhandler(404) @app.errorhandler(404)
def not_found(e): def not_found(e):

View File

@@ -217,7 +217,7 @@
<h2 class="text-primary">Contact Us</h2> <h2 class="text-primary">Contact Us</h2>
<div class="social-icons" style="font-size: 50px;"><a href="mailto:hns@hns.au" target="_blank" style="padding-right: 10px;padding-left: 10px;"><i class="icon ion-email" style="font-size: 50px;"></i></a><a href="https://discord.gg/WJ6vpjuQv5" target="_blank" style="padding-right: 10px;padding-left: 10px;"><i class="fab fa-discord" style="font-size: 50px;"></i></a></div> <div class="social-icons" style="font-size: 50px;"><a href="mailto:hns@hns.au" target="_blank" style="padding-right: 10px;padding-left: 10px;"><i class="icon ion-email" style="font-size: 50px;"></i></a><a href="https://discord.gg/WJ6vpjuQv5" target="_blank" style="padding-right: 10px;padding-left: 10px;"><i class="fab fa-discord" style="font-size: 50px;"></i></a></div>
</div> </div>
<div class="text-center block-heading"> <div class="text-center block-heading" id="support">
<h2 class="text-primary">Support Us</h2><span style="font-size: 20px;">You can support us by donating HNS to&nbsp;</span><code style="font-size: 20px;"><br>hs1qjdsz8u2ftm93jmczq8x36zqmfh3pqagq0hkkaf</code><span style="font-size: 20px;"><br>Or by using our alias</span><code style="font-size: 20px;"><br>@donate.hnsau<br><br></code><span style="font-size: 20px;">You can also support us by buying an SLD from&nbsp;<a href="https://domains.hnsau" target="_blank">https://domains.hns.au</a></span> <h2 class="text-primary">Support Us</h2><span style="font-size: 20px;">You can support us by donating HNS to&nbsp;</span><code style="font-size: 20px;"><br>hs1qjdsz8u2ftm93jmczq8x36zqmfh3pqagq0hkkaf</code><span style="font-size: 20px;"><br>Or by using our alias</span><code style="font-size: 20px;"><br>@donate.hnsau<br><br></code><span style="font-size: 20px;">You can also support us by buying an SLD from&nbsp;<a href="https://domains.hnsau" target="_blank">https://domains.hns.au</a></span>
</div> </div>
</div> </div>