🐛 fix: remove duplicate social images; allow relative paths in socials

- Remove duplicate files in social_icons folder
- Allow relative paths in socials section (footer)
- Add more socials in default config
This commit is contained in:
welpo
2023-02-04 12:56:55 +01:00
parent 381eceaf08
commit 339f818cfb
9 changed files with 11 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
<nav class="socials nav-navs">
{%- if config.extra.socials %}
{% for social in config.extra.socials %}
<a rel="noopener noreferrer" target="_blank" class="nav-links social" href="{{ social.url }}">
<a rel="noopener noreferrer" target="_blank" class="nav-links social" href={{ social.url | safe | replace(from="$BASE_URL", to=config.base_url) }}>
<img alt={{ social.name }} title={{ social.name }} src="{{config.base_url}}/social_icons/{{ social.icon }}.svg">
</a>
{% endfor %}