* #62 add theme options for title and favicon

* docs

* version bump
This commit is contained in:
2022-10-27 17:26:56 +02:00
committed by GitHub
parent c40f009523
commit 67d4f09bd7
9 changed files with 31 additions and 15 deletions

View File

@@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%

View File

@@ -9,6 +9,8 @@ export type Status = {
allow_advanced: boolean
theme_image: string
theme_text: string
theme_favicon: string
theme_page_title: string
}
export const status = writable<null | Status>(null)

View File

@@ -5,7 +5,7 @@
import '../app.css'
import { init as initStores } from '$lib/stores/status'
import { init as initStores, status } from '$lib/stores/status'
import Footer from '$lib/views/Footer.svelte'
import Header from '$lib/views/Header.svelte'
@@ -15,7 +15,8 @@
</script>
<svelte:head>
<title>cryptgeon</title>
<title>{$status?.theme_page_title || 'cryptgeon'}</title>
<link rel="icon" href={$status?.theme_favicon || '/favicon.png'} />
</svelte:head>
{#await waitLocale() then _}