Browse Source

Load webfonts in HTML to improve loading time

nat64
Silke 4 years ago
parent
commit
31cfd915b9
  1. 3
      layouts/partials/head.html
  2. 4
      static/css/styles.less

3
layouts/partials/head.html

@ -3,6 +3,9 @@
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg"/>
<link rel="alternate icon" type="image/png" href="/images/favicon.png">
<link rel="stylesheet" href="/css/styles.css">
<link rel="stylesheet" href="/fonts/sourcesanspro/sourcesanspro.css">
<link rel="stylesheet" href="/fonts/sourcecodepro/sourcecodepro.css">
<link rel="stylesheet" href="/fonts/raleway/raleway.css">
{{ if .RSSLink -}}
<link href="{{ .RSSLink | relURL }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}">
{{ end -}}

4
static/css/styles.less

@ -19,10 +19,6 @@
@nav_min: @content_min/(100%/@left_side - 1);
@view_max: 48em;
@import "../fonts/sourcesanspro/sourcesanspro.css";
@import "../fonts/sourcecodepro/sourcecodepro.css";
@import "../fonts/raleway/raleway.css";
.transition (@time) {
transition: all @time;
-moz-transition: all @time;

Loading…
Cancel
Save