Optimized video channels

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-15 02:49:10 +01:00
parent 9f143e39b4
commit ef0d98cdd1
2 changed files with 47 additions and 7 deletions

View File

@ -5,16 +5,38 @@ accounts:
icon: icon:
class: fa-solid fa-users class: fa-solid fa-users
children: children:
- name: channels - name: Channels
description: My publication channels description: My publication channels
icon: icon:
class: fas fa-newspaper class: fas fa-newspaper
children: children:
- name: Microblog - name: Microblogs
description: Read my microblogs description: Read my microblogs
icon:
class: fa-solid fa-pen-nib
children:
- name: Mastodon
description: Follow me on Mastodon
icon: icon:
class: fa-brands fa-mastodon class: fa-brands fa-mastodon
url: https://microblog.veen.world/@kevinveenbirkenbach url: https://microblog.veen.world/@kevinveenbirkenbach
identifier: "@kevinveenbirkenbach@microblog.veen.world"
- name: Twitter
description: Follow me on Twitter
icon:
class: fa-brands fa-twitter
url: https://s.veen.world/twitter
identifier: kevinbirkenbach
warning: I don't use and don't recommend to use X/Twitter. Please use one of my alternatives.
alternatives:
- link: accounts.channels.microblogs.mastodon
- name: Bluesky
description: Follow me on Bluesky
info: Bluesky is not setup yet. Coming soon.
icon:
class: fa-brands fa-bluesky
alternatives:
- link: accounts.channels.microblogs.mastodon
- name: Pictures - name: Pictures
icon: icon:
@ -32,12 +54,28 @@ accounts:
url: https://www.instagram.com/kevinveenbirkenbach/ url: https://www.instagram.com/kevinveenbirkenbach/
identifier: kevinveenbirkenbach identifier: kevinveenbirkenbach
warning: Using software and platforms from the Meta corporation (e.g., Facebook, Instagram, WhatsApp) may compromise your data privacy and digital freedom due to centralized control, extensive data collection practices, and inconsistent moderation policies. These platforms often fail to adequately address harmful content, misinformation, and abuse. warning: Using software and platforms from the Meta corporation (e.g., Facebook, Instagram, WhatsApp) may compromise your data privacy and digital freedom due to centralized control, extensive data collection practices, and inconsistent moderation policies. These platforms often fail to adequately address harmful content, misinformation, and abuse.
alternatives:
- link: accounts.channels.pictures.pixelfed
- name: Videos - name: Videos
description: Watch my videos description: Follow my Video Channels
icon:
class: fa-solid fa-video
children:
- name: Peertube
description: Follow me on Peertube
icon: icon:
class: fa-solid fa-video class: fa-solid fa-video
url: https://s.veen.world/videos url: https://s.veen.world/videos
- name: Youtube
description: Follow me on Youtube
icon:
class: fa-brands fa-youtube
url: https://s.veen.world/youtube
warning: I don't publish videos on Youtube. Please use one of the listed alternatives.
alternatives:
- link: accounts.channels.videos.peertube
- name: Blog - name: Blog
description: Read my blog description: Read my blog

View File

@ -42,6 +42,8 @@ class ConfigurationResolver:
if isinstance(current_config, dict): if isinstance(current_config, dict):
for key, value in list(current_config.items()): for key, value in list(current_config.items()):
if key == "children": if key == "children":
if value is None or not isinstance(value, list):
raise ValueError(f"Expected 'children' to be a list, but got {type(value).__name__} instead.")
for item in value: for item in value:
if "link" in item: if "link" in item:
loaded_link = self._find_entry(root_config, item['link'].lower(), False) loaded_link = self._find_entry(root_config, item['link'].lower(), False)