housekeeping

This commit is contained in:
2023-01-27 21:57:26 -06:00
parent 8d38af02c6
commit 88d15c1d49
5 changed files with 14 additions and 12 deletions

View File

@@ -1,9 +1,7 @@
import flask
from flask_sitemap import Sitemap
import sass
app = flask.Flask(__name__)
ext = Sitemap(app=app)
sass.compile(dirname=('static/scss', 'static/css'), output_style='compressed')
@app.route('/')
@@ -29,15 +27,10 @@ def page404(e):
finally:
return flask.render_template('error.html', error=eCode, message=message, title=f'{eCode} - Simonson Portfolio'), eCode
# @app.route('/sitemap.xml')
@app.route('/sitemap.xml')
@app.route('/robots.txt')
def static_from_root():
return flask.send_from_directory(app.static_folder, flask.request.path[1:])
# @ext.register_generator
# def index():
# # Not needed if you set SITEMAP_INCLUDE_RULES_WITHOUT_PARAMS=True
# yield 'index', {}
if __name__ == '__main__':
app.run()