Skip to content

Commit 1ec82d5

Browse files
committed
oops
1 parent 7fa2af7 commit 1ec82d5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

apps/svelte.dev/src/lib/components/PageControls.svelte

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
interface Props {
66
repo: string;
7+
llms?: boolean;
78
prev: null | {
89
path: string;
910
title: string;
@@ -14,16 +15,18 @@
1415
};
1516
}
1617
17-
let { repo, prev, next }: Props = $props();
18+
let { repo, prev, next, llms }: Props = $props();
1819
</script>
1920

2021
<p class="edit">
2122
<a href={repo}>
2223
<Icon name="edit" /> Edit this page on GitHub
2324
</a>
24-
<a href={page.url.pathname.replace(/\/$/, '') + '/llms.txt'}>
25-
<Icon name="contents" /> llms.txt
26-
</a>
25+
{#if llms}
26+
<a href={page.url.pathname.replace(/\/$/, '') + '/llms.txt'}>
27+
<Icon name="contents" /> llms.txt
28+
</a>
29+
{/if}
2730
</p>
2831

2932
<div class="controls">

apps/svelte.dev/src/routes/docs/[topic]/[...path]/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
</div>
8484

8585
<PageControls
86+
llms
8687
{repo}
8788
prev={data.document.prev && {
8889
title: data.document.prev.title,

0 commit comments

Comments
 (0)