~xdavidwu/xdavidwu.link

7f30ab04ea1c6add3a74a6ce2213610b45a80051 — Michael Rose 9 years ago c7d2a8f
Remove Google webfonts as default and include for custom <head> includes
- Create font stacks using system fonts for improved performance
4 files changed, 18 insertions(+), 5 deletions(-)

M _includes/head.html
A _includes/head/custom.html
M _layouts/default.html
M assets/_scss/_variables.scss
M _includes/head.html => _includes/head.html +0 -2
@@ 14,8 14,6 @@

<meta http-equiv="cleartype" content="on">

<link href="//fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700%7CPT+Serif:400,700,400italic" rel="stylesheet" type="text/css">

<!-- Icons -->
<link rel="shortcut icon" href="{{ base_path }}/favicon.ico">
<link rel="shortcut icon" href="{{ base_path }}/favicon.png">

A _includes/head/custom.html => _includes/head/custom.html +3 -0
@@ 0,0 1,3 @@
<!-- start custom head snippets -->

<!-- end custom head snippets -->
\ No newline at end of file

M _layouts/default.html => _layouts/default.html +1 -0
@@ 8,6 8,7 @@ layout: compress
<html lang="{{ site.locale | slice: 0,2 }}">
  <head>
  {% include head.html %}
  {% include head/custom.html %}
  </head>

  <body>

M assets/_scss/_variables.scss => assets/_scss/_variables.scss +14 -3
@@ 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