mirror of
https://github.com/rsms/inter.git
synced 2024-11-22 02:44:34 +03:00
website: cache bust font-files/InterVariable.ttf used by glyph inspector
This commit is contained in:
parent
abfa193c9c
commit
1ea78b645f
@ -1,3 +1,14 @@
|
||||
---
|
||||
layout: none
|
||||
---
|
||||
{% include defs.html %}{%
|
||||
for file in site.static_files %}{%
|
||||
assign _path = file.path | remove_first: "/inter" %}{%
|
||||
if _path == "/font-files/InterVariable.ttf" %}{%
|
||||
assign ttf_timestamp = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
|
||||
endif %}{%
|
||||
endfor %}
|
||||
|
||||
import fontkit from "./fontkit-2.0.2.js"
|
||||
|
||||
const { min, max, ceil, floor } = Math
|
||||
@ -962,5 +973,5 @@ class GlyphInspector {
|
||||
}
|
||||
|
||||
let inspector = new GlyphInspector()
|
||||
await inspector.loadFont('font-files/InterVariable.ttf')
|
||||
await inspector.loadFont('font-files/InterVariable.ttf?v={{ttf_timestamp}}')
|
||||
// await inspector.loadFont('font-files/InterDisplay-Regular.otf')
|
||||
|
Loading…
Reference in New Issue
Block a user