diff --git a/content/markdown.md b/content/markdown.md index 3384173..891fa22 100644 --- a/content/markdown.md +++ b/content/markdown.md @@ -9,17 +9,15 @@ tags = ["markdown", "test"] ```rust fn main() { - println!("Hello World"); + println!("Hello, world!") -> (); } ``` ## Quote > We're all hurtling towards death. Yet here we are, for the moment, alive. Each of us knowing we're going to die. Each of us secretly believing we won't. -> +> > — Charlie Kaufman, Synecdoche, New York - - ## Code tags Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit. diff --git a/sass/main.scss b/sass/main.scss index 66972b8..a05da44 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -12,6 +12,13 @@ font-display: swap; } +@font-face { + /* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */ + font-family: 'Cascadia Code'; + src: url('fonts/CascadiaCode.ttf'); + font-display: swap; +} + @import 'parts/_archive.scss'; @import 'parts/_cards.scss'; @import 'parts/_code.scss'; @@ -32,6 +39,8 @@ font-family: 'Inter', Arial, Helvetica, sans-serif; line-height: 190%; + --code-font: 'Cascadia Code'; + --bg-0: #fff; --bg-1: #e7e7e7; --bg-2: #fefefe; diff --git a/sass/parts/_code.scss b/sass/parts/_code.scss index 20beb08..1dedcaf 100644 --- a/sass/parts/_code.scss +++ b/sass/parts/_code.scss @@ -1,6 +1,9 @@ code { background-color: var(--bg-1); padding: 0.1em 0.2em; + font-family: var(--code-font); + font-weight: 350; + font-size: 22px; } pre { @@ -22,7 +25,6 @@ pre code { } pre { - font-family: var(--code-font); position: relative; -webkit-overflow-scrolling: touch; } diff --git a/static/fonts/CascadiaCode.ttf b/static/fonts/CascadiaCode.ttf new file mode 100644 index 0000000..b47bf63 Binary files /dev/null and b/static/fonts/CascadiaCode.ttf differ