Migrate to Contentlayer2
This commit is contained in:
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
||||
import Image from 'next/image';
|
||||
import { notFound } from 'next/navigation';
|
||||
import type { Metadata } from 'next';
|
||||
import { allPosts } from 'contentlayer/generated';
|
||||
import { allPosts } from 'contentlayer2/generated';
|
||||
import { getPostBySlug, getRelatedPosts, getPostNeighbors } from '@/lib/posts';
|
||||
import { siteConfig } from '@/lib/config';
|
||||
import { ReadingProgress } from '@/components/reading-progress';
|
||||
|
||||
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
||||
import Image from 'next/image';
|
||||
import { notFound } from 'next/navigation';
|
||||
import type { Metadata } from 'next';
|
||||
import { allPages } from 'contentlayer/generated';
|
||||
import { allPages } from 'contentlayer2/generated';
|
||||
import { getPageBySlug } from '@/lib/posts';
|
||||
import { siteConfig } from '@/lib/config';
|
||||
import { ReadingProgress } from '@/components/reading-progress';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { allPosts } from 'contentlayer/generated';
|
||||
import { allPosts } from 'contentlayer2/generated';
|
||||
import { PostListWithControls } from '@/components/post-list-with-controls';
|
||||
import { getTagSlug } from '@/lib/posts';
|
||||
import { SidebarLayout } from '@/components/sidebar-layout';
|
||||
|
||||
Reference in New Issue
Block a user