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:
parent
816449c15c
commit
89141fa644
14 changed files with 101 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue