mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-10 04:31:06 +01:00
Add exo2 font
This commit is contained in:
parent
0ced77898f
commit
f8f57d0d40
27
sass/font-exo2.scss
Normal file
27
sass/font-exo2.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
@font-face {
|
||||
font-family: 'Exo2';
|
||||
src: url('fonts/Exo2-Regular.woff2?sha=123456789') format('woff2'), url('fonts/Exo2-Regular.woff?sha=123456789') format('woff');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Exo2';
|
||||
src: url('fonts/Exo2-Bold.woff2?sha=123456789') format('woff2'), url('fonts/Exo2-Bold.woff?sha=123456789') format('woff');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Exo2';
|
||||
src: url('fonts/Exo2-Italic.woff2?sha=123456789') format('woff2'), url('fonts/Exo2-Italic.woff?sha=123456789') format('woff');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Exo2';
|
||||
src: url('fonts/Exo2-BoldItalic.woff2?sha=123456789') format('woff2'), url('fonts/Exo2-BoldItalic.woff?sha=123456789') format('woff');
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
|
@ -13,7 +13,7 @@ html {
|
|||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
|
||||
font-family: Exo2, Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
|
||||
font-size: 1rem;
|
||||
line-height: 1.54;
|
||||
background-color: var(--background);
|
||||
|
@ -118,7 +118,7 @@ figure {
|
|||
}
|
||||
|
||||
code {
|
||||
font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
|
||||
font-family: Exo2, Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
|
||||
font-feature-settings: normal;
|
||||
background: var(--accent-alpha-20);
|
||||
padding: 1px 6px;
|
||||
|
@ -127,7 +127,7 @@ code {
|
|||
}
|
||||
|
||||
pre {
|
||||
font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
|
||||
font-family: Exo2, Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
|
||||
padding: 20px;
|
||||
font-size: .95rem;
|
||||
overflow: auto;
|
||||
|
|
BIN
static/fonts/Exo2-Bold.woff
Normal file
BIN
static/fonts/Exo2-Bold.woff
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-Bold.woff2
Normal file
BIN
static/fonts/Exo2-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-BoldItalic.woff
Normal file
BIN
static/fonts/Exo2-BoldItalic.woff
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-BoldItalic.woff2
Normal file
BIN
static/fonts/Exo2-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-Italic.woff
Normal file
BIN
static/fonts/Exo2-Italic.woff
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-Italic.woff2
Normal file
BIN
static/fonts/Exo2-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-Regular.woff
Normal file
BIN
static/fonts/Exo2-Regular.woff
Normal file
Binary file not shown.
BIN
static/fonts/Exo2-Regular.woff2
Normal file
BIN
static/fonts/Exo2-Regular.woff2
Normal file
Binary file not shown.
|
@ -19,7 +19,9 @@
|
|||
{% endif -%}
|
||||
{% endif -%}
|
||||
|
||||
{%- if config.extra.use_full_hack_font %}
|
||||
{%- if config.extra.use_full_hack_font == "exo2" %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="font-exo2.css", trailing_slash=false) | safe }}">
|
||||
{%- elif config.extra.use_full_hack_font %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="font-hack.css", trailing_slash=false) | safe }}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="font-hack-subset.css", trailing_slash=false) | safe }}">
|
||||
|
|
Loading…
Reference in a new issue