Use Fenix web font.
This commit is contained in:
parent
6b48e57c68
commit
a70e367ebb
|
@ -6,7 +6,10 @@
|
||||||
;;
|
;;
|
||||||
;; This takes "main.html", adds some GA code, and outputs "index.html".
|
;; 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
|
#<<EOF
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var _gaq = _gaq || [];
|
var _gaq = _gaq || [];
|
||||||
|
@ -23,7 +26,8 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
|
||||||
EOF
|
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 old (file->string "main.html"))
|
||||||
(define new (regexp-replace "</head>" old subst))
|
(define new (regexp-replace "</head>" old subst))
|
||||||
|
|
2
gh.css
2
gh.css
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
/* Serif: */
|
/* Serif: */
|
||||||
.main, .refcontent, .tocview, .tocsub, i {
|
.main, .refcontent, .tocview, .tocsub, i {
|
||||||
font-family: serif;
|
font-family: 'Fenix',serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sans-serif: */
|
/* Sans-serif: */
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user