| 1 |
{%- |
| 2 |
assign build_version = site.time | date: "%Y%m%d%H%M%S" %}{% |
| 3 |
assign description = "Inter is a typeface family" %}{% |
| 4 |
assign release_version = site.data.fontinfo[0].version %}{% |
| 5 |
|
| 6 |
capture title %}{% if page.title %}{{ page.title }} — Inter{% else %}Inter font family{% endif %}{% endcapture %}{% |
| 7 |
|
| 8 |
if site.baseurl %}{% |
| 9 |
assign url_root = site.baseurl | append: "/" %}{% |
| 10 |
else %}{% |
| 11 |
assign url_root = "/inter/" %}{% |
| 12 |
endif %}{% |
| 13 |
|
| 14 |
for file in site.static_files %}{% |
| 15 |
assign _path = file.path | remove_first: "/inter" %}{% |
| 16 |
if _path == "/res/base.css" %}{% |
| 17 |
assign base_css_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{% |
| 18 |
elsif _path == "/res/favicon.png" %}{% |
| 19 |
assign favicon_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{% |
| 20 |
endif %}{% |
| 21 |
endfor %}{% |
| 22 |
|
| 23 |
capture download_url |
| 24 |
%}https://github.com/rsms/inter/releases/download/v{{release_version}}/Inter-{{release_version}}.zip{% |
| 25 |
endcapture |
| 26 |
|
| 27 |
-%} |