Skip to content

Commit

Permalink
Add fonts locally instead of with Google Fonts (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
95uxin authored and nielsenramon committed Mar 2, 2017
1 parent 542ecc7 commit 6c144d7
Show file tree
Hide file tree
Showing 26 changed files with 1,865 additions and 18 deletions.
9 changes: 0 additions & 9 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,5 @@ <h1><a href="{{ '/' | relative_url }}" title="Back to homepage">{{ site.name }}<
</p>
</div>
</main>

<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ['Cormorant Garamond:700', 'Lato:300,400,700']
}
});
</script>
</body>
</html>
Binary file added _assets/fonts/Cormorant-Garamond-500.eot
Binary file not shown.
496 changes: 496 additions & 0 deletions _assets/fonts/Cormorant-Garamond-500.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _assets/fonts/Cormorant-Garamond-500.ttf
Binary file not shown.
Binary file added _assets/fonts/Cormorant-Garamond-500.woff
Binary file not shown.
Binary file added _assets/fonts/Cormorant-Garamond-500.woff2
Binary file not shown.
Binary file added _assets/fonts/Lato-300.eot
Binary file not shown.
435 changes: 435 additions & 0 deletions _assets/fonts/Lato-300.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _assets/fonts/Lato-300.ttf
Binary file not shown.
Binary file added _assets/fonts/Lato-300.woff
Binary file not shown.
Binary file added _assets/fonts/Lato-300.woff2
Binary file not shown.
Binary file added _assets/fonts/Lato-700.eot
Binary file not shown.
438 changes: 438 additions & 0 deletions _assets/fonts/Lato-700.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _assets/fonts/Lato-700.ttf
Binary file not shown.
Binary file added _assets/fonts/Lato-700.woff
Binary file not shown.
Binary file added _assets/fonts/Lato-700.woff2
Binary file not shown.
Binary file added _assets/fonts/Lato-regular.eot
Binary file not shown.
435 changes: 435 additions & 0 deletions _assets/fonts/Lato-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _assets/fonts/Lato-regular.ttf
Binary file not shown.
Binary file added _assets/fonts/Lato-regular.woff
Binary file not shown.
Binary file added _assets/fonts/Lato-regular.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions _assets/stylesheets/dark.scss
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ $article-paginator-color-hover: $gray-lightest;
@import "modules/header";
@import "modules/highlights-dark";
@import "modules/icons";
@import "modules/fonts";
1 change: 1 addition & 0 deletions _assets/stylesheets/light.scss
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ $article-paginator-color-hover: $gray-darkest;
@import "modules/header";
@import "modules/highlights-light";
@import "modules/icons";
@import "modules/fonts";
59 changes: 59 additions & 0 deletions _assets/stylesheets/modules/_fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@charset "UTF-8";

/* Cormorant Garamond */
@font-face {
font-family: 'Cormorant Garamond';
font-weight: 500;
font-style: normal;
src: url(asset_path('Cormorant-Garamond-500.eot'));
src: url(asset_path('Cormorant-Garamond-500.eot?#iefix')) format('embedded-opentype'),
local('Cormorant Garamond Medium'),
local('Cormorant-Garamond-500'),
url(asset_path('Cormorant-Garamond-500.woff2')) format('woff2'),
url(asset_path('Cormorant-Garamond-500.woff')) format('woff'),
url(asset_path('Cormorant-Garamond-500.ttf')) format('truetype'),
url(asset_path('Cormorant-Garamond-500.svg#CormorantGaramond')) format('svg');
}

/*Lato*/
@font-face {
font-family: 'Lato';
font-weight: 300;
font-style: normal;
src: url(asset_path('Lato-300.eot'));
src: url(asset_path('Lato-300.eot?#iefix')) format('embedded-opentype'),
local('Lato Light'),
local('Lato-300'),
url(asset_path('Lato-300.woff2')) format('woff2'),
url(asset_path('Lato-300.woff')) format('woff'),
url(asset_path('Lato-300.ttf')) format('truetype'),
url(asset_path('Lato-300.svg#Lato')) format('svg');
}

@font-face {
font-family: 'Lato';
font-weight: 400;
font-style: normal;
src: url(asset_path('Lato-regular.eot'));
src: url(asset_path('Lato-regular.eot?#iefix')) format('embedded-opentype'),
local('Lato Regular'),
local('Lato-regular'),
url(asset_path('Lato-regular.woff2')) format('woff2'),
url(asset_path('Lato-regular.woff')) format('woff'),
url(asset_path('Lato-regular.ttf')) format('truetype'),
url(asset_path('Lato-regular.svg#Lato')) format('svg');
}

@font-face {
font-family: 'Lato';
font-weight: 700;
font-style: normal;
src: url(asset_path('Lato-700.eot'));
src: url(asset_path('Lato-700.eot?#iefix')) format('embedded-opentype'),
local('Lato Bold'),
local('Lato-700'),
url(asset_path('Lato-700.woff2')) format('woff2'),
url(asset_path('Lato-700.woff')) format('woff'),
url(asset_path('Lato-700.ttf')) format('truetype'),
url(asset_path('Lato-700.svg#Lato')) format('svg');
}
Empty file modified _config.yml
100644 → 100755
Empty file.
9 changes: 0 additions & 9 deletions _includes/javascripts.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ['Cormorant Garamond:700', 'Lato:300,400,700']
}
});
</script>

{% if site.ga_analytics %}
<script>
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
Expand Down

0 comments on commit 6c144d7

Please sign in to comment.