website.dev is a static website generator built on top of Next.js.
Use .mdx files and your favourite version control system as your CMS.
Live example
website.dev is a static website generator built on top of Next.js.
- Dynamic router that generates article and category paths based on
.mdxfiles- Automatic sitemap generation
- Control which articles get published using the
publishedAtfront matter field - CLI tool that allows to easily create and publish articles
- Pre-commit git hook that automatically sets
updatedAtfront matter on modified articles
- Pre-commit git hook that automatically sets
- Built with
shadcn/uifor integrated a11y - SEO stuff like
OpengraphandJSON-LD
Clone the repo:
git clone [email protected]:romeobalta/website.dev.gitInstall packages:
bun installRun in dev mode:
bun devTip
You can use IS_DEMO=true bun dev to build the app using the demo content.
webie is the CLI tools that simplifies repetitive tasks.
bun webie
# or
bun wYou can use webie to run the article creation wizard. This has the benefit of generating a slug for your article based on the title and filling in the boilerplate front matter. If you set your editor config values, it will automatically open the article in your preferred editor.
bun webie create
# or
bun webie cYou can also use webie to run the article publishing wizard. It allows you to select one or multiple articles. The command automatically sets the publishedAt front matter for all the articles to now.
bun webie publish
# or
bun webie pThis tool automatically sets the updatedAt front matter of staged articles to now.
Note
This is automatically called as a pre-commit hook so you don't have to call it manually.
bun webie update
# or
bun webie u

