Preload more CSS

pull/1/head
mat ess 2022-10-16 22:49:16 -04:00
parent cfbdd32619
commit 9903200053
1 changed files with 6 additions and 4 deletions

View File

@ -25,11 +25,13 @@
href="{{ get_url(path='atom.xml', trailing_slash=false) }}"> href="{{ get_url(path='atom.xml', trailing_slash=false) }}">
{# Theme #} {# Theme #}
<link rel="stylesheet" type="text/css" href="{{ get_url(path='style/theme/light.css', cachebust=true) }}" /> <link rel="stylesheet preload" as="style" type="text/css"
<link rel="stylesheet" type="text/css" href="{{ get_url(path='style/theme/dark.css', cachebust=true) }}" href="{{ get_url(path='style/theme/light.css', cachebust=true) }}" />
media="(prefers-color-scheme: dark)" /> <link rel="stylesheet preload" as="style" type="text/css"
href="{{ get_url(path='style/theme/dark.css', cachebust=true) }}" media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ get_url(path='style/main.css', cachebust=true) }}" /> <link rel="stylesheet preload" as="style" type="text/css" media="screen"
href="{{ get_url(path='style/main.css', cachebust=true) }}" />
{% if config.extra.stylesheets %} {% if config.extra.stylesheets %}
{% for stylesheet in config.extra.stylesheets %} {% for stylesheet in config.extra.stylesheets %}