Preload fonts

This commit is contained in:
Gabriel Augendre 2023-03-02 16:42:25 +01:00
parent aa61d02eca
commit 2852dffa3e

View file

@ -19,9 +19,11 @@
<link rel="stylesheet" href="{% static "vendor/newcss.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "vendor/newcss.css" %}" type="text/css">
<link rel="stylesheet" href="{% static "public.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "public.css" %}" type="text/css">
<link rel="stylesheet" href="{% static "admonitions.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "admonitions.css" %}" type="text/css">
<link rel="preload" href="{% static "vendor/fonts/golos-text-vf.woff2" %}" as="font" type="font/woff2">
<link rel="stylesheet" href="{% static "vendor/fonts/golos.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "vendor/fonts/golos.css" %}" type="text/css">
{% if article and article.has_code %} {% if article and article.has_code %}
<link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css">
<link rel="preload" href="{% static "vendor/fonts/fira-code-vf.woff2" %}" as="font" type="font/woff2">
<link rel="stylesheet" href="{% static "vendor/fonts/fira-code.css" %}"> <link rel="stylesheet" href="{% static "vendor/fonts/fira-code.css" %}">
{% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_authenticated %}