use url_for for css and js
This commit is contained in:
parent
7d5c522e6a
commit
1353351c0e
|
@ -7,10 +7,10 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>{{ i18n.title }}</title>
|
<title>{{ i18n.title }}</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/css/base.css?t={{ epoch }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/base.css') }}?t={{ epoch }}">
|
||||||
<link rel="stylesheet" type="text/css" href="/css/colors.css?t={{ epoch }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/colors.css') }}?t={{ epoch }}">
|
||||||
{%- if config.animations == "1" or config.animations == "true" %}
|
{%- if config.animations == "1" or config.animations == "true" %}
|
||||||
<link rel="stylesheet" type="text/css" href="/css/animations.css?t={{ epoch }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='/css/animations.css') }}?t={{ epoch }}">
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='favicon-32x32.png') }}">
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='favicon-32x32.png') }}">
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<script type="text/javascript" src="/js/toggle.js?t={{ epoch }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='/js/toggle.js') }}?t={{ epoch }}"></script>
|
||||||
<script type="text/javascript" src="/js/autoReload.js?t={{ epoch }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='/js/autoReload.js') }}?t={{ epoch }}"></script>
|
||||||
<script type="text/javascript" src="/js/shortcut.js?t={{ epoch }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='/js/shortcut.js') }}?t={{ epoch }}"></script>
|
||||||
|
|
||||||
{%- set id = namespace(value=0) %}
|
{%- set id = namespace(value=0) %}
|
||||||
{%- for question in content %}
|
{%- for question in content %}
|
||||||
|
|
Loading…
Reference in New Issue