mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-10 12:41: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 {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 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;
|
font-size: 1rem;
|
||||||
line-height: 1.54;
|
line-height: 1.54;
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
|
@ -118,7 +118,7 @@ figure {
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
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;
|
font-feature-settings: normal;
|
||||||
background: var(--accent-alpha-20);
|
background: var(--accent-alpha-20);
|
||||||
padding: 1px 6px;
|
padding: 1px 6px;
|
||||||
|
@ -127,7 +127,7 @@ code {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
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;
|
padding: 20px;
|
||||||
font-size: .95rem;
|
font-size: .95rem;
|
||||||
overflow: auto;
|
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 -%}
|
||||||
{% 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 }}">
|
<link rel="stylesheet" href="{{ get_url(path="font-hack.css", trailing_slash=false) | safe }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="stylesheet" href="{{ get_url(path="font-hack-subset.css", trailing_slash=false) | safe }}">
|
<link rel="stylesheet" href="{{ get_url(path="font-hack-subset.css", trailing_slash=false) | safe }}">
|
||||||
|
|
Loading…
Reference in a new issue