Skip to content

Commit

Permalink
testing preview.png 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tkachuk committed Feb 1, 2024
1 parent c272971 commit 077ebed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 10 additions & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
<html lang="en">
<head>
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="preload" href="%sveltekit.assets%/preview.png" as="fetch" />
<link
rel="preload"
href="%sveltekit.assets%/preview.png"
as="fetch"
/>
<link rel="image_src" href="%sveltekit.assets%/preview.png" />
<meta
property="og:image"
content="%sveltekit.assets%/preview.png"
/>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
Expand Down
5 changes: 1 addition & 4 deletions src/lib/components/SEO/index.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { data, defaultImage } from '$lib/utils/config';
import { data } from '$lib/utils/config';
import { schema } from '$lib/utils/schema';
</script>

Expand All @@ -8,8 +8,6 @@

<!-- links -->
<link rel="canonical" href={data.siteUrl} />
<!-- <link rel="preload" href={defaultImage} as="fetch" /> -->
<link rel="image_src" href={defaultImage} />
<link href="https://github.com/imhul" rel="me" />
<link rel="webmention" href={data.webmention} />
<link rel="pingback" href={data.pingback} />
Expand Down Expand Up @@ -44,7 +42,6 @@
<meta property="og:url" content={data.siteUrl} />
<meta property="og:title" content={data.description} />
<meta property="og:description" content={data.description} />
<meta property="og:image" content={defaultImage} />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />
<meta property="og:image:alt" content={data.description} />
Expand Down
2 changes: 0 additions & 2 deletions src/lib/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ export const data = {
gitHub: 'https://github.com/imhul',
googleId: 'GDG6jgEQmYmiM4K97vTzvksOLC97pq7b7f_8G0RIq8Y'
};

export const defaultImage = data.siteUrl + '/preview.png';

0 comments on commit 077ebed

Please sign in to comment.