Skip to content

Commit f823878

Browse files
committed
Download fonts and tikz support for better privacy.
1 parent 27d9836 commit f823878

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

_config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ enable_video_embedding: false # enables video embedding for bibtex entries. If f
394394
# The integrity hash is used to ensure that the library is not tampered with.
395395
# Integrity hashes not provided by the libraries were generated using https://www.srihash.org/
396396
third_party_libraries:
397-
download: false # if true, download the versions of the libraries specified below and use the downloaded files
397+
download: true # if true, download the versions of the libraries specified below and use the downloaded files
398398
bootstrap-table:
399399
integrity:
400400
css: "sha256-uRX+PiRTR4ysKFRCykT8HLuRCub26LgXJZym3Yeom1c="
@@ -614,6 +614,10 @@ third_party_libraries:
614614
css: "https://cdn.jsdelivr.net/npm/venobox@{{version}}/dist/venobox.min.css"
615615
js: "https://cdn.jsdelivr.net/npm/venobox@{{version}}/dist/venobox.min.js"
616616
version: "2.1.8"
617+
tikzjax:
618+
url:
619+
fonts: "https://tikzjax.com/v1/fonts.css"
620+
js: "https://tikzjax.com/v1/tikzjax.js"
617621

618622
# -----------------------------------------------------------------------------
619623
# Get external JSON data

_includes/distill_scripts.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<!-- Tikzjax -->
123123
<script
124124
defer
125-
src="https://tikzjax.com/v1/tikzjax.js"
125+
src="{{ site.third_party_libraries.tikzjax.url.js }}"
126126
integrity="sha256-+1qyucCXRZJrCg3lm3KxRt/7WXaYhBid4/1XJRHGB1E="
127127
crossorigin="anonymous"
128128
></script>

_includes/head.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,5 @@
185185
{% endif %}
186186

187187
{% if page.tikzjax %}
188-
<link defer rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
188+
<link defer rel="stylesheet" type="text/css" href="{{ site.third_party_libraries.tikzjax.url.fonts }}">
189189
{% endif %}

_includes/scripts.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<!-- Tikzjax -->
137137
<script
138138
defer
139-
src="https://tikzjax.com/v1/tikzjax.js"
139+
src="{{ site.third_party_libraries.tikzjax.url.js }}"
140140
integrity="sha256-+1qyucCXRZJrCg3lm3KxRt/7WXaYhBid4/1XJRHGB1E="
141141
crossorigin="anonymous"
142142
></script>

0 commit comments

Comments
 (0)