File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{%- macro get_social_icon(icon) -%}
2
- {%- set meta = get_image_metadata(path="/static/icons/" ~ icon ~ ".svg", allow_missing=true) -%}
2
+ {%- set path = "icons/" ~ icon ~ ".svg" -%}
3
+ {%- set meta = get_image_metadata(path=path, allow_missing=true) -%}
3
4
{%- if meta -%}
4
- {{- get_url(path="icons/" ~ icon ~ ".svg" ) -}}
5
+ {{- get_url(path=path ) -}}
5
6
{%- else -%}
6
7
{{- "https://cdn.jsdelivr.net/npm/simple-icons/icons/" ~ icon ~ ".svg" -}}
7
8
{%- endif -%}
Original file line number Diff line number Diff line change 88
88
{% endif %}
89
89
90
90
<!-- Dark Icon -->
91
- < link rel ="preload " as ="image " href ="{{ get_url(path=`icons/` ~ ` theme.svg`) }} " />
91
+ < link rel ="preload " as ="image " href ="{{ get_url(path=`icons/theme.svg`) }} " />
92
92
93
93
<!-- Math -->
94
94
{% if page.extra.math | default(value=config.extra.math) %}
You can’t perform that action at this time.
0 commit comments