-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidying up, fixed mobile sizing, updated readme
- Loading branch information
Showing
19 changed files
with
58 additions
and
498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,31 @@ | ||
# Next.js MDX Template | ||
subtitle | ||
Using Next.js 14 App Directory | ||
|
||
Simple, easy-to-modify template to use for creating a blog, portfolio, or content-based website | ||
|
||
## Features | ||
- :white_check_mark: ✅ `next-mdx-remote` | ||
- :white_check_mark: ✅ RSS Feed | ||
- :white_check_mark: ✅ Sitemap generation | ||
- :white_check_mark: `next-mdx-remote` | ||
- :white_check_mark: RSS Feed | ||
- :white_check_mark: Sitemap generation | ||
- Tailwind CSS | ||
- Syntax highlighting in `.mdx` | ||
- Custom components embeddable in `.mdx` files | ||
- Utility functions to customize further | ||
|
||
## Config | ||
- `config/site.ts` | ||
- `config/site.ts` - Site title, description, and URL | ||
- `.env` to set `BASE_URL` if you'd like to override the base URL you set in `config/site.ts` | ||
|
||
## Structure | ||
- `` placeholder | ||
|
||
### To-do | ||
- [ ] Test | ||
|
||
|
||
___ | ||
|
||
|
||
|
||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
The majority of the structure should be self evident, based on [Next.js docs](https://nextjs.org/docs) | ||
|
||
## Deploy on Vercel | ||
- `content/` - Location for posts (.mdx files) | ||
- `utils/mdx-utils.ts` - Main functions for handling `.mdx` and converting frontmatter | ||
- `lib/helpers.ts` - _extra (i.e. not required)_ Options for handling `.mdx` | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
### Notes | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
- `gray-matter` and `date-fns` are included but not required | ||
- If you'd like to remove them, remove the `lib/helpers.ts` file and its connections | ||
- Based off of [leerob.io repo](https://github.com/leerob/leerob.io) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
/** | ||
* | ||
* Optional page for separating posts from homepage | ||
* | ||
*/ | ||
|
||
import BlogPosts from '@/components/posts' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import NavBar from '@/components/layout/navbar' | ||
import BlogPosts from '@/components/posts' | ||
|
||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<main className='container mx-auto flex flex-col'> | ||
<BlogPosts /> | ||
</main> | ||
<BlogPosts /> | ||
</> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import { useState } from 'react' | ||
|
||
|
||
const TestComponent = () => { | ||
|
||
const [count, setCount] = useState(0) | ||
|
Oops, something went wrong.