fix: preload image in index.html only

This commit is contained in:
st1020 2023-10-22 18:00:37 +08:00
parent 933cc3efa5
commit 3d08a0057e

View file

@ -31,6 +31,7 @@
} }
</style> </style>
{% if section.path is defined and section.path == "/" %}
<!-- Avatar --> <!-- Avatar -->
{% if config.extra.profile.avatar_url %} {% if config.extra.profile.avatar_url %}
<link rel="preload" as="image" href="{{ config.extra.profile.avatar_url }}" /> <link rel="preload" as="image" href="{{ config.extra.profile.avatar_url }}" />
@ -44,6 +45,8 @@
{% endfor %} {% endfor %}
<!----> <!---->
{% endif %} {% endif %}
<!---->
{% endif %}
<!-- Dark Icon --> <!-- Dark Icon -->
<link rel="preload" as="image" href="{{ get_url(path=`theme.svg`) }}" /> <link rel="preload" as="image" href="{{ get_url(path=`theme.svg`) }}" />