Skip to content

Commit 0ee9bce

Browse files
committed
WIP
1 parent 3582126 commit 0ee9bce

File tree

2 files changed

+57
-4
lines changed

2 files changed

+57
-4
lines changed

website/sass/fonts.scss

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// BONA NOVA
2+
@font-face {
3+
font-family: "Bona Nova";
4+
font-style: normal;
5+
font-weight: 700;
6+
font-display: swap;
7+
src: url("https://static.graphite.rs/fonts/BonaNova.woff2") format("woff2");
8+
}
9+
10+
// INTER
11+
@font-face {
12+
font-family: "Inter";
13+
font-style: normal;
14+
font-weight: 100 900;
15+
font-display: swap;
16+
src: url("https://static.graphite.rs/fonts/InterVariable-v4.1.woff2") format("woff2");
17+
}
18+
@font-face {
19+
font-family: "Inter";
20+
font-style: italic;
21+
font-weight: 100 900;
22+
font-display: swap;
23+
src: url("https://static.graphite.rs/fonts/InterVariable-Italic-v4.1.woff2") format("woff2");
24+
}
25+
@font-feature-values Inter {
26+
@character-variant {
27+
cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
28+
cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
29+
alt-1: 1; // Alternate one
30+
alt-3: 9; // Flat-top three
31+
open-4: 2; // Open four
32+
open-6: 3; // Open six
33+
open-9: 4; // Open nine
34+
lc-l-with-tail: 5; // Lower-case L with tail
35+
simplified-u: 6; // Simplified u
36+
alt-double-s: 7; // Alternate German double s
37+
uc-i-with-serif: 8; // Upper-case i with serif
38+
uc-g-with-spur: 10; // Capital G with spur
39+
single-story-a: 11; // Single-story a
40+
compact-lc-f: 12; // Compact f
41+
compact-lc-t: 13; // Compact t
42+
}
43+
44+
@styleset {
45+
ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
46+
open-digits: 1; // Open digits
47+
disambiguation: 2; // Disambiguation (with zero)
48+
disambiguation-except-zero: 4; // Disambiguation (no zero)
49+
round-quotes-and-commas: 3; // Round quotes & commas
50+
square-punctuation: 7; // Square punctuation
51+
square-quotes: 8; // Square quotes
52+
circled-characters: 5; // Circled characters
53+
squared-characters: 6; // Squared characters
54+
}
55+
}

website/templates/base.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@
2727
{% block rss -%}
2828
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path = 'blog/rss.xml', trailing_slash = false) | safe }}" />
2929
{%- endblock %}
30-
<link rel="preconnect" href="https://fonts.googleapis.com" />
31-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3230

3331
{#- ON EVERY PAGE OF THE SITE: CSS AND JS TO LOAD EITHER AS A LINK OR INLINE -#}
3432
{#- ======================================================================== -#}
35-
{%- set global_linked_css = ["https://fonts.googleapis.com/css2?family=Bona+Nova:wght@700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"] -%}
33+
{%- set global_linked_css = [] -%}
3634
{%- set global_linked_js = [] -%}
37-
{%- set global_css = ["/base.css"] -%}
35+
{%- set global_css = ["/base.css", "/fonts.css"] -%}
3836
{%- set global_js = ["/js/text-justification.js", "/js/navbar.js"] -%}
3937

4038
{#- RETRIEVE FROM TEMPLATES AND PAGES: CSS AND JS TO LOAD EITHER AS A LINK OR INLINE -#}

0 commit comments

Comments
 (0)