Commit 0003ed2b authored by Mark Stenglein's avatar Mark Stenglein
Browse files

Init new blank site

parent 262298fe
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
---
#!flask/bin/python
from website import website
if __name__ == '__main__': ## This is for debugging use only.
website.run(debug=True)
## This is for execution via gunicorn.
# gunicorn command
# gunicorn srctweb:website -b 127.0.0.1:8001
from flask import Flask
from flask.ext.gravatar import Gravatar
website = Flask(__name__)
from website import views
# initialize gravatar defaults
gravatar = Gravatar(website,
size = 80,
rating='g',
default='mm',
force_default=False,
use_ssl=False,
base_url=None)
from flask import render_template
from website import website
@website.route('/')
def index():
return render_template("index.html",
renderHead = False,
)
@website.route('/calendar/')
def calendar():
return render_template("calendar.html",
renderHead = True,
)
@website.route('/contact/')
def contact():
return render_template("contact.html",
renderHead = True,
)
@website.route('/documents/')
def documents():
return render_template("documents.html",
renderHead = True,
)
@website.route('/people/')
def people():
return render_template("people.html",
renderHead = True,
)
@website.route('/projects/')
def projects():
return render_template("projects.html",
renderHead = True,
)
@website.route('/opt-out/')
def optOut():
return render_template("privacy_opt_out.html",
)
### DOCUMENTS ###
@website.route('/documents/constitution/')
def constitution():
return render_template("documents/constitution.html",
renderHead = True,
)
@website.route('/documents/intellectual_property/')
def intellectualProperty():
return render_template("documents/intellectual_property.html",
renderHead = True,
)
@website.route('/documents/logos/')
def logos():
return render_template("documents/logos.html",
renderHead = True,
)
@website.route('/documents/privacy_policy/')
def privacyPolicy():
return render_template("documents/privacy_policy.html",
renderHead = True,
)
@website.route('/documents/software_freedom/')
def softwareFreedom():
return render_template("documents/software_freedom.html",
renderHead = True,
)
@website.route('/documents/terms_of_service/')
def termsOfService():
return render_template("documents/terms_of_service.html",
renderHead = True,
)
@website.route('/documents/usage_policy/')
def usagePolicy():
return render_template("documents/usage_policy.html",
renderHead = True,
)
# 404 error
@website.errorhandler(404)
def page_not_found(error):
return render_template("404.html"), 404
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment