diff --git a/server.py b/server.py index d9e4fe8..4330699 100644 --- a/server.py +++ b/server.py @@ -378,19 +378,28 @@ def index(): year = datetime.datetime.now().year hns_scripts = '' + if 'localhost' in request.host or '127.0.0.1' in request.host: + hns_scripts = '' + tld = request.host.split('.')[-1] if tld not in tlds and 'localhost' not in tld: return render_template('index.html',year=year, handshake_scripts=hns_scripts) + hns_scripts = '' if 'localhost' in tld: tld = tlds[0] - hns_scripts = '' + hns_scripts = '' + return render_template('/tlds/'+tld+'.html',year=year, handshake_scripts=hns_scripts) @app.route('/') def catch_all(path): year = datetime.datetime.now().year hns_scripts = '' + + if 'localhost' in request.host or '127.0.0.1' in request.host: + hns_scripts = '' + # If file exists, load it if os.path.isfile('templates/' + path): return render_template(path, year=year, handshake_scripts=hns_scripts) diff --git a/templates/assets/img/blog/links_dashboard.png b/templates/assets/img/blog/links_dashboard.png new file mode 100644 index 0000000..501f5e7 Binary files /dev/null and b/templates/assets/img/blog/links_dashboard.png differ diff --git a/templates/assets/img/blog/links_example_1.png b/templates/assets/img/blog/links_example_1.png new file mode 100644 index 0000000..3382c16 Binary files /dev/null and b/templates/assets/img/blog/links_example_1.png differ diff --git a/templates/assets/img/blog/links_example_2.png b/templates/assets/img/blog/links_example_2.png new file mode 100644 index 0000000..b8c16da Binary files /dev/null and b/templates/assets/img/blog/links_example_2.png differ diff --git a/templates/blog.html b/templates/blog.html index 99e6954..c713866 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -57,6 +57,16 @@

Latest Blog posts from HNSAU

+
+
+
+
+

HNS Links

+
Feb 24, 2024 by Nathan.Woodburn/
+

HNSAU has just released HNS Links. This is a link hosting service to allow easy usage of your Handshake domain.

Read More +
+
+
diff --git a/templates/blog/links.html b/templates/blog/links.html new file mode 100644 index 0000000..042fc59 --- /dev/null +++ b/templates/blog/links.html @@ -0,0 +1,112 @@ + + + + + + + New Domains - HNSAU + + + + + + + + + + + + + + + + + + + + + + + + + +{{handshake_scripts | safe}} + + + + +
+
+
+
+
+
+

HNSAU Links

+ +

G'day,
HNSAU have just released HNS Links. This is a new service that provides easy to manage links pages.
It is simple to use and has HTTPS auto redirect for compatible resolvers to ensure higher security for your visitors.
HNS Links uses Varo auth to allow the owner of the domain to easily login to manage their links page.

Visit HNS Links +
+
+
A generic square placeholder image with rounded corners in a figure. +
.Example links page
+
+
+
+
A generic square placeholder image with rounded corners in a figure. +
.Example links page
+
+
+
+
+
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/templates/sitemap.xml b/templates/sitemap.xml index 66e9bba..614e5aa 100644 --- a/templates/sitemap.xml +++ b/templates/sitemap.xml @@ -3,6 +3,9 @@ https://hns.au/blog/happening + + https://hns.au/blog/links + https://hns.au/blog/new_domains