summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/DroidSerif-webfont.woffbin0 -> 29992 bytes
-rw-r--r--css/screen.css19
-rw-r--r--site.hs9
3 files changed, 18 insertions, 10 deletions
diff --git a/css/DroidSerif-webfont.woff b/css/DroidSerif-webfont.woff
new file mode 100644
index 0000000..3d2bc95
--- /dev/null
+++ b/css/DroidSerif-webfont.woff
Binary files 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"