diff --git a/server.py b/server.py index d8d4fb3..e91a42b 100644 --- a/server.py +++ b/server.py @@ -131,6 +131,20 @@ def index(): resp.set_cookie('HNS', address, max_age=604800) return resp +@app.route('/now') +def now(): + handshake_scripts = "" + # If localhost, don't load handshake + if request.host == "localhost:5000" or request.host == "127.0.0.1:5000" or os.getenv('dev') == "true" or request.host == "test.nathan.woodburn.au": + handshake_scripts = "" + + # Get latest now page + files = os.listdir('templates/now') + # Remove template + files = [file for file in files if file != 'template.html'] + files.sort(reverse=True) + return render_template('now/' + files[0], handshake_scripts=handshake_scripts) + @app.route('/') def catch_all(path): diff --git a/templates/about.html b/templates/about.html index d1f2916..602089f 100644 --- a/templates/about.html +++ b/templates/about.html @@ -3,13 +3,6 @@ - - - Nathan.Woodburn/ @@ -66,7 +59,32 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= {{handshake_scripts | safe}}

Nathan.Woodburn/

-
+
+
+
+ +
+
+

Hi, I am Nathan Woodburn and I live in Canberra
I am currently studying at the Australian National University
I enjoy 3D printing and CAD
I code stuff with C#, Linux Bash
I can code in a ton of other languages with Google's help
I'm a co-founder of Handshake Australia
I currently work for Namebase

diff --git a/templates/ascii.html b/templates/ascii.html index fbc546e..ca2d199 100644 --- a/templates/ascii.html +++ b/templates/ascii.html @@ -3,13 +3,6 @@ - - - Nathan.Woodburn/ diff --git a/templates/gitpgp.html b/templates/gitpgp.html index 07212c1..82aa0a3 100644 --- a/templates/gitpgp.html +++ b/templates/gitpgp.html @@ -3,13 +3,6 @@ - - - Nathan.Woodburn/ diff --git a/templates/index.html b/templates/index.html index 730179e..74bb9f3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,13 +3,6 @@ - - - Nathan.Woodburn/ @@ -74,19 +67,14 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - -{{handshake_scripts | safe}} - - - -