Skip to content

Commit

Permalink
Use local font instead of fetching it from a remote location
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiparo committed Sep 12, 2023
1 parent 48e2eda commit fec117c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion _includes/head/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,19 @@
<link rel="icon" type="image/png" href={{ "/assets/images/icon-16.png" | relative_url }} sizes="16x16">
<link rel="icon" type="image/png" href={{ "/assets/images/icon-32.png" | relative_url }} sizes="32x32">
<link rel="icon" type="image/png" href={{ "/assets/images/icon-96.png" | relative_url }} sizes="96x96">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&amp;display=swap&amp;text=ROOTDataAnlysisFramework" rel="stylesheet">

<style>
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: 300;
font-stretch: 100%;
font-display: swap;
src: url({{ "/assets/fonts/opensans_light_300.woff" | relative_url }}) format('woff');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a.site-title {
font-family: "OpenSans";
}
</style>
Binary file added assets/fonts/opensans_light_300.woff
Binary file not shown.

0 comments on commit fec117c

Please sign in to comment.