From 7eb106c9e4cd667c8f6db7985570e7efebe1457d Mon Sep 17 00:00:00 2001 From: willhockey20 Date: Tue, 20 Dec 2022 18:26:55 -0500 Subject: [PATCH 01/16] Added routing for sponsor package and code of conduct --- goathacks/__init__.py | 19 +++++++++++++++++++ goathacks/templates/header.html | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/goathacks/__init__.py b/goathacks/__init__.py index 9539750..d86bd72 100644 --- a/goathacks/__init__.py +++ b/goathacks/__init__.py @@ -44,6 +44,25 @@ def create_app(): from goathacks import cli app.cli.add_command(cli.gr) + + #Sponsor page + @app.route("/sponsor") + def sponsorindex(): + return render_template('home/sponsor/index.html') + + @app.route('/sponsor/') + def sponsor(path): + return send_from_directory('templates/home/sponsor', path) + + #Code of condcut + @app.route("/conduct") + def conductindex(): + return render_template('home/conduct/index.html') + + @app.route('/conduct/') + def conduct(path): + return send_from_directory('templates/home/conduct', path) + # Homepage @app.route("/") def index_redirect(): diff --git a/goathacks/templates/header.html b/goathacks/templates/header.html index bc6489a..fce6501 100644 --- a/goathacks/templates/header.html +++ b/goathacks/templates/header.html @@ -22,7 +22,7 @@