mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Remove prerender from lang page versions.
This commit is contained in:
parent
e2a6a38ef5
commit
e63fdad9ce
5 changed files with 10 additions and 8 deletions
|
|
@ -6,7 +6,9 @@
|
||||||
import * as m from "$paraglide/messages";
|
import * as m from "$paraglide/messages";
|
||||||
|
|
||||||
$: pathname = $page.url.pathname;
|
$: pathname = $page.url.pathname;
|
||||||
|
$: console.log('pathname', pathname)
|
||||||
$: lang = languageTag();
|
$: lang = languageTag();
|
||||||
|
$: console.log('lang', lang);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<header aria-label="header navigation">
|
<header aria-label="header navigation">
|
||||||
|
|
@ -14,23 +16,23 @@
|
||||||
<a href='/' class:active={pathname === '/'}>{m.nav_home()}</a>
|
<a href='/' class:active={pathname === '/'}>{m.nav_home()}</a>
|
||||||
<a
|
<a
|
||||||
href={`/${lang}/${m.nav_about_link()}`}
|
href={`/${lang}/${m.nav_about_link()}`}
|
||||||
class:active={pathname === `/${m.nav_about_link()}`}
|
class:active={pathname === `/${lang}/${m.nav_about_link()}`}
|
||||||
>
|
>
|
||||||
{m.nav_about()}
|
{m.nav_about()}
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href={`/${lang}/${m.nav_portfolio_link()}`}
|
href={`/${lang}/${m.nav_portfolio_link()}`}
|
||||||
class:active={pathname === `/${m.nav_portfolio_link()}`}
|
class:active={pathname === `/${lang}/${m.nav_portfolio_link()}`}
|
||||||
>
|
>
|
||||||
{m.nav_portfolio()}
|
{m.nav_portfolio()}
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href={`/${lang}/${m.nav_uses_link()}`}
|
href={`/${lang}/${m.nav_uses_link()}`}
|
||||||
class:active={pathname === `/${m.nav_uses_link()}`}
|
class:active={pathname === `/${lang}/${m.nav_uses_link()}`}
|
||||||
>
|
>
|
||||||
{m.nav_uses()}
|
{m.nav_uses()}
|
||||||
</a>
|
</a>
|
||||||
<select on:change={(e) => goto(translatePath(pathname, e?.target?.value)) }>
|
<select on:change={(e) => goto(translatePath(pathname, e?.target?.value))}>
|
||||||
{#each availableLanguageTags as lang}
|
{#each availableLanguageTags as lang}
|
||||||
<option value={lang} selected={lang === languageTag()}>{lang}</option>
|
<option value={lang} selected={lang === languageTag()}>{lang}</option>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const prerender = true;
|
// export const prerender = true;
|
||||||
|
|
||||||
import type { MetaTagsProps } from 'svelte-meta-tags';
|
import type { MetaTagsProps } from 'svelte-meta-tags';
|
||||||
import { PUBLIC_SITE_URL } from '$env/static/public';
|
import { PUBLIC_SITE_URL } from '$env/static/public';
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const prerender = true;
|
// export const prerender = true;
|
||||||
|
|
||||||
import type { MetaTagsProps } from 'svelte-meta-tags';
|
import type { MetaTagsProps } from 'svelte-meta-tags';
|
||||||
import { PUBLIC_SITE_URL } from '$env/static/public';
|
import { PUBLIC_SITE_URL } from '$env/static/public';
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const prerender = true;
|
// export const prerender = true;
|
||||||
|
|
||||||
import type { MetaTagsProps } from 'svelte-meta-tags';
|
import type { MetaTagsProps } from 'svelte-meta-tags';
|
||||||
import { PUBLIC_SITE_URL } from '$env/static/public';
|
import { PUBLIC_SITE_URL } from '$env/static/public';
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const prerender = true;
|
// export const prerender = true;
|
||||||
|
|
||||||
import type { MetaTagsProps } from 'svelte-meta-tags';
|
import type { MetaTagsProps } from 'svelte-meta-tags';
|
||||||
import { PUBLIC_SITE_URL } from '$env/static/public';
|
import { PUBLIC_SITE_URL } from '$env/static/public';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue