Skip to content

Commit

Permalink
style: add external monospaced font
Browse files Browse the repository at this point in the history
  • Loading branch information
kimminss0 committed Jan 11, 2025
1 parent 633284c commit 7412134
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
29 changes: 28 additions & 1 deletion css/default.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:[email protected]&display=swap");
@font-face {
font-family: "Meslo LG M DZ";
font-style: normal;
font-weight: normal;
src: url("/fonts/MesloLGMDZ-Regular.ttf") format("truetype");
}
@font-face {
font-family: "Meslo LG M DZ";
font-style: italic;
font-weight: normal;
src: url("/fonts/MesloLGMDZ-Italic.ttf") format("truetype");
}
@font-face {
font-family: "Meslo LG M DZ";
font-style: normal;
font-weight: bold;
src: url("/fonts/MesloLGMDZ-Bold.ttf") format("truetype");
}
@font-face {
font-family: "Meslo LG M DZ";
font-style: italic;
font-weight: bold;
src: url("/fonts/MesloLGMDZ-BoldItalic.ttf") format("truetype");
}

html {
font-size: 62.5%;
Expand Down Expand Up @@ -105,7 +129,6 @@ article .header {

code {
font-size: 95%;
font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace;
margin: 0;
hyphens: manual;
}
Expand All @@ -114,6 +137,10 @@ pre {
padding: 8px 15px;
overflow: auto;
}
pre,
code {
font-family: "Meslo LG M DZ", monospace;
}
pre code {
padding: 0;
overflow: visible;
Expand Down
2 changes: 1 addition & 1 deletion src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Text.Pandoc.Options

main :: IO ()
main = hakyll $ do
match "static/*" $ do
match "static/**" $ do
route $ gsubRoute "static/" (const "")
compile copyFileCompiler

Expand Down
Binary file added static/fonts/MesloLGMDZ-Bold.ttf
Binary file not shown.
Binary file added static/fonts/MesloLGMDZ-BoldItalic.ttf
Binary file not shown.
Binary file added static/fonts/MesloLGMDZ-Italic.ttf
Binary file not shown.
Binary file added static/fonts/MesloLGMDZ-Regular.ttf
Binary file not shown.

0 comments on commit 7412134

Please sign in to comment.