Hotfix community hub

This commit is contained in:
Astralof 2018-09-21 12:43:01 +02:00
parent 4be098ed2f
commit 1a73f3a6a0
2 changed files with 2 additions and 1 deletions

View file

@ -56,3 +56,4 @@ communities:
icon: huge rss icon icon: huge rss icon
alt: blog alt: blog
url: /blog/ url: /blog/
internal: true

View file

@ -6,7 +6,7 @@ exclude_community_snippet: true
--- ---
<div class="community-hub"> <div class="community-hub">
{% for pitch in site.data.community_hub.communities %} {% for pitch in site.data.community_hub.communities %}
<a href="{{ pitch.url }}"{% if pitch.pending %}{% else %} target="_blank"{% endif %}> <a{% unless pitch.pending %} href="{{ pitch.url }}"{% unless pitch.internal %} target="_blank"{% endunless %}{% endunless %}>
<div class="ui basic segment"> <div class="ui basic segment">
{% comment %}0 = even (right text), 1 = odd (left text){% endcomment %} {% comment %}0 = even (right text), 1 = odd (left text){% endcomment %}
{% assign modulo = forloop.index | modulo: 2 %} {% assign modulo = forloop.index | modulo: 2 %}