From 7486949ff968548be87036473f720b34c5daa05e Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Mon, 3 Jun 2024 17:47:24 -0500 Subject: [PATCH] quick and easy certs page --- src/app.py | 52 ++++++++++++++++++++----------------- src/templates/certs.html | 55 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 23 deletions(-) create mode 100644 src/templates/certs.html diff --git a/src/app.py b/src/app.py index 850b50f..14ce0cc 100644 --- a/src/app.py +++ b/src/app.py @@ -18,6 +18,12 @@ pages['books']['books'] = books app = flask.Flask(__name__) +### TMP +@app.route('/certs') +def certs(): + return flask.render_template("certs.html") +### + @app.route('/api/goto/') @app.route('/api/goto/') def goto(location='home'): @@ -71,29 +77,29 @@ def hotspotsRIT(): def hotspotsProxy(path): return requests.get(f"{HotspotsURL}/{path}").content -# @app.errorhandler(Exception) -# def page404(e): -# eCode = e.code -# message = e.description -# try: -# message = e.length -# finally: -# pagevars = { -# "template": "error.html", -# "title": f"{eCode} - Simonson", -# "description": "Error on Andrew Simonson's Digital Portfolio", -# "canonical": "404", -# } -# return ( -# flask.render_template( -# "header.html", -# var=pagevars, -# error=eCode, -# message=message, -# title=f"{eCode} - Simonson Portfolio", -# ), -# eCode, -# ) +@app.errorhandler(Exception) +def page404(e): + eCode = e.code + message = e.description + try: + message = e.length + finally: + pagevars = { + "template": "error.html", + "title": f"{eCode} - Simonson", + "description": "Error on Andrew Simonson's Digital Portfolio", + "canonical": "404", + } + return ( + flask.render_template( + "header.html", + var=pagevars, + error=eCode, + message=message, + title=f"{eCode} - Simonson Portfolio", + ), + eCode, + ) @app.route("/sitemap.xml") diff --git a/src/templates/certs.html b/src/templates/certs.html new file mode 100644 index 0000000..896301b --- /dev/null +++ b/src/templates/certs.html @@ -0,0 +1,55 @@ + + + + lol hi + + +

Andrew's Secret Certification Page

+ + See + here + for a comprehensive list of certifications that can be confirmed by + LinkedIn +

+ Some highlights: +

+ +

RIT Entrepreneurial Certifications

+ +

I have the pdfs for these somewhere that is not easily accessible to me as I try to push this out in a hurry. I have contacts if you want proof, I guess.

+ +