diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-02-06 22:49:18 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-02-06 22:49:18 +0300 |
commit | 65ce56b9527ce698214f24db779b7a8a2a4783a1 (patch) | |
tree | a52d8cfd36071cf47e674ab4731eb4a8e650b88b /docs/_layouts/default.html | |
parent | 33aca189225fff8e5f94838190f8ed10f5f9d8f3 (diff) | |
download | inter-65ce56b9527ce698214f24db779b7a8a2a4783a1.tar.xz |
website
Diffstat (limited to 'docs/_layouts/default.html')
-rw-r--r-- | docs/_layouts/default.html | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index abcb16aa5..c1300b70e 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -2,14 +2,11 @@ assign build_version = site.time | date: "%Y%m%d%H%M%S" %}{% assign description = "Inter is a typeface optimized for computer-user interfaces" %}{% -capture url_root - %}{% if site.safe == false %}/{% else %}/inter/{% endif -%}{% -endcapture %}{% +if site.safe == false %}{% +assign url_root = "/" %}{% else %}{% +assign url_root = "/inter/" %}{% endif %}{% -capture release_version - %}{{ site.data.fontinfo[0].version }}{% -endcapture %}{% +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{% |