Permalink
Browse files

style: load Font Awesome via CDN

  • Loading branch information...
MOxFIVE committed Apr 15, 2016
1 parent aeff547 commit 0c7a3e95a54699988ba37d495f2338ee14a7e33c
Showing with 1 addition and 23 deletions.
  1. +1 −1 layout/_partial/head.ejs
  2. +0 −2 source/css/_variables.styl
  3. +0 −20 source/css/style.styl
View
@@ -42,7 +42,7 @@
<% if (is_home() && theme.animate){ %>
<style> .article { opacity: 0;} </style>
<% } %>
<%- css('font-awesome/css/font-awesome.min') %>
<%- css('//cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css') %>
<link rel="apple-touch-icon" href="<%- theme.root_url %>/apple-touch-icon.png">
<% if (is_home()){ %>
<% if (theme.baidu_site) { %>
@@ -24,8 +24,6 @@ font-sans = "Lucida Grande", Verdana, "Helvetica Neue", Arial, sans-serif
font-serif = Times, Georgia, serif
font-mono = Menlo, Consolas, "Source Code Pro", Inconsolata, Monaco, monospace
font-icon = FontAwesome
font-icon-path = "font-awesome/fonts/fontawesome-webfont"
font-icon-version = "4.5.0"
base-font-size = hexo-config("base_font_size")px
font-size = 14px
line-height = 1.6em
View
@@ -3,14 +3,6 @@
@import "_util/mixin"
@import "_util/grid"
@font-face {
font-family:'FontAwesome';
src:url("fonts/fontawesome-webfont.eot");
src:url("fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"),url("fonts/fontawesome-webfont.woff") format("woff"),url("fonts/fontawesome-webfont.ttf") format("truetype"),url("fonts/fontawesome-webfont.svgz#FontAwesomeRegular") format("svg"),url("fonts/fontawesome-webfont.svg#FontAwesomeRegular") format("svg");
font-weight:normal;
font-style:normal
}
global-reset()
ol{
@@ -27,18 +19,6 @@ input, button
border: 0
padding: 0
@font-face
font-family: FontAwesome
font-style: normal
font-weight: normal
src: url(font-icon-path + ".eot?v=#" + font-icon-version)
src: url(font-icon-path + ".eot?#iefix&v=#" + font-icon-version) format("embedded-opentype"),
url(font-icon-path + ".woff?v=#" + font-icon-version) format("woff"),
url(font-icon-path + ".ttf?v=#" + font-icon-version) format("truetype"),
url(font-icon-path + ".svg#fontawesomeregular?v=#" + font-icon-version) format("svg")
//html, body, #container
// height: 100%
html
font-size base-font-size

0 comments on commit 0c7a3e9

Please sign in to comment.