From dff57196bf9247f2ed225a65b497962d175369c5 Mon Sep 17 00:00:00 2001 From: rekado Date: Wed, 5 Nov 2014 22:49:37 +0100 Subject: use pretty web font --- css/DroidSerif-webfont.woff | Bin 0 -> 29992 bytes css/screen.css | 19 +++++++++++++------ site.hs | 9 +++++---- 3 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 css/DroidSerif-webfont.woff diff --git a/css/DroidSerif-webfont.woff b/css/DroidSerif-webfont.woff new file mode 100644 index 0000000..3d2bc95 Binary files /dev/null and b/css/DroidSerif-webfont.woff differ diff --git a/css/screen.css b/css/screen.css index 63bb204..e608131 100644 --- a/css/screen.css +++ b/css/screen.css @@ -1,10 +1,17 @@ +@font-face { + font-family: 'droid_serifregular'; + src: url('DroidSerif-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + html, body { - font-family: "droid serif", Georgia, Gentium, Goudy, "Book Antiqua", "Linux Libertine", "Times New Roman", serif; - text-rendering: optimizelegibility; --moz-font-feature-settings: "liga"; - line-height: 130%; - color: #333; - background: #fcfbf3; } + font-family: "droid_serifregular", serif; + text-rendering: optimizelegibility; + -moz-font-feature-settings: "liga"; + line-height: 130%; + color: #333; + background: #fcfbf3; } @media all {html {font-size: 24px;}} @media all and (max-width:1000px){html {font-size: 24px;}} diff --git a/site.hs b/site.hs index d0a6272..f854817 100644 --- a/site.hs +++ b/site.hs @@ -27,14 +27,11 @@ main :: IO () main = hakyllWith config $ do tags <- buildTags "posts/*.markdown" (fromCapture "tags/*.html") - match "css/*" $ do - route idRoute - compile compressCssCompiler - match ( "js/libs/*" .||. "js/hyphenator/*" .||. "js/hyphenator/patterns/*" .||. "js/*" + .||. "css/*.woff" .||. "downies/*" .||. "downies/music/*" .||. "images/*" @@ -46,6 +43,10 @@ main = hakyllWith config $ do route idRoute compile copyFileCompiler + match "css/*" $ do + route idRoute + compile compressCssCompiler + -- place static markdown files in site root match ( "static/*.markdown" .||. "static/*/*.markdown" ) $ do route $ setExtension "html" -- cgit v1.2.3