Add the possibility to selfhost fonts

If `HOST_FONTS` is set to `True`, then fonts will be served directly and
not fetched from Google Fonts service.

See #118 for more context.
This commit is contained in:
Phyks (Lucas Verney) 2017-06-02 15:37:44 -04:00
parent 816449c15c
commit 89141fa644
14 changed files with 101 additions and 1 deletions

View file

@ -7,7 +7,11 @@
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
<head>
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
{% if HOST_FONTS %}
<link href='{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/fonts.css' rel='stylesheet' type='text/css'>
{% else %}
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
{% endif %}
{% if USE_LESS %}
<link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less">