Skip to content

Commit

Permalink
Load fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jun 8, 2024
1 parent 32cd942 commit 955444f
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 0 deletions.
Binary file added assets/fonts/CPMono_v07_Black.woff
Binary file not shown.
Binary file added assets/fonts/CPMono_v07_Bold.woff
Binary file not shown.
Binary file added assets/fonts/CPMono_v07_ExtraLight.woff
Binary file not shown.
Binary file added assets/fonts/CPMono_v07_Light.woff
Binary file not shown.
Binary file added assets/fonts/CPMono_v07_Plain.woff
Binary file not shown.
1 change: 1 addition & 0 deletions layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<link rel="me" href="{{ meta.contact.mastodon }}" />

{% set css %}
{% include "./fonts.css" %}
{% include "./style.css" %}
{% endset %}
<style>
Expand Down
39 changes: 39 additions & 0 deletions layouts/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@font-face {
font-family: "CP Mono";
font-style: normal;
font-weight: 200;
src: local("CPMono_v07 ExtraLight"),
url("assets/fonts/CPMono_v07_ExtraLight.woff") format("woff");
}

@font-face {
font-family: "CP Mono";
font-style: normal;
font-weight: 300;
src: local("CPMono_v07 Light"),
url("assets/fonts/CPMono_v07_Light.woff") format("woff");
}

@font-face {
font-family: "CP Mono";
font-style: normal;
font-weight: normal;
src: local("CPMono_v07 Plain"),
url("assets/fonts/CPMono_v07_Plain.woff") format("woff");
}

@font-face {
font-family: "CP Mono";
font-style: normal;
font-weight: 700;
src: local("CPMono_v07 Bold"),
url("assets/fonts/CPMono_v07_Bold.woff") format("woff");
}

@font-face {
font-family: "CP Mono";
font-style: normal;
font-weight: 900;
src: local("CPMono_v07 Black"),
url("assets/fonts/CPMono_v07_Black.woff") format("woff");
}

0 comments on commit 955444f

Please sign in to comment.