mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-13 20:06:35 +02:00
footer: use variable instead of absolute link for RSS feed
This commit is contained in:
parent
98dd202081
commit
faf57f6556
@ -11,7 +11,7 @@
|
||||
- name: Library
|
||||
url: library
|
||||
- name: RSS Feed
|
||||
url: https://getmonero.org/feed.xml
|
||||
url: rss
|
||||
- title: IRC Channels
|
||||
subfolderitems:
|
||||
- name: monero
|
||||
|
@ -8,11 +8,13 @@
|
||||
{% for entry in item.subfolderitems %}
|
||||
{% if entry.url contains 'https://' %}
|
||||
<li><a class="white" href="{{ entry.url }}">{{ entry.name }}</a></li>
|
||||
{%elsif entry.url contains 'irc'%}
|
||||
{% elsif entry.url contains 'irc' %}
|
||||
<li><a class="white" href="{{ entry.url }}">{{ entry.name }}</a></li>
|
||||
{%else%}
|
||||
<li><a class="white" href="{{site.baseurl}}/{{ entry.url }}">{{ entry.name }}</a></li>
|
||||
{%endif%}
|
||||
{% elsif entry.url == 'rss' %}
|
||||
<li><a class="white" href="{{ site.baseurl_root }}/feed.xml">{{ entry.name }}</a></li>
|
||||
{% else %}
|
||||
<li><a class="white" href="{{ site.baseurl }}/{{ entry.url }}">{{ entry.name }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
@ -24,9 +26,9 @@
|
||||
<ul class="list-unstyled list-inline">
|
||||
{% for item in site.data.lang[site.lang].footer-2 %}
|
||||
{% if item.url contains 'https://' %}
|
||||
<li><a href="{{item.url}}" class="white footer-link">{{item.name}}</a></li>
|
||||
<li><a href="{{ item.url }}" class="white footer-link">{{item.name}}</a></li>
|
||||
{%else%}
|
||||
<li><a href="{{site.baseurl}}/{{item.url}}" class="white footer-link">{{item.name}}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/{{ item.url }}" class="white footer-link">{{item.name}}</a></li>
|
||||
{%endif%}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user