use pretty web font
authorrekado <rekado@elephly.net>
Wed, 5 Nov 2014 21:49:37 +0000 (22:49 +0100)
committerrekado <rekado@elephly.net>
Wed, 5 Nov 2014 21:49:48 +0000 (22:49 +0100)
css/DroidSerif-webfont.woff [new file with mode: 0644]
css/screen.css
site.hs

diff --git a/css/DroidSerif-webfont.woff b/css/DroidSerif-webfont.woff
new file mode 100644 (file)
index 0000000..3d2bc95
Binary files /dev/null and b/css/DroidSerif-webfont.woff differ
index 63bb204..e608131 100644 (file)
@@ -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 (file)
--- 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"