summaryrefslogtreecommitdiff
path: root/docs/lab
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2020-08-20 21:12:42 +0300
committerRasmus Andersson <rasmus@notion.se>2020-08-20 21:12:42 +0300
commite9cc7718f3cf9a6eac29d02de84dd37ad0863dd8 (patch)
tree0daeb0609148f3330d9935d1093e9e58e0311b5f /docs/lab
parente8fd39993cd3e3bfa3d60a292d65fa84b33a33a3 (diff)
downloadinter-e9cc7718f3cf9a6eac29d02de84dd37ad0863dd8.tar.xz
web: lab font file version
Diffstat (limited to 'docs/lab')
-rw-r--r--docs/lab/font-files.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/lab/font-files.js b/docs/lab/font-files.js
index f19297a31..3db1f61c4 100644
--- a/docs/lab/font-files.js
+++ b/docs/lab/font-files.js
@@ -59,11 +59,11 @@ var fontFamilyName,
w(` font-display: block;`)
w(` src:`)
if (includeLabLocalFiles) {
- w(` url("fonts/${filepath}/${filename}.woff2?v=${fontVersion}") format("woff2"),`)
- w(` url("fonts/${filepath}/${filename}.woff?v=${fontVersion}") format("woff"),`)
+ w(` url("fonts/${filepath}/${filename}.woff2?${fontVersion}") format("woff2"),`)
+ w(` url("fonts/${filepath}/${filename}.woff?${fontVersion}") format("woff"),`)
}
- w(` url("../font-files/${filename}.woff2?v=${fontVersion}") format("woff2"),`)
- w(` url("../font-files/${filename}.woff?v=${fontVersion}") format("woff2");`)
+ w(` url("../font-files/${filename}.woff2?${fontVersion}") format("woff2"),`)
+ w(` url("../font-files/${filename}.woff?${fontVersion}") format("woff2");`)
w(`}`)
}
@@ -93,9 +93,9 @@ var fontFamilyName,
font-display: block;
src:`)
if (includeLabLocalFiles) {
- w(` url('fonts/var/${family}.var.woff2?v=${fontVersion}') format("woff2"),`)
+ w(` url('fonts/var/${family}.var.woff2?${fontVersion}') format("woff2"),`)
}
- w(` url('../font-files/${family}.var.woff2?v=${fontVersion}') format("woff2");`)
+ w(` url('../font-files/${family}.var.woff2?${fontVersion}') format("woff2");`)
w(`}`)
w(`@font-face {
@@ -104,9 +104,9 @@ var fontFamilyName,
font-display: block;
src:`)
if (includeLabLocalFiles) {
- w(` url('fonts/var/${family}.var.woff2?v=${fontVersion}') format("woff2"),`)
+ w(` url('fonts/var/${family}.var.woff2?${fontVersion}') format("woff2"),`)
}
- w(` url('../font-files/${family}.var.woff2?v=${fontVersion}') format("woff2");`)
+ w(` url('../font-files/${family}.var.woff2?${fontVersion}') format("woff2");`)
w(`}`)
}