Skip to content

Commit

Permalink
hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TGlide committed Dec 21, 2023
1 parent f52b99c commit 973855e
Show file tree
Hide file tree
Showing 6 changed files with 1,608 additions and 1,299 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Tooltip.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { FloatingConfig } from '@melt-ui/svelte/internal/actions';
import { fly, type FlyParams } from 'svelte/transition';
export let placement: FloatingConfig['placement'] = 'top';
export let placement: NonNullable<FloatingConfig>['placement'] = 'top';
export let disabled = false;
export let closeOnPointerDown = false;
Expand Down
5 changes: 0 additions & 5 deletions src/lib/utils/image.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/lib/utils/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { AuthorData } from '$markdoc/layouts/Author.svelte';
import type { PostsData } from '$markdoc/layouts/Post.svelte';
import type { AuthorData, PostsData } from "$routes/blog/content";

export const DEFAULT_HOST = 'https://website-appwrite.vercel.app';
export const DEFAULT_DESCRIPTION = 'Appwrite is an open-source platform for building applications at any scale, using your preferred programming languages and tools.';
Expand Down
14 changes: 6 additions & 8 deletions src/routes/blog/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<script lang="ts">
import type { AuthorData } from '$markdoc/layouts/Author.svelte';
import type { CategoryData } from '$markdoc/layouts/Category.svelte';
import type { PostsData } from '$markdoc/layouts/Post.svelte';
import { setContext } from 'svelte';
import { setContext } from 'svelte';
import type { AuthorData, CategoryData, PostsData } from './content.js';
export let data;
setContext<PostsData[]>('posts', data.posts);
setContext<AuthorData[]>('authors', data.authors);
setContext<CategoryData[]>('categories', data.categories);
export let data;
setContext<PostsData[]>('posts', data.posts);
setContext<AuthorData[]>('authors', data.authors);
setContext<CategoryData[]>('categories', data.categories);
</script>

<slot />
4 changes: 2 additions & 2 deletions src/routes/blog/+page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { base } from '$app/paths';
import type { AuthorData } from '$markdoc/layouts/Author.svelte';
import type { PostsData } from '$markdoc/layouts/Post.svelte';
import type { AuthorData, PostsData } from './content';


export function load() {
const postsGlob = import.meta.glob('./post/**/*.markdoc', {
Expand Down
Loading

0 comments on commit 973855e

Please sign in to comment.