File tree Expand file tree Collapse file tree 5 files changed +5
-37
lines changed
Expand file tree Collapse file tree 5 files changed +5
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import utc from 'dayjs/plugin/utc'
77
88dayjs .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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import BlogPostLayout from '../../layouts/BlogPostLayout.astro'
44import type { MarkdownHeading } from ' astro'
55
66export 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
2020type Props = {
21- post: CollectionEntry <' blog ' >
21+ post: CollectionEntry <' apps ' >
2222 headings: MarkdownHeading []
2323 slug: string
2424}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getCollection } from 'astro:content'
33import BlogCard from ' ../../components/BlogCard.astro'
44import 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---
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Icon } from 'astro-icon/components'
55import BlogCard from ' ../components/BlogCard.astro'
66import { 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---
You can’t perform that action at this time.
0 commit comments