css
This commit is contained in:
@@ -33,6 +33,9 @@ def create_app(test_config=None):
|
|||||||
app.logger.debug(app.config)
|
app.logger.debug(app.config)
|
||||||
app.register_blueprint(pages.create_bp(app), url_prefix = app.config["URL_PREFIX"], static_folder='static')
|
app.register_blueprint(pages.create_bp(app), url_prefix = app.config["URL_PREFIX"], static_folder='static')
|
||||||
|
|
||||||
|
@app.route('/pygments.css')
|
||||||
|
def pygments_css():
|
||||||
|
return pygments_style_defs('tango'), 200, {'Content-Type': 'text/css'}
|
||||||
|
|
||||||
app.add_url_rule("/", endpoint="index")
|
app.add_url_rule("/", endpoint="index")
|
||||||
|
|
||||||
|
|||||||
@@ -54,3 +54,5 @@ def create_bp(app):
|
|||||||
else:
|
else:
|
||||||
return send_from_directory('static',path)
|
return send_from_directory('static',path)
|
||||||
return page_blueprint
|
return page_blueprint
|
||||||
|
|
||||||
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
{# -*-jinja2-*- #}
|
{# -*-jinja2-*- #}
|
||||||
<html>
|
<html>
|
||||||
<head></head>
|
<head><link rel="stylesheet" href="/{{ url_for('pygments_css') }}">
|
||||||
<LINK href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
|
<LINK href="/bootstrap.min.css" rel="stylesheet" type="text/css">
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user