From ced25bdf3b9e594157ce663ba2193a300e172785 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 10 Jan 2025 14:17:26 +0100 Subject: [PATCH] Refactored to accounts --- app/config.yaml | 151 ++++++++++++++-------------- app/utils/configuration_resolver.py | 3 +- 2 files changed, 78 insertions(+), 76 deletions(-) diff --git a/app/config.yaml b/app/config.yaml index e1e4d14..c76d161 100644 --- a/app/config.yaml +++ b/app/config.yaml @@ -1,4 +1,80 @@ --- +accounts: + name: Accounts + description: Me on other plattforms + icon: + class: fa-solid fa-external-link-alt + subitems: + - name: Meta + description: Social and developer networks + icon: + class: fa-brands fa-meta + url: + subitems: + - name: Instagram + description: Follow me on Instagram + icon: + class: fa-brands fa-instagram + url: https://www.instagram.com/kevinveenbirkenbach/ + - name: Facebook + description: Like my Facebook page + icon: + class: fa-brands fa-facebook + url: https://www.facebook.com/kevinveenbirkenbach + - link: navigation.header.contact.messenger + - name: Carreer Profiles + icon: + class: fa-solid fa-user-tie + subitems: + - name: XING + description: Visit my XING profile + icon: + class: bi bi-building + url: https://www.xing.com/profile/Kevin_VeenBirkenbach + subitems: [] + - name: LinkedIn + description: Connect on LinkedIn + icon: + class: bi bi-linkedin + url: https://www.linkedin.com/in/kevinveenbirkenbach + subitems: [] + - name: Sports + description: My sport activities + icon: + class: fa-solid fa-running + url: + subitems: + - name: Garmin + description: My Garmin activities + icon: + class: fa-solid fa-person-running + url: https://s.veen.world/garmin + subitems: [] + - name: Eversports + description: My Eversports sessions + icon: + class: fa-solid fa-dumbbell + url: https://s.veen.world/eversports + subitems: [] + - name: Duolingo + description: Learn with me on Duolingo + icon: + class: fa-solid fa-language + url: https://www.duolingo.com/profile/kevinbirkenbach + subitems: [] + - name: Spotify + description: Listen to my playlists + icon: + class: fa-brands fa-spotify + url: https://open.spotify.com/user/31vebfzbjf3p7oualis76qfpr5ty + subitems: [] + - name: Patreon + description: Support me on Patreon + icon: + class: fa-brands fa-patreon + url: https://patreon.com/kevinveenbirkenbach + subitems: [] + cards: - icon: source: https://cloud.veen.world/s/logo_agile_coach_512x512/download @@ -251,80 +327,7 @@ navigation: - link: navigation.header.contact.messenger.telegram footer: - - name: Accounts - description: Me on other plattforms - icon: - class: fa-solid fa-external-link-alt - subitems: - - name: Meta - description: Social and developer networks - icon: - class: fa-brands fa-meta - url: - subitems: - - name: Instagram - description: Follow me on Instagram - icon: - class: fa-brands fa-instagram - url: https://www.instagram.com/kevinveenbirkenbach/ - - name: Facebook - description: Like my Facebook page - icon: - class: fa-brands fa-facebook - url: https://www.facebook.com/kevinveenbirkenbach - - link: navigation.header.contact.messenger - - name: Carreer Profiles - icon: - class: fa-solid fa-user-tie - subitems: - - name: XING - description: Visit my XING profile - icon: - class: bi bi-building - url: https://www.xing.com/profile/Kevin_VeenBirkenbach - subitems: [] - - name: LinkedIn - description: Connect on LinkedIn - icon: - class: bi bi-linkedin - url: https://www.linkedin.com/in/kevinveenbirkenbach - subitems: [] - - name: Sports - description: My sport activities - icon: - class: fa-solid fa-running - url: - subitems: - - name: Garmin - description: My Garmin activities - icon: - class: fa-solid fa-person-running - url: https://s.veen.world/garmin - subitems: [] - - name: Eversports - description: My Eversports sessions - icon: - class: fa-solid fa-dumbbell - url: https://s.veen.world/eversports - subitems: [] - - name: Duolingo - description: Learn with me on Duolingo - icon: - class: fa-solid fa-language - url: https://www.duolingo.com/profile/kevinbirkenbach - subitems: [] - - name: Spotify - description: Listen to my playlists - icon: - class: fa-brands fa-spotify - url: https://open.spotify.com/user/31vebfzbjf3p7oualis76qfpr5ty - subitems: [] - - name: Patreon - description: Support me on Patreon - icon: - class: fa-brands fa-patreon - url: https://patreon.com/kevinveenbirkenbach - subitems: [] + - link: accounts - name: Community description: My presence in the Fediverse icon: diff --git a/app/utils/configuration_resolver.py b/app/utils/configuration_resolver.py index dfd569b..aed75da 100644 --- a/app/utils/configuration_resolver.py +++ b/app/utils/configuration_resolver.py @@ -24,8 +24,7 @@ class ConfigurationResolver: try: target = self._find_entry(root_config, value.lower(), True) if isinstance(target, list) and len(target) > 2: - target = self._find_entry(root_config, value.lower(), False) - + target = self._find_entry(root_config, value.lower(), False) current_config.clear() current_config.update(target) except Exception as e: