Skip to content

Commit c8fc40f

Browse files
Merge branch 'main' into 1950-Search-bar-UI
2 parents b31e58b + 61a19d0 commit c8fc40f

File tree

85 files changed

+2932
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2932
-219
lines changed

pnpm-lock.yaml

Lines changed: 54 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/BlogCta.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</script>
88

99
<div
10-
class="bg relative mt-12 -mb-16 flex min-h-[12rem] items-center justify-center overflow-hidden border-t border-[hsl(var(--web-color-subtle))] py-12"
10+
class="bg relative mt-12 -mb-6 flex min-h-[12rem] items-center justify-center overflow-hidden border-t border-[hsl(var(--web-color-subtle))] py-12"
1111
>
1212
<div class="flex max-w-3xs flex-col items-center justify-center gap-5 text-center">
1313
<h2 class="text-label text-primary font-aeonik-pro">{heading}</h2>

src/lib/layouts/SidebarNavButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class="web-side-nav-button flex size-10 w-full items-center rounded-lg p-2 whitespace-nowrap"
1010
class:is-selected={page.url?.pathname === groupItem.href}
1111
href={groupItem.href}
12-
target={groupItem.openInNewTab ? '_blank' : '_self'}
12+
target={groupItem.openInNewTab ? '_blank' : undefined}
1313
>
1414
{#if groupItem.icon}
1515
<span class="icon {groupItem.icon}" aria-hidden="true"></span>

src/markdoc/layouts/Post.svelte

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
<script lang="ts">
2+
import { page } from '$app/state';
23
import { Media } from '$lib/UI';
34
import { FooterNav, MainFooter } from '$lib/components';
5+
import CTA from '$lib/components/BlogCta.svelte';
6+
import Article from '$lib/components/blog/article.svelte';
7+
import Breadcrumbs from '$lib/components/blog/breadcrumbs.svelte';
8+
import Newsletter from '$lib/components/blog/newsletter.svelte';
9+
import PostMeta from '$lib/components/blog/post-meta.svelte';
10+
import TableOfContents from '$lib/components/blog/table-of-contents.svelte';
411
import { Main } from '$lib/layouts';
12+
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
513
import { formatDate } from '$lib/utils/date';
614
import {
715
createBreadcrumbsSchema,
@@ -12,14 +20,6 @@
1220
import type { AuthorData, PostsData } from '$routes/blog/content';
1321
import { TITLE_SUFFIX } from '$routes/titles';
1422
import { getContext, setContext } from 'svelte';
15-
import { page } from '$app/state';
16-
import CTA from '$lib/components/BlogCta.svelte';
17-
import PostMeta from '$lib/components/blog/post-meta.svelte';
18-
import Breadcrumbs from '$lib/components/blog/breadcrumbs.svelte';
19-
import Newsletter from '$lib/components/blog/newsletter.svelte';
20-
import TableOfContents from '$lib/components/blog/table-of-contents.svelte';
21-
import Article from '$lib/components/blog/article.svelte';
22-
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
2323
import { writable } from 'svelte/store';
2424
import type { LayoutContext } from './Article.svelte';
2525
@@ -39,7 +39,9 @@
3939
| boolean;
4040
export let lastUpdated: string;
4141
42-
const posts = getContext<PostsData[]>('posts');
42+
const posts = getContext<PostsData[]>('posts')?.filter(
43+
(post) => !(post.unlisted ?? false) && !(post.draft ?? false)
44+
);
4345
const authors = getContext<AuthorData[]>('authors');
4446
const authorData = authors.find((a) => a.slug === author);
4547
30.2 KB
Loading
32.9 KB
Loading
31.9 KB
Loading

0 commit comments

Comments
 (0)