Use url_for for all static paths
This commit is contained in:
parent
436cbcffe4
commit
7ace430dee
@ -6,6 +6,7 @@
|
||||
"scripts": {
|
||||
"watch": "parcel watch js/index.js -d static/assets --public-url /static/assets -o index.js --no-autoinstall",
|
||||
"build": "parcel build js/index.js -d static/assets --public-url /static/assets -o index.js",
|
||||
"build-prod": "parcel build js/index.js -d static/assets --public-url $CDN_URL -o index.js",
|
||||
"test": "jest",
|
||||
"test:coverage": "jest --coverage --collectCoverageFrom='js/**/*.js'",
|
||||
"test:watch": "jest --watch --no-cache"
|
||||
|
@ -6,7 +6,8 @@
|
||||
<div class="home-container">
|
||||
|
||||
<div class="home-container__logo">
|
||||
<img src="/static/img/ccpo-logo.svg" alt="Cloud Computing Program Office Logo">
|
||||
<img src="{{ url_for("static", filename="img/ccpo-logo.svg") }}"
|
||||
alt="Cloud Computing Program Office Logo">
|
||||
</div>
|
||||
|
||||
<div class="home-container__body">
|
||||
|
@ -8,7 +8,7 @@
|
||||
{% assets "css" %}
|
||||
<link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css">
|
||||
{% endassets %}
|
||||
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='img/favicon.ico') }} " />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
{% assets "css" %}
|
||||
<link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css">
|
||||
{% endassets %}
|
||||
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='img/favicon.ico') }} " />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
{% assets "css" %}
|
||||
<link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css">
|
||||
{% endassets %}
|
||||
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='img/favicon.ico') }} " />
|
||||
</head>
|
||||
<body class="{% if g.modalOpen %} modalOpen{% endif %}">
|
||||
|
||||
|
@ -132,6 +132,6 @@
|
||||
<p>Here’s an example:<br>
|
||||
Application A has a development environment, production environment, and sandbox environment. The cloud resources in the development environment are grouped and accessed separately from the production environment and sandbox environment.</p>
|
||||
|
||||
<img src='/static/img/at-at_faqs_content.svg' alt='AT-AT FAQs Content'>
|
||||
<img src='{{ url_for("static", filename="img/at-at_faqs_content.svg") }}' alt='AT-AT FAQs Content'>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -94,7 +94,7 @@
|
||||
</toggler>
|
||||
|
||||
</div>
|
||||
<img id='jedi-heirarchy' src="/static/img/JEDIhierarchyDiagram.png" alt="JEDI heirarchy diagram">
|
||||
<img id='jedi-heirarchy' src="{{ url_for("static", filename="img/JEDIhierarchyDiagram.png")}}" alt="JEDI heirarchy diagram">
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user