https://github.com/toastdriven/nutoastdriven
My blog, redone in Next.js.
https://github.com/toastdriven/nutoastdriven
Last synced: 11 months ago
JSON representation
My blog, redone in Next.js.
- Host: GitHub
- URL: https://github.com/toastdriven/nutoastdriven
- Owner: toastdriven
- License: bsd-3-clause
- Created: 2023-10-24T18:03:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-15T15:31:20.000Z (12 months ago)
- Last Synced: 2025-06-07T16:54:57.546Z (11 months ago)
- Language: JavaScript
- Size: 3.91 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `nutoastdriven`
My personal site, rewritten using [Next.js](https://nextjs.org/).
Of most interest, this uses the new-style [Next.js App Router](https://nextjs.org/docs/app/building-your-application/routing), as opposed to the older "Pages Router" that the tutorial uses.
This code is run locally & used to statically generate [Toast Driven](https://toastdriven.com/). This is likely only mostly useful to me, but feel free to refer to it and/or use code from it.
## Setup
Gotta have Node installed locally (`20.6.1`, installed via `asdf`). You'll also want [Just](https://just.systems/).
```bash
$ npm i
$ cp -i .env.example .env
```
## Creating Posts
Create the correct subdirectories in `posts/` for year/month/day, then create the post itself using Markdown.
A template:
```markdown
---
title: 'The Title Goes Here'
date: 'YYYY-MM-DD'
time: 'HH:MM:SS'
author: 'Daniel'
slug: 'the-slug-goes-here'
---
The post itself goes here...
```
Then you can generate & upload in a single go with `$ just refresh`.
## Running the Dev Site
```bash
$ npm run dev
```
Then hit [http://localhost:3000](http://localhost:3000) in your browser.
## Only Generating the Site
```bash
$ just build
```
## Only Uploading the Generated Site
```bash
$ just upload
```