From a70e367ebb0f1bddb1c4cf9d19b4144daa62c621 Mon Sep 17 00:00:00 2001 From: Greg Hendershott Date: Fri, 26 Oct 2012 09:10:16 -0400 Subject: [PATCH] Use Fenix web font. --- add-ga.rkt | 8 ++++++-- gh.css | 2 +- index.html | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/add-ga.rkt b/add-ga.rkt index aa2d262..f6a67bc 100644 --- a/add-ga.rkt +++ b/add-ga.rkt @@ -6,7 +6,10 @@ ;; ;; This takes "main.html", adds some GA code, and outputs "index.html". -(define _subst +(define web-font + "") + +(define ga-code #< 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 "" old subst)) diff --git a/gh.css b/gh.css index 4d5405f..d4986d4 100644 --- a/gh.css +++ b/gh.css @@ -7,7 +7,7 @@ /* Serif: */ .main, .refcontent, .tocview, .tocsub, i { - font-family: serif; + font-family: 'Fenix',serif; } /* Sans-serif: */ diff --git a/index.html b/index.html index 2e120b4..1223d24 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -Fear of Macros

Fear of Macros

+Fear of Macros

Fear of Macros

Copyright (c) 2012 by Greg Hendershott. All rights reserved.
Last updated 2012-10-26 08:58:25

1 Introduction

I learned Racket after 25 years of doing C/C++ imperative programming.

Some psychic whiplash resulted.

"All the parentheses" was actually not a big deal. Instead, the first