diff --git a/server.py b/server.py index 3c4d06d..b7546b9 100644 --- a/server.py +++ b/server.py @@ -2,6 +2,7 @@ from flask import Flask, make_response, redirect, request, jsonify, render_templ import os import dotenv import requests +import datetime app = Flask(__name__) dotenv.load_dotenv() @@ -13,6 +14,7 @@ def send_report(path): @app.route('/') def index(): + year = datetime.datetime.now().year https_redirect="" # Get host from request @@ -30,7 +32,7 @@ def index(): if 'data' not in sales: if tld.startswith('xn--'): tld = tld.encode('ascii').decode('idna') - return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=0) + return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=0, year=year) tld_sales = 0 sales = sales['data'] @@ -42,7 +44,7 @@ def index(): if tld.startswith('xn--'): tld = tld.encode('ascii').decode('idna') - return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=tld_sales) + return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=tld_sales, year=year) # 404 catch all @app.errorhandler(404) diff --git a/templates/assets/img/favicon.png b/templates/assets/img/favicon.png index b325464..d8400e4 100644 Binary files a/templates/assets/img/favicon.png and b/templates/assets/img/favicon.png differ diff --git a/templates/index.html b/templates/index.html index 5cb8fd9..8564a17 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,9 +20,7 @@
.{{tld}}/
@@ -30,22 +28,22 @@
-

.{{tld}} domains


The domain name for your next project

+

.{{tld}}/ domains


The domain name for your next project

-

.{{tld}}/ domains now available for registration at Woodburn Registry.

+

.{{tld}}/ domains now available for registration at HNSAU.

Get yourname.{{tld}}/

{{sales}} .{{tld}}/ domains claimed so far

{{https_redirect | safe}}