diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-02-07 20:14:35 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-02-07 20:14:35 +0300 |
commit | 3083a3bb4393bd183174fb5b0f3b545c616aa5b5 (patch) | |
tree | 3bc15cde6adbc9b740b33359e68983b416728875 /docs/inter.css | |
parent | 4514cfa3ec05b98874c6ea76056b38ff5114ccd2 (diff) | |
download | inter-3083a3bb4393bd183174fb5b0f3b545c616aa5b5.tar.xz |
website: use version in CSS file for cache control instead of font file mtime
Diffstat (limited to 'docs/inter.css')
-rw-r--r-- | docs/inter.css | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/docs/inter.css b/docs/inter.css index 7467e6284..09929c5f8 100644 --- a/docs/inter.css +++ b/docs/inter.css @@ -1,16 +1,7 @@ --- layout: none --- -{% - -for file in site.static_files %}{% - assign _path = file.path | remove_first: "/inter" %}{% - if _path == "/font-files/Inter-Regular.woff2" %}{% - assign font_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{% - endif %}{% -endfor - -%} +{% assign font_v = site.data.fontinfo[0].version %} @font-face { font-family: 'Inter'; font-style: normal; |