🐛 fix: proper URL for multilingual rss/atom feeds
This commit is contained in:
parent
c7a411e157
commit
56a3061573
@ -136,9 +136,11 @@ menu = [
|
|||||||
{ name = "projects", url = "projects/" },
|
{ name = "projects", url = "projects/" },
|
||||||
]
|
]
|
||||||
|
|
||||||
# The icons available can be found in "social_icons" in the "static" folder
|
# The RSS icon will be shown if (1) it's enabled and (2) the following variable is set to true.
|
||||||
|
feed_icon = true
|
||||||
|
|
||||||
|
# The icons available can be found in "social_icons" in the "static" folder.
|
||||||
socials = [
|
socials = [
|
||||||
{ name = "atom feed", url = "$BASE_URL/atom.xml", icon = "rss" },
|
|
||||||
{ name = "github", url = "https://github.com/welpo/", icon = "github" },
|
{ name = "github", url = "https://github.com/welpo/", icon = "github" },
|
||||||
{ name = "soundcloud", url = "https://soundcloud.com/oskerwyld", icon = "soundcloud" },
|
{ name = "soundcloud", url = "https://soundcloud.com/oskerwyld", icon = "soundcloud" },
|
||||||
{ name = "instagram", url = "https://instagram.com/oskerwyld", icon = "instagram" },
|
{ name = "instagram", url = "https://instagram.com/oskerwyld", icon = "instagram" },
|
||||||
|
@ -3,6 +3,13 @@
|
|||||||
<nav class="socials nav-navs">
|
<nav class="socials nav-navs">
|
||||||
{%- if config.extra.socials %}
|
{%- if config.extra.socials %}
|
||||||
<ul>
|
<ul>
|
||||||
|
{%- if config.generate_feed and config.extra.feed_icon -%}
|
||||||
|
<li>
|
||||||
|
<a rel="noopener noreferrer" target="_blank" class="nav-links no-hover-padding social" href={{ get_url(path=config.feed_filename, lang=lang, trailing_slash=false) | safe }}>
|
||||||
|
<img alt="atom/rss feed" title="atom/rss feed" src="{{config.base_url}}/social_icons/rss.svg">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
{% for social in config.extra.socials %}
|
{% for social in config.extra.socials %}
|
||||||
<li>
|
<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 | replace(from="$BASE_URL", to=config.base_url) }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user