added blog references

This commit is contained in:
Samuel Philipp 2020-09-20 02:25:23 +02:00
parent c783f5cfc2
commit 1399db1deb
5 changed files with 29 additions and 6 deletions

View file

@ -38,7 +38,7 @@ title: sp-codes
<body>
<div class="d-flex justify-content-start flex-wrap p-2 menu border-bottom">
{%- for entry in collections.all | eleventyNavigation %}
{% if entry.url.includes(locale) %}
{% if not entry.url.startsWith("https") and entry.url.includes(locale) or entry.locale == locale %}
<div {% if entry.url == page.url %} class="active"{% endif %}>
<a href="{{ entry.url | url }}" class="mr-2">
{% if entry.icon %}<span class="fas fa-{{ entry.icon }} mr-2"></span>{% endif %}{{ entry.title }}