Solved endif bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-02-19 17:48:15 +01:00
parent d83c7e280f
commit 6f158aa749

View File

@ -22,7 +22,7 @@ accounts:
class: fa-brands fa-mastodon class: fa-brands fa-mastodon
url: "https://{{ person.contact.mastodon.split('@')[2] }}/@{{ person.contact.mastodon.split('@')[1] }}" url: "https://{{ person.contact.mastodon.split('@')[2] }}/@{{ person.contact.mastodon.split('@')[1] }}"
identifier: "{{person.contact.mastodon}}" identifier: "{{person.contact.mastodon}}"
{% end %} {% endif %}
{% if person.contact.bluesky is defined %} {% if person.contact.bluesky is defined %}
- name: Bluesky - name: Bluesky
description: Follow {{ 'our' if person.type == 'legal' else 'my' }} on Bluesky. description: Follow {{ 'our' if person.type == 'legal' else 'my' }} on Bluesky.
@ -31,7 +31,7 @@ accounts:
alternatives: alternatives:
- link: accounts.publishingchannels.microblogs.mastodon - link: accounts.publishingchannels.microblogs.mastodon
identifier: "{{person.contact.bluesky}}" identifier: "{{person.contact.bluesky}}"
{% end %} {% endif %}
{% if person.contact.pixelfed is defined %} {% if person.contact.pixelfed is defined %}
- name: Pictures - name: Pictures
description: Explore {{ 'our' if person.type == 'legal' else 'my' }} photo gallery on Pixelfed. description: Explore {{ 'our' if person.type == 'legal' else 'my' }} photo gallery on Pixelfed.
@ -39,7 +39,7 @@ accounts:
class: fa-solid fa-camera class: fa-solid fa-camera
identifier: "{{person.contact.pixelfed}}" identifier: "{{person.contact.pixelfed}}"
url: "https://{{ person.contact.pixelfed.split('@')[2] }}/@{{ person.contact.pixelfed.split('@')[1] }}" url: "https://{{ person.contact.pixelfed.split('@')[2] }}/@{{ person.contact.pixelfed.split('@')[1] }}"
{% end %} {% endif %}
{% if person.contact.peertube is defined %} {% if person.contact.peertube is defined %}
- name: Peertube - name: Peertube
description: Discover {{ 'our' if person.type == 'legal' else 'my' }} videos on Peertube. description: Discover {{ 'our' if person.type == 'legal' else 'my' }} videos on Peertube.
@ -47,7 +47,7 @@ accounts:
class: fa-solid fa-video class: fa-solid fa-video
identifier: "{{person.contact.peertube}}" identifier: "{{person.contact.peertube}}"
url: "https://{{ person.contact.peertube.split('@')[2] }}/@{{ person.contact.peertube.split('@')[1] }}" url: "https://{{ person.contact.peertube.split('@')[2] }}/@{{ person.contact.peertube.split('@')[1] }}"
{% end %} {% endif %}
{% if person.contact.wordpress is defined %} {% if person.contact.wordpress is defined %}
- name: Blog - name: Blog
description: Read {{ 'our' if person.type == 'legal' else 'my' }} articles and stories. description: Read {{ 'our' if person.type == 'legal' else 'my' }} articles and stories.
@ -55,14 +55,14 @@ accounts:
class: fa-solid fa-blog class: fa-solid fa-blog
identifier: "{{person.contact.wordpress}}" identifier: "{{person.contact.wordpress}}"
url: "https://{{ person.contact.wordpress.split('@')[2] }}/@{{ person.contact.wordpress.split('@')[1] }}" url: "https://{{ person.contact.wordpress.split('@')[2] }}/@{{ person.contact.wordpress.split('@')[1] }}"
{% end %} {% endif %}
{% if person.contact.code is defined %} {% if person.contact.code is defined %}
- name: Code - name: Code
description: Explore {{ 'our' if person.type == 'legal' else 'my' }} code. description: Explore {{ 'our' if person.type == 'legal' else 'my' }} code.
icon: icon:
class: fa-solid fa-code class: fa-solid fa-code
url: "{{person.code}}" url: "{{person.code}}"
{% end %} {% endif %}
{% if person.contact.friendica is defined %} {% if person.contact.friendica is defined %}
- name: Social Networks - name: Social Networks
description: Visit {{ 'our' if person.type == 'legal' else 'my' }} friendica profile description: Visit {{ 'our' if person.type == 'legal' else 'my' }} friendica profile
@ -70,7 +70,7 @@ accounts:
class: fas fa-network-wired class: fas fa-network-wired
identifier: "{{person.contact.friendica}}" identifier: "{{person.contact.friendica}}"
url: "https://{{ person.contact.friendica.split('@')[2] }}/@{{ person.contact.friendica.split('@')[1] }}" url: "https://{{ person.contact.friendica.split('@')[2] }}/@{{ person.contact.friendica.split('@')[1] }}"
{% end %} {% endif %}
- link: navigation.header.contact.messenger - link: navigation.header.contact.messenger
cards: cards:
@ -126,7 +126,7 @@ navigation:
icon: icon:
class: fa-solid fa-envelope class: fa-solid fa-envelope
children: children:
{% end %} {% endif %}
{% if person.contact.email is defined %} {% if person.contact.email is defined %}
- name: Email - name: Email
description: Send {{ 'us' if person.type == 'legal' else 'me' }} an email description: Send {{ 'us' if person.type == 'legal' else 'me' }} an email
@ -136,7 +136,7 @@ navigation:
identifier: {{person.contact.email}} identifier: {{person.contact.email}}
alternatives: alternatives:
- link: navigation.header.contact.messenger.matrix - link: navigation.header.contact.messenger.matrix
{% end %} {% endif %}
{% if person.contact.phone is defined %} {% if person.contact.phone is defined %}
- name: Mobile - name: Mobile
description: Call {{ 'us' if person.type == 'legal' else 'me' }} description: Call {{ 'us' if person.type == 'legal' else 'me' }}
@ -145,14 +145,14 @@ navigation:
url: "tel:{{person.contact.phone}}" url: "tel:{{person.contact.phone}}"
identifier: "{{person.contact.phone}}" identifier: "{{person.contact.phone}}"
target: _top target: _top
{% end %} {% endif %}
{% if person.contact.matrix is defined %} {% if person.contact.matrix is defined %}
- name: Matrix - name: Matrix
description: Chat with {{ 'us' if person.type == 'legal' else 'me' }} on Matrix description: Chat with {{ 'us' if person.type == 'legal' else 'me' }} on Matrix
icon: icon:
class: fa-solid fa-cubes class: fa-solid fa-cubes
identifier: "{{person.contact.matrix}}" identifier: "{{person.contact.matrix}}"
{% end %} {% endif %}
footer: footer:
children: children:
- link: accounts - link: accounts
@ -167,28 +167,28 @@ navigation:
icon: icon:
class: fa-solid fa-users class: fa-solid fa-users
children: children:
{% end %} {% endif %}
{% if "discourse" in group_names %} {% if "discourse" in group_names %}
- name: Forum - name: Forum
description: Join the discussion description: Join the discussion
icon: icon:
class: fa-brands fa-discourse class: fa-brands fa-discourse
url: https://{{domains.discourse}}/ url: https://{{domains.discourse}}/
{% end %} {% endif %}
{% if "moodle" in group_names %} {% if "moodle" in group_names %}
- name: Learning Platform - name: Learning Platform
description: Learn with {{ 'our' if person.type == 'legal' else 'my' }} academy description: Learn with {{ 'our' if person.type == 'legal' else 'my' }} academy
icon: icon:
class: fa-solid fa-graduation-cap class: fa-solid fa-graduation-cap
url: https://{{domains.moodle}}/ url: https://{{domains.moodle}}/
{% end %} {% endif %}
{% if "listmonk" in group_names %} {% if "listmonk" in group_names %}
- name: Newsletter - name: Newsletter
description: Subscribe to {{ 'our' if person.type == 'legal' else 'my' }} newsletter description: Subscribe to {{ 'our' if person.type == 'legal' else 'my' }} newsletter
icon: icon:
class: fa-solid fa-envelope-open-text class: fa-solid fa-envelope-open-text
url: https://{{domains.listmonk}}/subscription/form url: https://{{domains.listmonk}}/subscription/form
{% end %} {% endif %}
{% if "openproject" in group_names %} {% if "openproject" in group_names %}
- name: Project Management - name: Project Management
description: Project Management Tools description: Project Management Tools
@ -200,106 +200,106 @@ navigation:
icon: icon:
class: fa-solid fa-tasks class: fa-solid fa-tasks
url: https://{{domains.openproject}}/ url: https://{{domains.openproject}}/
{% end %} {% endif %}
{% if "taiga" in group_names %} {% if "taiga" in group_names %}
- name: Taiga - name: Taiga
description: View {{ 'our' if person.type == 'legal' else 'my' }} Kanban board description: View {{ 'our' if person.type == 'legal' else 'my' }} Kanban board
icon: icon:
class: bi bi-clipboard2-check-fill class: bi bi-clipboard2-check-fill
url: https://{{domains.taiga}}/ url: https://{{domains.taiga}}/
{% end %} {% endif %}
{% if "snipe_it" in group_names %} {% if "snipe_it" in group_names %}
- name: Snipe IT - name: Snipe IT
description: Manage {{ 'our' if person.type == 'legal' else 'my' }} inventory description: Manage {{ 'our' if person.type == 'legal' else 'my' }} inventory
icon: icon:
class: fas fa-box-open class: fas fa-box-open
url: https://{{domains.snipe_it}}/ url: https://{{domains.snipe_it}}/
{% end %} {% endif %}
- name: Communication - name: Communication
icon: icon:
class: fa-solid fa-comments class: fa-solid fa-comments
children: children:
{% end %} {% endif %}
{% if "matrix" in group_names %} {% if "matrix" in group_names %}
- name: Elements - name: Elements
description: Chat with the world description: Chat with the world
icon: icon:
class: fa-solid fa-comment class: fa-solid fa-comment
url: https://{{domains.matrix_element}}/ url: https://{{domains.matrix_element}}/
{% end %} {% endif %}
{% if "bigbluebutton" in group_names %} {% if "bigbluebutton" in group_names %}
- name: Big Blue Button - name: Big Blue Button
description: Join live events description: Join live events
icon: icon:
class: fa-solid fa-video class: fa-solid fa-video
url: https://{{domains.bigbluebutton}}/ url: https://{{domains.bigbluebutton}}/
{% end %} {% endif %}
{% if "mailu" in group_names %} {% if "mailu" in group_names %}
- name: Mailu - name: Mailu
description: Send{{ 'our' if person.type == 'legal' else 'my' }}a mail description: Send{{ 'our' if person.type == 'legal' else 'my' }}a mail
icon: icon:
class: fa-solid fa-envelope class: fa-solid fa-envelope
url: https://{{domains.mailu}}/ url: https://{{domains.mailu}}/
{% end %} {% endif %}
- name: Administration - name: Administration
icon: icon:
class: fas fa-building class: fas fa-building
children: children:
{% end %} {% endif %}
{% if "matomo" in group_names %} {% if "matomo" in group_names %}
- name: Matomo - name: Matomo
description: Analyze with Matomo description: Analyze with Matomo
icon: icon:
class: fa-solid fa-chart-simple class: fa-solid fa-chart-simple
url: https://{{domains.matomo}}/ url: https://{{domains.matomo}}/
{% end %} {% endif %}
{% if "phpmyadmin" in group_names %} {% if "phpmyadmin" in group_names %}
- name: phpMyAdmin - name: phpMyAdmin
description: Administrate MySQL and MariaDB databases description: Administrate MySQL and MariaDB databases
icon: icon:
class: fas fa-database class: fas fa-database
url: https://{{domains.phpmyadmin}}/ url: https://{{domains.phpmyadmin}}/
{% end %} {% endif %}
{% if "keycloak" in group_names %} {% if "keycloak" in group_names %}
- name: Keycloak - name: Keycloak
description: Manage User via Keycloak description: Manage User via Keycloak
icon: icon:
class: fas fa-user-shield class: fas fa-user-shield
url: https://{{domains.keycloak}}/admin url: https://{{domains.keycloak}}/admin
{% end %} {% endif %}
{% if "ldap" in group_names %} {% if "ldap" in group_names %}
- name: LDAP - name: LDAP
description: Manage LDAP description: Manage LDAP
icon: icon:
class: fas fa-key class: fas fa-key
url: https://{{domains.ldap}}/ url: https://{{domains.ldap}}/
{% end %} {% endif %}
- name: Tools - name: Tools
icon: icon:
class: fas fa-tools class: fas fa-tools
children: children:
{% end %} {% endif %}
{% if "baserow" in group_names %} {% if "baserow" in group_names %}
- name: Baserow - name: Baserow
description: Organize with Baserow description: Organize with Baserow
icon: icon:
class: fa-solid fa-table class: fa-solid fa-table
url: https://{{domains.baserow}}/ url: https://{{domains.baserow}}/
{% end %} {% endif %}
{% if "yourls" in group_names %} {% if "yourls" in group_names %}
- name: Yourls - name: Yourls
description: Create Shortlinks description: Create Shortlinks
icon: icon:
class: bi bi-link class: bi bi-link
url: https://{{domains.yourls}}/admin/ url: https://{{domains.yourls}}/admin/
{% end %} {% endif %}
{% if "nextcloud" in group_names %} {% if "nextcloud" in group_names %}
- name: Nextcloud - name: Nextcloud
description: Access your cloud storage description: Access your cloud storage
icon: icon:
class: fa-solid fa-cloud class: fa-solid fa-cloud
url: https://{{domains.nextcloud}}/ url: https://{{domains.nextcloud}}/
{% end %} {% endif %}
- name: Imprint - name: Imprint
description: Check out the imprint information description: Check out the imprint information
icon: icon: