Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function getPersonSchema() {
'@context': 'https://schema.org',
'@type': 'Person',
name: SITE.author,
url: SITE.website,
url: `${SITE.website}/`,
sameAs: Object.values(SITE.social),
};
}
Expand All @@ -79,7 +79,7 @@ export function getOrganizationSchema() {
'@context': 'https://schema.org',
'@type': 'Organization',
name: SITE.title,
url: SITE.website,
url: `${SITE.website}/`,
logo: {
'@type': 'ImageObject',
url: `${SITE.website}/${SITE.ogImage}`,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { render, getEntry } from 'astro:content';
import { getBreadcrumbSchema } from '@/lib/schemas';

const schema = getBreadcrumbSchema([
{ name: 'About', url: new URL('/about', Astro.site).toString() },
{ name: 'About', url: new URL('/about/', Astro.site).toString() },
]);
import { Image } from 'astro:assets';
import profilePhoto from '@/site-assets/profile_photo.png';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/[...slug]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const schemas = [
tags: post.data.tags,
}),
getBreadcrumbSchema([
{ name: 'Blog', url: new URL('/posts', Astro.site).toString() },
{ name: 'Blog', url: new URL('/posts/', Astro.site).toString() },
{ name: post.data.title, url: new URL(Astro.url.pathname, Astro.site).toString() },
]),
];
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SITE } from '@/config';
import { getBreadcrumbSchema } from '@/lib/schemas';

const schema = getBreadcrumbSchema([
{ name: 'Blog', url: new URL('/posts', Astro.site).toString() },
{ name: 'Blog', url: new URL('/posts/', Astro.site).toString() },
]);

const posts = (await getPublishedPosts()).sort(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/tag/[tag]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getStaticPaths = (async () => {
const { tag, posts } = Astro.props;

const schema = getBreadcrumbSchema([
{ name: 'Blog', url: new URL('/posts', Astro.site).toString() },
{ name: 'Blog', url: new URL('/posts/', Astro.site).toString() },
{ name: tag, url: new URL(Astro.url.pathname, Astro.site).toString() },
]);
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SITE } from '@/config';
import { getBreadcrumbSchema } from '@/lib/schemas';

const schema = getBreadcrumbSchema([
{ name: 'Projects', url: new URL('/projects', Astro.site).toString() },
{ name: 'Projects', url: new URL('/projects/', Astro.site).toString() },
]);

const projects = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/[slug]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const project = Astro.props as Props;
const { Content } = await render(project);

const schema = getBreadcrumbSchema([
{ name: 'Projects', url: new URL('/projects', Astro.site).toString() },
{ name: 'Projects', url: new URL('/projects/', Astro.site).toString() },
{ name: project.data.title, url: new URL(Astro.url.pathname, Astro.site).toString() },
]);
---
Expand Down
Loading