diff --git a/src/lib/components/FooterNav.svelte b/src/lib/components/FooterNav.svelte
index 3a5599eb7..a2c81c88d 100644
--- a/src/lib/components/FooterNav.svelte
+++ b/src/lib/components/FooterNav.svelte
@@ -94,68 +94,6 @@
-
- Learn
-
-
-
-
- About
-
-
-
About
- Pricing
- - Company
- Careers
- Heroes
-
diff --git a/src/lib/utils/code.ts b/src/lib/utils/code.ts
index db3dc003d..2f7f27102 100644
--- a/src/lib/utils/code.ts
+++ b/src/lib/utils/code.ts
@@ -58,7 +58,7 @@ const languages = {
css: css
} as const satisfies Record;
-const platformAliases: Record = {
+const platformAliases: Record = {
[Platform.ClientWeb]: 'js',
[Platform.ClientFlutter]: 'dart',
[Platform.ClientAndroidJava]: 'java',
@@ -73,7 +73,9 @@ const platformAliases: Record = {
[Platform.ServerPhp]: 'php',
[Platform.ServerPython]: 'py',
[Platform.ServerRuby]: 'rb',
- [Platform.ServerSwift]: 'swift'
+ [Platform.ServerSwift]: 'swift',
+ vue: 'html',
+ svelte: 'html'
};
Object.entries(languages).forEach(([key, value]) => {
diff --git a/src/lib/utils/references.ts b/src/lib/utils/references.ts
index 704c37db6..7e4186c04 100644
--- a/src/lib/utils/references.ts
+++ b/src/lib/utils/references.ts
@@ -42,7 +42,7 @@ export enum Platform {
ServerSwift = 'server-swift'
}
-export const platformMap: Record = {
+export const platformMap: Record = {
[Platform.ClientApple]: 'Apple',
[Platform.ClientFlutter]: 'Flutter',
[Platform.ClientWeb]: 'Web',
@@ -86,7 +86,9 @@ export const platformMap: Record = {
powershell: 'PowerShell',
cmd: 'CMD',
yaml: 'YAML',
- text: 'Text'
+ text: 'Text',
+ vue: 'Vue',
+ svelte: 'Svelte'
};
export const serviceMap: Record = {
diff --git a/src/markdoc/layouts/Author.svelte b/src/markdoc/layouts/Author.svelte
index 71ef0a0a1..f4a3c3205 100644
--- a/src/markdoc/layouts/Author.svelte
+++ b/src/markdoc/layouts/Author.svelte
@@ -1,7 +1,7 @@
@@ -249,7 +254,7 @@
- {#each posts as post}
+ {#each posts.filter((p) => p.author === author?.slug) as post}
-
+
+
diff --git a/src/markdoc/layouts/Post.svelte b/src/markdoc/layouts/Post.svelte
index 62ce8f0be..00699ff19 100644
--- a/src/markdoc/layouts/Post.svelte
+++ b/src/markdoc/layouts/Post.svelte
@@ -27,7 +27,7 @@
export let category: string;
const authors = getContext('authors');
- const authorData = authors.find((a) => a.name.includes(author));
+ const authorData = authors.find((a) => a.slug === author);
const categoriesList = getContext('categories');
const categories = getValidCategories();
const posts = getContext('posts');
@@ -158,7 +158,7 @@
{#each posts.filter((p) => p.title !== title).slice(0, 3) as post}
- {@const author = authors.find((a) => a.name.includes(post.author))}
+ {@const author = authors.find((a) => a.slug === post.author)}
{#if author}
{
+ const authors = Object.values(authorsGlob).map((authorList) => {
const { frontmatter } = authorList as {
frontmatter: AuthorData;
};
- const name = frontmatter.id ?? frontmatter.name.toLowerCase().replace(' ', '-');
return {
name: frontmatter.name,
+ slug: frontmatter.slug,
role: frontmatter.role,
avatar: frontmatter.avatar,
bio: frontmatter.bio,
twitter: frontmatter.twitter,
linkedin: frontmatter.linkedin,
github: frontmatter.github,
- href: `${base}/blog/author/${frontmatter.name.toLowerCase().replaceAll(' ', '-')}`
+ href: `${base}/blog/author/${frontmatter.slug}`
};
});
- const categories = Object.entries(categoriesGlob).map(([_filepath, categoryList]) => {
+ const categories = Object.values(categoriesGlob).map((categoryList) => {
const { frontmatter } = categoryList as {
frontmatter: CategoryData;
};
@@ -66,7 +66,7 @@ export function load() {
href: `${base}/blog/category/${frontmatter.name.toLowerCase()}`
};
});
-
+ console.log({posts, authors})
return {
posts,
authors,
diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte
index f9ba036e2..031d630fd 100644
--- a/src/routes/blog/+page.svelte
+++ b/src/routes/blog/+page.svelte
@@ -86,7 +86,7 @@
/>
Author’s name
-
Author’s role or bio
+
Author's role or bio