From 7f30ab04ea1c6add3a74a6ce2213610b45a80051 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 21 Mar 2016 14:11:14 -0400 Subject: [PATCH] Remove Google webfonts as default and include for custom includes - Create font stacks using system fonts for improved performance --- _includes/head.html | 2 -- _includes/head/custom.html | 3 +++ _layouts/default.html | 1 + assets/_scss/_variables.scss | 17 ++++++++++++++--- 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 _includes/head/custom.html diff --git a/_includes/head.html b/_includes/head.html index 1ef0fa01..e32b576a 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -14,8 +14,6 @@ - - diff --git a/_includes/head/custom.html b/_includes/head/custom.html new file mode 100644 index 00000000..7074c982 --- /dev/null +++ b/_includes/head/custom.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 848ab6c6..a6472667 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -8,6 +8,7 @@ layout: compress {% include head.html %} + {% include head/custom.html %} diff --git a/assets/_scss/_variables.scss b/assets/_scss/_variables.scss index 8df8d108..d02936d0 100644 --- a/assets/_scss/_variables.scss +++ b/assets/_scss/_variables.scss @@ -11,11 +11,22 @@ $doc-line-height : 26; $paragraph-indent : false !default; $indent-var : 0rem + ($doc-line-height / $doc-font-size); -$serif : "PT Serif", serif; -$sans-serif : -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; -$sans-serif-narrow : "PT Sans Narrow", sans-serif; +/* system typefaces */ +$serif : Georgia, Times, serif; +$sans-serif : -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif; $monospace : Monaco, Consolas, "Lucida Console", monospace; +/* sans serif typefaces */ +$sans-serif-narrow : $sans-serif; +$helvetica : Helvetica, "Helvetica Neue", Arial, sans-serif; + +/* serif typefaces */ +$georgia : Georgia, serif; +$times : Times, serif; +$bodoni : "Bodoni MT", serif; +$calisto : "Calisto MT", serif; +$garamond : Garamond, serif; + /* Colors