summaryrefslogtreecommitdiff
path: root/docs/index.html
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@figma.com>2019-02-07 20:14:35 +0300
committerRasmus Andersson <rasmus@figma.com>2019-02-07 20:14:35 +0300
commit3083a3bb4393bd183174fb5b0f3b545c616aa5b5 (patch)
tree3bc15cde6adbc9b740b33359e68983b416728875 /docs/index.html
parent4514cfa3ec05b98874c6ea76056b38ff5114ccd2 (diff)
downloadinter-3083a3bb4393bd183174fb5b0f3b545c616aa5b5.tar.xz
website: use version in CSS file for cache control instead of font file mtime
Diffstat (limited to 'docs/index.html')
-rw-r--r--docs/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/index.html b/docs/index.html
index bd559d96d..4a9ee17bc 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,6 +3,12 @@ layout: default
---
{%
+assign release_version = site.data.fontinfo[0].version %}{%
+
+capture download_url
+ %}https://github.com/rsms/inter/releases/download/v{{ release_version }}/Inter-{{ release_version }}.zip{%
+endcapture %}{%
+
for file in site.static_files %}{%
assign _path = file.path | remove_first: "/inter" %}{%
if _path == "/index.css" %}{%
@@ -49,7 +55,7 @@ endfor
<h2><a id="usage" href="#usage">How do I use it?</a></h2>
<p>
Using the font is as easy as
- <a class="download-link" href="https://github.com/rsms/inter/releases/latest/">download &amp; installing</a> locally on your computer.
+ <a class="download-link" href="{{download_url}}">downloading &amp; installing</a> on your computer.
</p>
<p>
You're free to bundle copies of Inter with your software, even if it's