feat: Add dev mode
All checks were successful
Build Docker / Build Image (push) Successful in 45s

This commit is contained in:
2025-08-05 12:37:54 +10:00
parent cbaf577fa9
commit cf49e5fac1
16 changed files with 55 additions and 55 deletions

View File

@@ -20,7 +20,7 @@ exchange = {
'rate': 0 'rate': 0
} }
DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes']
tlds = ['australia','newzealand'] tlds = ['australia','newzealand']
#Assets routes #Assets routes
@@ -400,7 +400,7 @@ def index():
year = datetime.datetime.now().year year = datetime.datetime.now().year
hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>' hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>'
if 'localhost' in request.host or '127.0.0.1' in request.host: if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
hns_scripts = '' hns_scripts = ''
tld = request.host.split('.')[-1] tld = request.host.split('.')[-1]
@@ -419,7 +419,7 @@ def catch_all(path):
year = datetime.datetime.now().year year = datetime.datetime.now().year
hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>' hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>'
if 'localhost' in request.host or '127.0.0.1' in request.host: if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
hns_scripts = '' hns_scripts = ''
# If file exists, load it # If file exists, load it

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>HNS AU</title> <title>HNS AU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/404.html"> <link rel="canonical" href="https://hns.au/404">
<meta property="og:url" content="https://hns.au/404.html"> <meta property="og:url" content="https://hns.au/404">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
@@ -34,7 +34,7 @@
{{handshake_scripts | safe}} {{handshake_scripts | safe}}
</head> </head>
<body><!-- partial:index.partial.html --> <body><!-- partial:index.partial -->
<p>HTTP: <span>404</span></p> <p>HTTP: <span>404</span></p>
<div style="text-align: center;"> <div style="text-align: center;">
<div style="display: inline-block; text-align: left;"> <div style="display: inline-block; text-align: left;">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>About Us | HNSAU</title> <title>About Us | HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/about.html"> <link rel="canonical" href="https://hns.au/about">
<meta property="og:url" content="https://hns.au/about.html"> <meta property="og:url" content="https://hns.au/about">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Blog - HNSAU</title> <title>Blog - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/blog.html"> <link rel="canonical" href="https://hns.au/blog">
<meta property="og:url" content="https://hns.au/blog.html"> <meta property="og:url" content="https://hns.au/blog">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Cart - HNSAU</title> <title>Cart - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/cart.html"> <link rel="canonical" href="https://hns.au/cart">
<meta property="og:url" content="https://hns.au/cart.html"> <meta property="og:url" content="https://hns.au/cart">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Contact | HNSAU</title> <title>Contact | HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/contact.html"> <link rel="canonical" href="https://hns.au/contact">
<meta property="og:url" content="https://hns.au/contact.html"> <meta property="og:url" content="https://hns.au/contact">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Domains - HNSAU</title> <title>Domains - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/domains.html"> <link rel="canonical" href="https://hns.au/domains">
<meta property="og:url" content="https://hns.au/domains.html"> <meta property="og:url" content="https://hns.au/domains">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="HNS AU"> <meta property="og:title" content="HNS AU">
<meta property="og:type" content="website"> <meta property="og:type" content="website">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>FAQ | HNSAU</title> <title>FAQ | HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/faq.html"> <link rel="canonical" href="https://hns.au/faq">
<meta property="og:url" content="https://hns.au/faq.html"> <meta property="og:url" content="https://hns.au/faq">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Links | HNSAU</title> <title>Links | HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/links.html"> <link rel="canonical" href="https://hns.au/links">
<meta property="og:url" content="https://hns.au/links.html"> <meta property="og:url" content="https://hns.au/links">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
@@ -80,7 +80,7 @@
<div class="card-body"> <div class="card-body">
<h4 class="card-title">Fingertip</h4> <h4 class="card-title">Fingertip</h4>
<p class="card-text">Connect to Handshake domains on Windows, Linux or Mac</p> <p class="card-text">Connect to Handshake domains on Windows, Linux or Mac</p>
<div><a class="btn btn-outline-primary btn-sm" role="button" href="https://impervious.com/fingertip.html" target="_blank" style="margin-bottom: 15%;">Visit Fingertip</a></div> <div><a class="btn btn-outline-primary btn-sm" role="button" href="https://impervious.com/fingertip" target="_blank" style="margin-bottom: 15%;">Visit Fingertip</a></div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Login - HNSAU</title> <title>Login - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/login.html"> <link rel="canonical" href="https://hns.au/login">
<meta property="og:url" content="https://hns.au/login.html"> <meta property="og:url" content="https://hns.au/login">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Payment - HNSAU</title> <title>Payment - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/payment.html"> <link rel="canonical" href="https://hns.au/payment">
<meta property="og:url" content="https://hns.au/payment.html"> <meta property="og:url" content="https://hns.au/payment">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Payment - HNSAU</title> <title>Payment - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/payment_info.html"> <link rel="canonical" href="https://hns.au/payment_info">
<meta property="og:url" content="https://hns.au/payment_info.html"> <meta property="og:url" content="https://hns.au/payment_info">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Pins - HNSAU</title> <title>Pins - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/pins.html"> <link rel="canonical" href="https://hns.au/pins">
<meta property="og:url" content="https://hns.au/pins.html"> <meta property="og:url" content="https://hns.au/pins">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta name="description" content="Handshake Australia"> <meta name="description" content="Handshake Australia">

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Login - HNSAU</title> <title>Login - HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/promo.html"> <link rel="canonical" href="https://hns.au/promo">
<meta property="og:url" content="https://hns.au/promo.html"> <meta property="og:url" content="https://hns.au/promo">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">

View File

@@ -1,72 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url> <url>
<loc>https://hns.au/blog/happening.html</loc> <loc>https://hns.au/blog/happening</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/blog/links.html</loc> <loc>https://hns.au/blog/links</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/blog/new_domains.html</loc> <loc>https://hns.au/blog/new_domains</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/blog/pins.html</loc> <loc>https://hns.au/blog/pins</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/pins/pack1.html</loc> <loc>https://hns.au/pins/pack1</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/pins/pack2.html</loc> <loc>https://hns.au/pins/pack2</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/tlds/australia.html</loc> <loc>https://hns.au/tlds/australia</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/tlds/newzealand.html</loc> <loc>https://hns.au/tlds/newzealand</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/404.html</loc> <loc>https://hns.au/404</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/about.html</loc> <loc>https://hns.au/about</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/blog.html</loc> <loc>https://hns.au/blog</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/cart.html</loc> <loc>https://hns.au/cart</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/contact.html</loc> <loc>https://hns.au/contact</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/domains.html</loc> <loc>https://hns.au/domains</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/faq.html</loc> <loc>https://hns.au/faq</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/</loc> <loc>https://hns.au/</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/links.html</loc> <loc>https://hns.au/links</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/login.html</loc> <loc>https://hns.au/login</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/payment.html</loc> <loc>https://hns.au/payment</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/payment_info.html</loc> <loc>https://hns.au/payment_info</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/pins.html</loc> <loc>https://hns.au/pins</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/promo.html</loc> <loc>https://hns.au/promo</loc>
</url> </url>
<url> <url>
<loc>https://hns.au/uv.html</loc> <loc>https://hns.au/uv</loc>
</url> </url>
</urlset> </urlset>

View File

@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>UV | HNSAU</title> <title>UV | HNSAU</title>
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/uv.html"> <link rel="canonical" href="https://hns.au/uv">
<meta property="og:url" content="https://hns.au/uv.html"> <meta property="og:url" content="https://hns.au/uv">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake."> <meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">