🐛 fix: allow for relative paths everywhere

Allows hosting the page on subdirectories.
This commit is contained in:
welpo
2023-02-03 19:03:40 +01:00
parent 1c69169ef0
commit 049df81d6c
4 changed files with 9 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
{%- if config.extra.socials %}
{% for social in config.extra.socials %}
<a rel="noopener noreferrer" target="_blank" class="nav-links social" href="{{ social.url }}">
<img alt={{ social.name }} title={{ social.name }} src="/social_icons/{{ social.icon }}.svg">
<img alt={{ social.name }} title={{ social.name }} src="{{config.base_url}}/social_icons/{{ social.icon }}.svg">
</a>
{% endfor %}
{% endif %}