diff --git a/frontend/ui/src/routes/[theme]/+layout.svelte b/frontend/ui/src/routes/[theme]/+layout.svelte index f283e4ee..cd7d72ab 100644 --- a/frontend/ui/src/routes/[theme]/+layout.svelte +++ b/frontend/ui/src/routes/[theme]/+layout.svelte @@ -11,14 +11,22 @@ import { current_theme } from '$lib/stores/themes'; let heading_image = ""; + let current_authors = ""; $: if ($current_theme) { if ($current_exercice && $current_exercice.image) { heading_image = $current_exercice.image; } else { heading_image = $current_theme.image; } + + if ($current_exercice && $current_exercice.authors) { + current_authors = $current_exercice.authors; + } else { + current_authors = $current_theme.authors; + } } else { heading_image = ""; + current_authors = ""; } @@ -44,7 +52,7 @@