Skip to content

Commit

Permalink
refactor: set default meta/title in app.html
Browse files Browse the repository at this point in the history
  • Loading branch information
slashtechno committed Feb 16, 2025
1 parent d8b74a0 commit 87089d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions frontend/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- If added to the homescreen, the web app will launch in fullscreen on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes" />

<title>Podium</title>
<meta name="description" content="Podium" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" class="base-200">
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@
<svelte:head>
{#if page.data.title}
<title>{page.data.title} | Podium</title>
{:else}
<title>Podium</title>
{/if}
{#if page.data.meta}
{#each page.data.meta as { name, content }}
<meta {name} {content} />
{/each}
{:else}
<meta name="description" content="Podium" />
{/if}
</svelte:head>

Expand Down

0 comments on commit 87089d4

Please sign in to comment.