diff --git a/app.py b/app.py index 62b2595..7e3d72a 100644 --- a/app.py +++ b/app.py @@ -11,6 +11,9 @@ FLATPAGES_EXTENSION = '.md' FLATPAGES_MARKDOWN_EXTENSIONS = ['extra'] FLATPAGES_AUTO_RELOAD = True +app.config['APPLICATION_ROOT'] = '/lpe' + +app.config.from_object(__name__) BASE_DIR = os.path.abspath(os.path.dirname(__file__)) app.config.from_object(__name__) @@ -36,12 +39,17 @@ def imagelist(articlename): return None, None @app.route('/') -@app.route('/home/') def index(): infobox = pages.get('info-box') page = pages.get_or_404('home') return render_template('home.html' , page=page , infobox=infobox ) +@app.route('/home/') +def home(): + infobox = pages.get('info-box') + page = pages.get_or_404('home') + return render_template('home.html' , page=page , infobox=infobox ) + @app.route('//') def pageStat(path): page = pages.get_or_404(path) diff --git a/templates/menu.html b/templates/menu.html index 7a669d4..c906d9f 100644 --- a/templates/menu.html +++ b/templates/menu.html @@ -1,23 +1,23 @@