Skip to content

Commit 8ca3243

Browse files
authored
trying to fix all
1 parent 0351eb2 commit 8ca3243

File tree

5 files changed

+5
-37
lines changed

5 files changed

+5
-37
lines changed

src/content/apps/telegram-a.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/layouts/BlogPostLayout.astro

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import utc from 'dayjs/plugin/utc'
77
88
dayjs.extend(utc)
99
10-
type Props = CollectionEntry<'blog'>['data'] & {
10+
type Props = CollectionEntry<'apps'>['data'] & {
1111
headings: MarkdownHeading[]
1212
slug: string
1313
remarkPluginFrontmatter: Record<string, string>
@@ -45,11 +45,6 @@ const lastModified = dayjs(remarkPluginFrontmatter.lastModified)
4545
<div
4646
class="app-container flex flex-col lg:flex-row-reverse justify-between gap-8 py-24 relative"
4747
>
48-
<div class="md:w-1/4 relative">
49-
<div class="sticky top-0 md:top-28 hidden lg:block">
50-
<TableOfContents headings={headings} />
51-
</div>
52-
</div>
5348
<div class="grow w-full md:max-w-[75ch]">
5449
<div>
5550
<h1 class="text-4xl sm:text-5xl leading-snug pt-12 font-bold">
@@ -84,7 +79,6 @@ const lastModified = dayjs(remarkPluginFrontmatter.lastModified)
8479
name="mdi:clock-time-four-outline"
8580
class="inline-block text-primary dark:text-primary-dark"
8681
/>
87-
{remarkPluginFrontmatter.minutesRead}
8882
</span>
8983
</div>
9084

src/pages/blog/[...slug].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import BlogPostLayout from '../../layouts/BlogPostLayout.astro'
44
import type { MarkdownHeading } from 'astro'
55
66
export async function getStaticPaths() {
7-
const posts = await getCollection('blog')
7+
const posts = await getCollection('apps')
88
const headings = await Promise.all(
99
posts.map(async (post) => {
1010
const data = await post.render()
@@ -18,7 +18,7 @@ export async function getStaticPaths() {
1818
}
1919
2020
type Props = {
21-
post: CollectionEntry<'blog'>
21+
post: CollectionEntry<'apps'>
2222
headings: MarkdownHeading[]
2323
slug: string
2424
}

src/pages/blog/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCollection } from 'astro:content'
33
import BlogCard from '../../components/BlogCard.astro'
44
import BaseLayout from '../../layouts/BaseLayout.astro'
55
6-
const posts = (await getCollection('blog')).sort(
6+
const posts = (await getCollection('apps')).sort(
77
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
88
)
99
---

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Icon } from 'astro-icon/components'
55
import BlogCard from '../components/BlogCard.astro'
66
import { getCollection } from 'astro:content'
77
8-
const posts = (await getCollection('blog'))
8+
const posts = (await getCollection('apps'))
99
.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf())
1010
.slice(0, 4)
1111
---

0 commit comments

Comments
 (0)