Skip to content

Commit 8144154

Browse files
committed
add css and script tags to other files
1 parent 13beef1 commit 8144154

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ frontend:
123123
make stylesheets
124124
make govukAssets
125125
rsync -r assets/images static/
126+
cp node_modules/maplibre-gl/dist/maplibre-gl.css static/stylesheets/maplibre-gl.css
126127

127128
frontend-all: clean frontend
128129

application/templates/entity.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
{% endblock %}
3030

3131
{%- block mapAssets %}
32-
<script src='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js'></script>
33-
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />
32+
<script src='/static/javascripts/maplibre-gl.js'></script>
33+
<link href='/static/stylesheets/maplibre-gl.css' rel='stylesheet' />
3434
<script src='https://api.mapbox.com/mapbox.js/plugins/turf/v2.0.2/turf.min.js'></script>
3535
{{ super() }}
3636
{% endblock -%}

application/templates/national-map.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
{%- block mapAssets %}
1717
<script src='/static/javascripts/maplibre-gl.js'></script>
18-
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />
18+
<link href='/static/stylesheets/maplibre-gl.css' rel='stylesheet' />
1919
{{ super() }}
2020
{% endblock -%}
2121

application/templates/search.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
{% from 'components/pagination/macro.jinja' import appPagination %}
1313

1414
{%- block mapAssets %}
15-
<script src='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js'></script>
16-
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />
15+
<script src='/static/javascripts/maplibre-gl.js'></script>
16+
<link href='/static/stylesheets/maplibre-gl.css' rel='stylesheet' />
1717
<script src='https://api.mapbox.com/mapbox.js/plugins/turf/v2.0.2/turf.min.js'></script>
1818
{{ super() }}
1919
{% endblock -%}

0 commit comments

Comments
 (0)