1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-17 09:29:08 +00:00

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
_data
community-hub

View file

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

View file

@ -6,7 +6,7 @@ exclude_community_snippet: true
---
<div class="community-hub">
{% 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">
{% comment %}0 = even (right text), 1 = odd (left text){% endcomment %}
{% assign modulo = forloop.index | modulo: 2 %}