Use Fenix web font.

This commit is contained in:
Greg Hendershott 2012-10-26 09:10:16 -04:00
parent 6b48e57c68
commit a70e367ebb
3 changed files with 8 additions and 4 deletions

View File

@ -6,7 +6,10 @@
;;
;; This takes "main.html", adds some GA code, and outputs "index.html".
(define _subst
(define web-font
"<link href='http://fonts.googleapis.com/css?family=Fenix' rel='stylesheet' type='text/css'>")
(define ga-code
#<<EOF
<script type="text/javascript">
var _gaq = _gaq || [];
@ -23,7 +26,8 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
EOF
)
(define subst (regexp-replace* "\n" _subst "")) ;minify
(define all (string-append web-font ga-code))
(define subst (regexp-replace* "\n" all "")) ;minify
(define old (file->string "main.html"))
(define new (regexp-replace "</head>" old subst))

2
gh.css
View File

@ -7,7 +7,7 @@
/* Serif: */
.main, .refcontent, .tocview, .tocsub, i {
font-family: serif;
font-family: 'Fenix',serif;
}
/* Sans-serif: */

File diff suppressed because one or more lines are too long