Merge pull request #3 from safing/fix/temporarily-disable-community-link

Fix/temporarily disable community link
This commit is contained in:
Dave Gson 2019-07-09 14:26:57 +00:00 committed by GitHub
commit 81f8d1716b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,8 @@
communities:
- text: >
### Safing Community
### Safing Community - CURRENTLY DOWN
Will return asap.
Let's talk - Join our community. Get to know us and our products!
#
image:
@ -9,6 +10,7 @@ communities:
alt: safing community
url: 'https://discourse.safing.community/'
disabled: true
- text: >
### Github

View file

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