diff --git a/server.py b/server.py index ffce8be..5ac69f6 100644 --- a/server.py +++ b/server.py @@ -20,7 +20,7 @@ exchange = { 'rate': 0 } - +DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes'] tlds = ['australia','newzealand'] #Assets routes @@ -400,7 +400,7 @@ def index(): year = datetime.datetime.now().year hns_scripts = '' - 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 = '' tld = request.host.split('.')[-1] @@ -419,7 +419,7 @@ def catch_all(path): year = datetime.datetime.now().year hns_scripts = '' - 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 = '' # If file exists, load it diff --git a/templates/404.html b/templates/404.html index 73f54c9..18ce509 100644 --- a/templates/404.html +++ b/templates/404.html @@ -6,8 +6,8 @@ HNS AU - - + + @@ -34,7 +34,7 @@ {{handshake_scripts | safe}} - +

HTTP: 404

diff --git a/templates/about.html b/templates/about.html index a94190b..a138488 100644 --- a/templates/about.html +++ b/templates/about.html @@ -6,8 +6,8 @@ About Us | HNSAU - - + + diff --git a/templates/blog.html b/templates/blog.html index a9c2834..49461c2 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -6,8 +6,8 @@ Blog - HNSAU - - + + diff --git a/templates/cart.html b/templates/cart.html index 7cd4841..0f36fa3 100644 --- a/templates/cart.html +++ b/templates/cart.html @@ -6,8 +6,8 @@ Cart - HNSAU - - + + diff --git a/templates/contact.html b/templates/contact.html index 9d8f4ff..5ee8bbb 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -6,8 +6,8 @@ Contact | HNSAU - - + + diff --git a/templates/domains.html b/templates/domains.html index 19508dc..cbac8a2 100644 --- a/templates/domains.html +++ b/templates/domains.html @@ -6,8 +6,8 @@ Domains - HNSAU - - + + diff --git a/templates/faq.html b/templates/faq.html index ff95e65..839272b 100644 --- a/templates/faq.html +++ b/templates/faq.html @@ -6,8 +6,8 @@ FAQ | HNSAU - - + + diff --git a/templates/links.html b/templates/links.html index e8d4ea4..6ad3bfa 100644 --- a/templates/links.html +++ b/templates/links.html @@ -6,8 +6,8 @@ Links | HNSAU - - + + @@ -80,7 +80,7 @@

Fingertip

Connect to Handshake domains on Windows, Linux or Mac

-
Visit Fingertip
+
Visit Fingertip
diff --git a/templates/login.html b/templates/login.html index c2d81b9..9fe1bd4 100644 --- a/templates/login.html +++ b/templates/login.html @@ -6,8 +6,8 @@ Login - HNSAU - - + + diff --git a/templates/payment.html b/templates/payment.html index 57e396d..62899a4 100644 --- a/templates/payment.html +++ b/templates/payment.html @@ -6,8 +6,8 @@ Payment - HNSAU - - + + diff --git a/templates/payment_info.html b/templates/payment_info.html index e582698..3ed131b 100644 --- a/templates/payment_info.html +++ b/templates/payment_info.html @@ -6,8 +6,8 @@ Payment - HNSAU - - + + diff --git a/templates/pins.html b/templates/pins.html index 1b91581..92187ce 100644 --- a/templates/pins.html +++ b/templates/pins.html @@ -6,8 +6,8 @@ Pins - HNSAU - - + + diff --git a/templates/promo.html b/templates/promo.html index 7740367..a7f7864 100644 --- a/templates/promo.html +++ b/templates/promo.html @@ -6,8 +6,8 @@ Login - HNSAU - - + + diff --git a/templates/sitemap.xml b/templates/sitemap.xml index f1a5f6a..614e5aa 100644 --- a/templates/sitemap.xml +++ b/templates/sitemap.xml @@ -1,72 +1,72 @@ - https://hns.au/blog/happening.html + https://hns.au/blog/happening - https://hns.au/blog/links.html + https://hns.au/blog/links - https://hns.au/blog/new_domains.html + https://hns.au/blog/new_domains - https://hns.au/blog/pins.html + https://hns.au/blog/pins - https://hns.au/pins/pack1.html + https://hns.au/pins/pack1 - https://hns.au/pins/pack2.html + https://hns.au/pins/pack2 - https://hns.au/tlds/australia.html + https://hns.au/tlds/australia - https://hns.au/tlds/newzealand.html + https://hns.au/tlds/newzealand - https://hns.au/404.html + https://hns.au/404 - https://hns.au/about.html + https://hns.au/about - https://hns.au/blog.html + https://hns.au/blog - https://hns.au/cart.html + https://hns.au/cart - https://hns.au/contact.html + https://hns.au/contact - https://hns.au/domains.html + https://hns.au/domains - https://hns.au/faq.html + https://hns.au/faq https://hns.au/ - https://hns.au/links.html + https://hns.au/links - https://hns.au/login.html + https://hns.au/login - https://hns.au/payment.html + https://hns.au/payment - https://hns.au/payment_info.html + https://hns.au/payment_info - https://hns.au/pins.html + https://hns.au/pins - https://hns.au/promo.html + https://hns.au/promo - https://hns.au/uv.html + https://hns.au/uv \ No newline at end of file diff --git a/templates/uv.html b/templates/uv.html index 1dd508c..953486b 100644 --- a/templates/uv.html +++ b/templates/uv.html @@ -6,8 +6,8 @@ UV | HNSAU - - + +