🐛 fix: remove flashing from header text (Firefox)

Loads a subset of the sans-serif font for the header.

Fixes #75
This commit is contained in:
welpo
2023-04-29 15:11:13 +02:00
parent 1c06c99047
commit a5981e6fdd
13 changed files with 218 additions and 16 deletions

View File

@@ -8,7 +8,7 @@
{% import "macros/format_date.html" as macros_format_date %}
<!DOCTYPE html>
<html lang = "en">
<html lang="{{ lang }}">
{% include "partials/header.html" %}
<body>

View File

@@ -14,6 +14,17 @@
{# RSS #}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml",
trailing_slash=false) }}">
{# CSS #}
{# Load subset of glyphs for header. Avoids flashing issue in Firefox #}
{% if config.extra.custom_subset == true %}
<link rel="stylesheet" href={{ get_url(path="custom_subset.css" ) }}>
{% elif lang == 'en' %}
<link rel="stylesheet" href={{ get_url(path="inter_subset_en.css" ) }}>
{% elif lang == 'es' %}
<link rel="stylesheet" href={{ get_url(path="inter_subset_es.css" ) }}>
{% endif %}
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="main.css" ) }} />
{% if config.extra.stylesheets %}