feat: optional trailing slash in menu links

Enabled by default.

Drops the `$BASE_URL` transformation to avoid confusion (#99).
This commit is contained in:
welpo 2023-08-01 14:11:05 +02:00
parent ae47f79d9d
commit f9c18b0398
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 7 additions and 6 deletions

View file

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