mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Removing old SEO component from home and fixing layout defaults vs home page values.
This commit is contained in:
parent
552c194cd9
commit
854241e5da
4 changed files with 9 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { MetaTags } from 'svelte-meta-tags';
|
import { MetaTags, type MetaTagsProps } from 'svelte-meta-tags';
|
||||||
import NProgress from "nprogress";
|
import NProgress from "nprogress";
|
||||||
import 'iconify-icon';
|
import 'iconify-icon';
|
||||||
import { browser } from "$app/environment";
|
import { browser } from "$app/environment";
|
||||||
|
|
@ -28,14 +28,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$: metaTags = {
|
$: metaTags: MetaTagsProps = {
|
||||||
titleTemplate: '%s | Bradley Shellnut',
|
titleTemplate: '%s | Bradley Shellnut',
|
||||||
description: 'My name is Bradley Shellnut and I\'m a Full Stack Software Engineer.',
|
|
||||||
openGraph: {
|
openGraph: {
|
||||||
type: 'website',
|
type: 'website',
|
||||||
titleTemplate: '%s | Bradley Shellnut',
|
titleTemplate: '%s | Bradley Shellnut',
|
||||||
locale: 'en_US',
|
locale: 'en_US',
|
||||||
description: 'My name is Bradley Shellnut and I\'m a Full Stack Software Engineer.',
|
|
||||||
},
|
},
|
||||||
...$page.data.metaTagsChild
|
...$page.data.metaTagsChild
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,15 @@ import { fetchBandcampAlbums } from '$root/lib/util/fetchBandcampAlbums';
|
||||||
export const load: PageServerLoad = async ({ fetch, setHeaders, url }) => {
|
export const load: PageServerLoad = async ({ fetch, setHeaders, url }) => {
|
||||||
const metaTags: MetaTagsProps = Object.freeze({
|
const metaTags: MetaTagsProps = Object.freeze({
|
||||||
title: 'Home',
|
title: 'Home',
|
||||||
description: 'Home page',
|
description: "My name is Bradley Shellnut and I'm a Full Stack Software Engineer.",
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: 'Home',
|
title: 'Home',
|
||||||
description: 'Home page',
|
description: "My name is Bradley Shellnut and I'm a Full Stack Software Engineer.",
|
||||||
url: new URL(url.pathname, url.origin).href,
|
url: new URL(url.pathname, url.origin).href,
|
||||||
siteName: 'Bradley Shellnut Personal Website',
|
siteName: 'Bradley Shellnut Personal Website',
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
url: '/static/b_shell_nut_favicon.png',
|
url: `${new URL(url.origin).href}/b_shell_nut_favicon.gif`,
|
||||||
alt: 'Bradley Shellnut Website Logo'
|
alt: 'Bradley Shellnut Website Logo'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -22,7 +22,7 @@ export const load: PageServerLoad = async ({ fetch, setHeaders, url }) => {
|
||||||
card: 'summary_large_image',
|
card: 'summary_large_image',
|
||||||
title: 'Home',
|
title: 'Home',
|
||||||
description: 'Home page',
|
description: 'Home page',
|
||||||
images: '/static/b_shell_nut_favicon.png',
|
images: `${new URL(url.origin).href}/b_shell_nut_favicon.gif`,
|
||||||
imageAlt: 'Bradley Shellnut Website Logo'
|
imageAlt: 'Bradley Shellnut Website Logo'
|
||||||
},
|
},
|
||||||
url: new URL(url.pathname, url.origin).href
|
url: new URL(url.pathname, url.origin).href
|
||||||
|
|
@ -40,3 +40,4 @@ export const load: PageServerLoad = async ({ fetch, setHeaders, url }) => {
|
||||||
articlesData: (await articles()).json()
|
articlesData: (await articles()).json()
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
// <link rel="icon" type="image/gif" href="/b_shell_nut_favicon.gif" />;
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
$: seoTitle = `Tech Articles - Page ${currentPage} | Bradley Shellnut`;
|
$: seoTitle = `Tech Articles - Page ${currentPage} | Bradley Shellnut`;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SEO title={seoTitle} />
|
<!-- <SEO title={seoTitle} /> -->
|
||||||
|
|
||||||
<div class="pageStyles">
|
<div class="pageStyles">
|
||||||
<h1 style="margin-bottom: 2rem">Favorite Tech Articles</h1>
|
<h1 style="margin-bottom: 2rem">Favorite Tech Articles</h1>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
import PrivacyHardwareSoftware from '$lib/content/uses/privacy-hardware-software.md';
|
import PrivacyHardwareSoftware from '$lib/content/uses/privacy-hardware-software.md';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SEO title="Uses" />
|
<!-- <SEO title="Uses" /> -->
|
||||||
|
|
||||||
<div class="uses">
|
<div class="uses">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue