Remove use of JQuery CDN
This commit is contained in:
@@ -75,7 +75,6 @@ _DEFAULT_CONFIG = {
|
||||
'thumb_suffix': '',
|
||||
'thumb_video_delay': '0',
|
||||
'title': '',
|
||||
'use_assets_cdn': True,
|
||||
'use_orig': False,
|
||||
'video_converter': 'ffmpeg',
|
||||
'video_extensions': ['.mov', '.avi', '.mp4', '.webm', '.ogv', '.3gp'],
|
||||
|
||||
@@ -182,10 +182,6 @@ ignore_files = []
|
||||
# Add output filename (see above) to the URLs
|
||||
# index_in_url = False
|
||||
|
||||
# Use CDN for assets (Google fonts, JQuery).
|
||||
# If False some fonts may not be available.
|
||||
# use_assets_cdn = True
|
||||
|
||||
# A list of links (tuples (title, URL))
|
||||
# links = [('Example link', 'http://example.org'),
|
||||
# ('Another link', 'http://example.org')]
|
||||
|
||||
@@ -108,11 +108,7 @@
|
||||
|
||||
{% block footer %}
|
||||
{% if album.medias %}
|
||||
{% if settings.use_assets_cdn %}
|
||||
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
|
||||
{% else %}
|
||||
<script src="{{ theme.url }}/js/jquery-2.2.1.min.js"></script>
|
||||
{% endif %}
|
||||
<script src="{{ theme.url }}/js/jquery.colorbox-min.js"></script>
|
||||
<script src="{{ theme.url }}/js/jquery.touchSwipe.min.js"></script>
|
||||
|
||||
|
||||
@@ -145,11 +145,7 @@
|
||||
</div>
|
||||
|
||||
{% if album.medias %}
|
||||
{% if settings.use_assets_cdn %}
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
||||
{% else %}
|
||||
<script src="{{ theme.url }}/jquery-3.3.1.min.js"></script>
|
||||
{% endif %}
|
||||
{% if settings.show_map and album.show_map %}
|
||||
<script src="{{ theme.url }}/leaflet/leaflet.js"></script>
|
||||
<script src="{{ theme.url }}/leaflet/leaflet-providers.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user