Skip to content

Commit

Permalink
an attempt is being made
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jan 20, 2024
1 parent 9cde3f9 commit b09069d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 34 deletions.
23 changes: 12 additions & 11 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/icons/apple-touch-icon.png">
<link rel="mask-icon" href="%sveltekit.assets%/icons/safari-pinned-tab.svg" color="#6f1d17">
<!-- #endregion -->
<!-- #region Various Embed Measures -->
<meta name="description" content="A suite of tools and information for Pathfinder 2nd Edition." />
<meta property="og:title" content="pf2ools" />
<meta property="og:description" content="A suite of tools and information for Pathfinder 2nd Edition." />
<meta property="og:image" content="%sveltekit.assets%/icons/android-chrome-512x512.png" />
<meta property="og:image:alt" content="The logo of pf2ools on a red background." />
<meta name="twitter:creator" content="@ThatVauxs" />
<meta name="twitter:site" content="@Pf2eTools" />
<!-- #endregion -->

<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="msapplication-TileColor" content="#6f1d17">
<meta name="theme-color" content="#6f1d17">
<meta name="viewport" content="width=device-width" />
%sveltekit.head%

<!-- #region Various Embed Measures -->
<meta name="theme-color" content="#6f1d17">
<meta name="msapplication-TileColor" content="#6f1d17">
<meta name="twitter:creator" content="@ThatVauxs" />
<meta name="twitter:site" content="@Pf2eTools" />
<meta property="og:image" content="%sveltekit.assets%/icons/android-chrome-512x512.png" />
<meta property="og:image:alt" content="The logo of pf2ools on a red background." />
<meta property="og:description" content="A suite of tools and information for Pathfinder 2nd Edition." />
<meta name="description" content="A suite of tools and information for Pathfinder 2nd Edition." />
<meta property="og:title" content="pf2ools" />
<!-- #endregion -->
</head>
<body data-sveltekit-preload-data="hover" data-theme="CoreRed">
<noscript>
Expand Down
21 changes: 21 additions & 0 deletions src/routes/backgrounds/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { EntryGenerator, PageServerLoad } from './$types';
import { CF_PAGES, SEO } from '$env/static/private';

export const load: PageServerLoad = ({ url }) => {
const hash = url.pathname.split('/').slice(2).join('/');
return {
hash,
goto: url.pathname.split('/').slice(0, 2).join('/') + '#' + hash,
};
};

export const entries: EntryGenerator = async () => {
return [
{
slug: "Abadar's Avenger_FRP0",
},
];
};

export const prerender = CF_PAGES || SEO ? 'auto' : false;
export const ssr = true;
14 changes: 14 additions & 0 deletions src/routes/backgrounds/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script lang="ts">
import type { PageData } from './$types';
import { goto } from '$app/navigation';
export let data: PageData;
goto(data.goto);
</script>

<svelte:head>
<meta name="description" content={data.hash} />
<meta name="og:description" content={data.hash} />
<meta property="og:title" content={data.hash} />
</svelte:head>
23 changes: 0 additions & 23 deletions src/routes/backgrounds/[slug]/+server.ts

This file was deleted.

0 comments on commit b09069d

Please sign in to comment.