feat: change icons path

This commit is contained in:
st1020 2023-10-22 19:34:00 +08:00
parent fca98a89e7
commit f5faa23856
13 changed files with 26 additions and 73 deletions

View file

@ -41,7 +41,7 @@
{% if config.extra.profile.social %}
<!---->
{% for social in config.extra.profile.social %}
<link rel="preload" as="image" href="{{ get_url(path=social.name ~ `.svg`) }}" />
<link rel="preload" as="image" href="{{ get_url(path=`icons/` ~ social.name ~ `.svg`) }}" />
{% endfor %}
<!---->
{% endif %}
@ -49,7 +49,7 @@
{% endif %}
<!-- Dark Icon -->
<link rel="preload" as="image" href="{{ get_url(path=`theme.svg`) }}" />
<link rel="preload" as="image" href="{{ get_url(path=`icons/` ~ `theme.svg`) }}" />
<!-- Math -->
{% if page.extra.math | default(value=config.extra.math) %}

View file

@ -6,7 +6,7 @@
<div class="flex items-center">
<a class="text-2xl font-semibold" href="{{ get_url(path=``) }}">{{ config.title }}</a>
<div
class="btn-dark ml-4 h-6 w-6 shrink-0 cursor-pointer text-[0] [background:url(./theme.svg)_left_center/cover_no-repeat] dark:invert dark:[background-position:right]"
class="btn-dark ml-4 h-6 w-6 shrink-0 cursor-pointer text-[0] [background:url(./icons/theme.svg)_left_center/cover_no-repeat] dark:invert dark:[background-position:right]"
role="button"
aria-label="Dark"
></div>