From 25898f3a31be4dd6c5c95b799f3a8a86b2a52ce1 Mon Sep 17 00:00:00 2001
From: Nielsen Ramon
Date: Thu, 2 Mar 2017 12:14:37 +0100
Subject: [PATCH] Add better support for local fonts and update documentation
(#60)
---
404.html | 15 +
Gemfile.lock | 19 +-
README.md | 7 +-
_assets/fonts/Cormorant-Garamond-500.eot | Bin 33647 -> 0 bytes
_assets/fonts/Cormorant-Garamond-500.svg | 496 ------------------
_assets/fonts/Cormorant-Garamond-500.ttf | Bin 84180 -> 0 bytes
_assets/fonts/Cormorant-Garamond-500.woff | Bin 22732 -> 0 bytes
_assets/fonts/Cormorant-Garamond-500.woff2 | Bin 18088 -> 0 bytes
_assets/fonts/Lato-300.svg | 435 ---------------
_assets/fonts/Lato-700.svg | 438 ----------------
_assets/fonts/Lato-regular.svg | 435 ---------------
.../Cormorant-Garamond-700.eot | Bin 0 -> 34060 bytes
.../Cormorant-Garamond-700.ttf | Bin 0 -> 84848 bytes
.../Cormorant-Garamond-700.woff | Bin 0 -> 22532 bytes
.../Cormorant-Garamond-700.woff2 | Bin 0 -> 18072 bytes
_assets/fonts/{ => ionicons}/ionicons.eot | Bin
_assets/fonts/{ => ionicons}/ionicons.svg | 0
_assets/fonts/{ => ionicons}/ionicons.ttf | Bin
_assets/fonts/{ => ionicons}/ionicons.woff | Bin
_assets/fonts/{ => lato}/Lato-300.eot | Bin
_assets/fonts/{ => lato}/Lato-300.ttf | Bin
_assets/fonts/{ => lato}/Lato-300.woff | Bin
_assets/fonts/{ => lato}/Lato-300.woff2 | Bin
_assets/fonts/{ => lato}/Lato-700.eot | Bin
_assets/fonts/{ => lato}/Lato-700.ttf | Bin
_assets/fonts/{ => lato}/Lato-700.woff | Bin
_assets/fonts/{ => lato}/Lato-700.woff2 | Bin
_assets/fonts/{ => lato}/Lato-regular.eot | Bin
_assets/fonts/{ => lato}/Lato-regular.ttf | Bin
_assets/fonts/{ => lato}/Lato-regular.woff | Bin
_assets/fonts/{ => lato}/Lato-regular.woff2 | Bin
_assets/stylesheets/dark.scss | 1 -
_assets/stylesheets/fonts.scss | 63 +++
_assets/stylesheets/light.scss | 1 -
_assets/stylesheets/modules/_embed.scss | 1 +
_assets/stylesheets/modules/_fonts.scss | 59 ---
_assets/stylesheets/modules/_header.scss | 2 +-
_assets/stylesheets/modules/_icons.scss | 6 +-
_config.yml | 10 +-
_includes/head.html | 4 +
_includes/javascripts.html | 11 +
_posts/2016-10-16-configuring-chalk.md | 27 +-
_posts/2016-10-17-introducing-chalk.md | 5 +-
43 files changed, 135 insertions(+), 1900 deletions(-)
delete mode 100755 _assets/fonts/Cormorant-Garamond-500.eot
delete mode 100755 _assets/fonts/Cormorant-Garamond-500.svg
delete mode 100755 _assets/fonts/Cormorant-Garamond-500.ttf
delete mode 100755 _assets/fonts/Cormorant-Garamond-500.woff
delete mode 100755 _assets/fonts/Cormorant-Garamond-500.woff2
delete mode 100755 _assets/fonts/Lato-300.svg
delete mode 100755 _assets/fonts/Lato-700.svg
delete mode 100755 _assets/fonts/Lato-regular.svg
create mode 100755 _assets/fonts/cormorant-garamond/Cormorant-Garamond-700.eot
create mode 100755 _assets/fonts/cormorant-garamond/Cormorant-Garamond-700.ttf
create mode 100755 _assets/fonts/cormorant-garamond/Cormorant-Garamond-700.woff
create mode 100755 _assets/fonts/cormorant-garamond/Cormorant-Garamond-700.woff2
rename _assets/fonts/{ => ionicons}/ionicons.eot (100%)
rename _assets/fonts/{ => ionicons}/ionicons.svg (100%)
rename _assets/fonts/{ => ionicons}/ionicons.ttf (100%)
rename _assets/fonts/{ => ionicons}/ionicons.woff (100%)
rename _assets/fonts/{ => lato}/Lato-300.eot (100%)
rename _assets/fonts/{ => lato}/Lato-300.ttf (100%)
rename _assets/fonts/{ => lato}/Lato-300.woff (100%)
rename _assets/fonts/{ => lato}/Lato-300.woff2 (100%)
rename _assets/fonts/{ => lato}/Lato-700.eot (100%)
rename _assets/fonts/{ => lato}/Lato-700.ttf (100%)
rename _assets/fonts/{ => lato}/Lato-700.woff (100%)
rename _assets/fonts/{ => lato}/Lato-700.woff2 (100%)
rename _assets/fonts/{ => lato}/Lato-regular.eot (100%)
rename _assets/fonts/{ => lato}/Lato-regular.ttf (100%)
rename _assets/fonts/{ => lato}/Lato-regular.woff (100%)
rename _assets/fonts/{ => lato}/Lato-regular.woff2 (100%)
create mode 100755 _assets/stylesheets/fonts.scss
delete mode 100755 _assets/stylesheets/modules/_fonts.scss
diff --git a/404.html b/404.html
index d77ad7865..ce6d50700 100644
--- a/404.html
+++ b/404.html
@@ -11,6 +11,10 @@
{{ site.name }} | Page not found
+ {% if site.local_fonts %}
+ {% stylesheet fonts %}
+ {% endif %}
+
{% if site.blog_theme == "light" %}
{% stylesheet notfound-light %}
{% else %}
@@ -26,5 +30,16 @@
+
+ {% unless site.local_fonts %}
+
+
+ {% endunless %}