This commit is contained in:
11
server.py
11
server.py
@@ -378,19 +378,28 @@ 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:
|
||||||
|
hns_scripts = ''
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
|
hns_scripts = '<script src="https://gday.hnsau/https.js" async></script>'
|
||||||
if 'localhost' in tld:
|
if 'localhost' in tld:
|
||||||
tld = tlds[0]
|
tld = tlds[0]
|
||||||
hns_scripts = '<script src="https://gday.hnsau/https.js" async></script>'
|
hns_scripts = ''
|
||||||
|
|
||||||
return render_template('/tlds/'+tld+'.html',year=year, handshake_scripts=hns_scripts)
|
return render_template('/tlds/'+tld+'.html',year=year, handshake_scripts=hns_scripts)
|
||||||
|
|
||||||
@app.route('/<path:path>')
|
@app.route('/<path:path>')
|
||||||
def catch_all(path):
|
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:
|
||||||
|
hns_scripts = ''
|
||||||
|
|
||||||
# If file exists, load it
|
# If file exists, load it
|
||||||
if os.path.isfile('templates/' + path):
|
if os.path.isfile('templates/' + path):
|
||||||
return render_template(path, year=year, handshake_scripts=hns_scripts)
|
return render_template(path, year=year, handshake_scripts=hns_scripts)
|
||||||
|
|||||||
BIN
templates/assets/img/blog/links_dashboard.png
Normal file
BIN
templates/assets/img/blog/links_dashboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 154 KiB |
BIN
templates/assets/img/blog/links_example_1.png
Normal file
BIN
templates/assets/img/blog/links_example_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
BIN
templates/assets/img/blog/links_example_2.png
Normal file
BIN
templates/assets/img/blog/links_example_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@@ -57,6 +57,16 @@
|
|||||||
<p>Latest Blog posts from HNSAU</p>
|
<p>Latest Blog posts from HNSAU</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-content">
|
<div class="block-content">
|
||||||
|
<div class="clean-blog-post">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-5"><img class="rounded img-fluid" src="/assets/img/blog/links_dashboard.png" style="border-width: 1px;border-style: solid;"></div>
|
||||||
|
<div class="col-lg-7">
|
||||||
|
<h3>HNS Links</h3>
|
||||||
|
<div class="info"><span class="text-muted">Feb 24, 2024 by <a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></span></div>
|
||||||
|
<p>HNSAU has just released HNS Links. This is a link hosting service to allow easy usage of your Handshake domain.</p><a class="btn btn-outline-primary btn-sm" role="button" href="/blog/links">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="clean-blog-post">
|
<div class="clean-blog-post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-5"><img class="rounded img-fluid" src="/assets/img/blog/dot_anz.webp"></div>
|
<div class="col-lg-5"><img class="rounded img-fluid" src="/assets/img/blog/dot_anz.webp"></div>
|
||||||
|
|||||||
112
templates/blog/links.html
Normal file
112
templates/blog/links.html
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html data-bs-theme="dark" lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
||||||
|
<title>New Domains - HNSAU</title>
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
<link rel="canonical" href="https://hns.au/blog/links.html">
|
||||||
|
<meta property="og:url" content="https://hns.au/blog/links.html">
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:image" content="https://hns.au/assets/img/blog/dot_anz.webp">
|
||||||
|
<meta property="og:description" content="HNSAU has just added 5 domains to the registry.
|
||||||
|
Register even more Australian SLDs on HNSAU.">
|
||||||
|
<meta property="og:title" content="New Domains - HNSAU">
|
||||||
|
<meta name="twitter:title" content="New Domains - HNSAU">
|
||||||
|
<meta name="description" content="HNSAU has just added 5 domains to the registry.
|
||||||
|
Register even more Australian SLDs on HNSAU.">
|
||||||
|
<meta name="twitter:description" content="HNSAU has just added 5 domains to the registry.
|
||||||
|
Register even more Australian SLDs on HNSAU.">
|
||||||
|
<meta name="twitter:image" content="https://hns.au/assets/img/blog/dot_anz.webp">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png" media="(prefers-color-scheme: dark)">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png" media="(prefers-color-scheme: dark)">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
|
||||||
|
<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css">
|
||||||
|
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,700,700i,600,600i&display=swap">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css">
|
||||||
|
<link rel="stylesheet" href="/assets/css/vanilla-zoom.min.css">
|
||||||
|
<script async src="https://umami.woodburn.au/script.js" data-website-id="15852010-8d3c-4553-92fc-2d6ac31098e8"></script>
|
||||||
|
{{handshake_scripts | safe}}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-dark clean-navbar navbar-light" data-bs-theme="dark">
|
||||||
|
<div class="container-fluid"><a class="navbar-brand logo" href="/" style="width: 50%;"><img src="/assets/img/favicon.png" style="height: 50px;margin-right: 10px;">HNSAU</a><button data-bs-toggle="collapse" class="navbar-toggler" data-bs-target="#navcol-1"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
|
||||||
|
<div class="collapse navbar-collapse" id="navcol-1">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/blog">Blog</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/links">Links</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/about">About Us</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="https://domains.hns.au">Domains</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/pins">Pins</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/contact">Contact</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<main class="page blog-post">
|
||||||
|
<section class="clean-block clean-post dark">
|
||||||
|
<div class="container">
|
||||||
|
<div class="block-content">
|
||||||
|
<div class="post-image" style="background: url("/assets/img/blog/links_dashboard.png") top / contain no-repeat;"></div>
|
||||||
|
<div class="post-body">
|
||||||
|
<h3>HNSAU Links</h3>
|
||||||
|
<div class="post-info"><span>By Nathan.Woodburn/</span><span>Feb 24, 2024</span></div>
|
||||||
|
<p>G'day,<br>HNSAU have just released HNS Links. This is a new service that provides easy to manage links pages.<br>It is simple to use and has HTTPS auto redirect for compatible resolvers to ensure higher security for your visitors.<br>HNS Links uses Varo auth to allow the owner of the domain to easily login to manage their links page.</p><a class="btn btn-primary" role="button" href="https://links.hns.au" style="margin-bottom: 25px;">Visit HNS Links</a>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<figure class="figure"><img class="rounded img-fluid figure-img" src="/assets/img/blog/links_example_1.png" alt="A generic square placeholder image with rounded corners in a figure.">
|
||||||
|
<figcaption class="figure-caption">.Example links page</figcaption>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<figure class="figure"><img class="rounded img-fluid figure-img" src="/assets/img/blog/links_example_2.png" alt="A generic square placeholder image with rounded corners in a figure.">
|
||||||
|
<figcaption class="figure-caption">.Example links page</figcaption>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
<footer class="page-footer dark">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<h5>Get started</h5>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/">Home</a></li>
|
||||||
|
<li><a href="/links">Links</a></li>
|
||||||
|
<li><a href="/domains" target="_blank">Domains</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<h5>Contact</h5>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://discord.gg/WJ6vpjuQv5" target="_blank">Discord</a></li>
|
||||||
|
<li><a href="/email" target="_blank">Email</a></li>
|
||||||
|
<li><a href="/about">About Us</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="footer-copyright">
|
||||||
|
<p>© {{year}} Handshake AU</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
<script src="/assets/bootstrap/js/bootstrap.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js"></script>
|
||||||
|
<script src="/assets/js/vanilla-zoom.js"></script>
|
||||||
|
<script src="/assets/js/theme.js"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -3,6 +3,9 @@
|
|||||||
<url>
|
<url>
|
||||||
<loc>https://hns.au/blog/happening</loc>
|
<loc>https://hns.au/blog/happening</loc>
|
||||||
</url>
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://hns.au/blog/links</loc>
|
||||||
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://hns.au/blog/new_domains</loc>
|
<loc>https://hns.au/blog/new_domains</loc>
|
||||||
</url>
|
</url>
|
||||||
|
|||||||
Reference in New Issue
Block a user