From 21aec406dfa7585328a183d8066b4d20b4adbea7 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 18 Feb 2024 21:47:35 +1100 Subject: [PATCH] feat: Added first now post --- server.py | 14 +++ templates/about.html | 34 ++++++-- templates/ascii.html | 7 -- templates/gitpgp.html | 7 -- templates/index.html | 18 +--- templates/link.html | 7 -- templates/now/24_02_18.html | 168 ++++++++++++++++++++++++++++++++++++ templates/now/template.html | 115 ++++++++++++++++++++++++ templates/pgp.html | 7 -- templates/podcast.html | 7 -- templates/projects.html | 7 -- templates/resume.html | 7 -- templates/servers.html | 7 -- templates/sitemap.xml | 6 ++ 14 files changed, 332 insertions(+), 79 deletions(-) create mode 100644 templates/now/24_02_18.html create mode 100644 templates/now/template.html 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}} - - - -