Skip to content

Commit

Permalink
Optimization: Removed built-in Lato font. #249
Browse files Browse the repository at this point in the history
  • Loading branch information
iissnan committed Jun 26, 2015
1 parent 5e108e0 commit e0809f1
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 46 deletions.
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ scroll_to_more: true
toc_list_number: true


# Use Lato font
# Note: this option is avialable only when the language is not `zh-Hans`
use_font_lato: true


## DO NOT EDIT THE FOLLOWING SETTINGS
## UNLESS YOU KNOW WHAT YOU ARE DOING

Expand Down
4 changes: 4 additions & 0 deletions layout/_partials/head.swig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<link rel="stylesheet" type="text/css" href="{{ url_for(theme.vendors) }}/fancybox/source/jquery.fancybox.css?v=2.1.5"/>
{% endif %}

{% if config.language !== 'zh-Hans' and theme.use_font_lato %}
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
{% endif %}

<link rel="stylesheet" type="text/css" href="{{ url_for(theme.css) }}/main.css?v={{ theme.version }}"/>

{% if config.description %}
Expand Down
45 changes: 0 additions & 45 deletions source/css/_common/_fonts/lato.styl

This file was deleted.

1 change: 0 additions & 1 deletion source/css/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ for $mixin in $mixins


// Fonts
@import "_common/_fonts/lato";
@import "_common/_fonts/icon-font";
@import "_common/_fonts/icon-" + hexo-config('icon_font');

Expand Down
Binary file removed source/fonts/lato/Lato-Bold.eot
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Bold.ttf
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Bold.woff
Binary file not shown.
Binary file removed source/fonts/lato/Lato-BoldItalic.eot
Binary file not shown.
Binary file removed source/fonts/lato/Lato-BoldItalic.ttf
Binary file not shown.
Binary file removed source/fonts/lato/Lato-BoldItalic.woff
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Italic.eot
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Italic.ttf
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Italic.woff
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Regular.eot
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Regular.ttf
Binary file not shown.
Binary file removed source/fonts/lato/Lato-Regular.woff
Binary file not shown.

0 comments on commit e0809f1

Please sign in to comment.