diff options
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index d148811..e811e33 100644 --- a/templates/base.html +++ b/templates/base.html @@ -126,6 +126,16 @@ {% endif %} {% endif %} + {% if config.extra.fonts_load %} + {% for i in config.extra.fonts %} + {% if 'http' in i.url %} + <link rel="preload" href="{{ i.url | safe }}" as="style"> + {% else %} + <link rel="preload" href="{{ get_url(path=i.url, trailing_slash=false, cachebust=true) }}" as="style"> + {% endif %} + {% endfor %} + {% endif %} + {% if config.build_search_index %} <script defer type="text/javascript" src="{{ get_url(path="search_index.en.js", trailing_slash=false, cachebust=true) | safe }}"></script> <script defer type="text/javascript" src="{{ get_url(path="search.min.js", trailing_slash=false, cachebust=true) | safe }}"></script> |
