A personal blog website built with Next.js: https://blog.morishin.me
- SSG
- Markdown support
- Mathematical expressions (KaTeX)
- Syntax highlighting
- Diagram support with Mermaid.js
- Node.js v22.14
- Yarn
- direnv (if using .envrc)
# Install dependencies
make install# Start development server
make serveThe application will be available at http://localhost:3000.
# Format code
make format
# Run linter
make lint
# Type checking
make typecheck-
Create a new directory under
data/posts/YYYY/MM/DDwhere:- YYYY is the year
- MM is the month (with leading zero)
- DD is the day (with leading zero)
-
Create a markdown file
*.mdinside the date directory. The filename will be used as the URL path -
Run the translator script with the date parameters:
node --experimental-strip-types scripts/translator.ts YYYY MM DD
For example, to add a post for January 1st, 2025:
node --experimental-strip-types scripts/translator.ts 2025 01 01
# Production build
make build- Framework: Next.js v13.4
- Language: TypeScript
- Styling: Tailwind CSS
- Markdown Processing: unified, remark, rehype
- Math Expressions: KaTeX
- Syntax Highlighting: highlight.js
- Diagrams: Mermaid.js
MIT