This is a personal blog project template modeled after Tailwind-Nextjs-Starter-Blog based on NextJS and TailwindCSS, which can be used out of the box and has a high degree of custom freedom. You can check the demo: Robert-jx
If you have any questions in use, please ask the issue, and I will reply and deal with it as soon as possible.
- GFM support
- Preconfigured security headers, which is SEO friendly, supports RSS and Sitemap
- Support search everything in the blog via Algolia.Docsearch
- Mobile-friendly view
- Light and dark theme
- Math display supported via KaTeX & remark-math
- Syntax & line highlighting in VSCode style, and display line numbers in code blocks via rehype-prism-plus
- MDX support via mdx-bundler
- Support for nested routing of blog posts
- List of projects&resources in waterfall flow view
- Additional build-in markdown syntax support via mdx, can also customize
- Initialize via
npx degit https://github.com/JasonLamv-t/tailwind-next-blog
- Personalize
data/meta/site.ts
: site basic information and configuration.data/meta/author.ts
: author information.data/author.md
: custom content which will be displayed in the about page.data/projects.ts
: projects information.data/resources.ts
: resources information.data/meta/config.ts
: configuration of environment, will be remove soon.data/blogs
: position to store the blogs files in md/mdx format, support nested structure. Recommended generating new post viapnpm newpost
, or you can touch the file manually.data/resources
: this directory will be copied under the public directory automatically when building.env.local
: environment, referenv.example
&data/meta/config.ts
for now.
- Installation via
pnpm i
, or you can use your preferred package manager. - Run
pnpm newpost
and answer some questions then the new post will be created in thedata/blogs
directory, edit it. - Development:
- for dev: run
pnpm dev
and check thepackage.json
for more details - for node/pm2 and so on: run
pnpm serve
- for docker:
- refer to
Dockerfile.example
to edit Dockerfile - run
docker built --file Dockerfile -t tailwind-next-blog .
to build the image with the tag - 'tailwind-next-blog' - then run
docker run -d -p 3000:3000 tailwin-next-blog
and open the localhost:3000 in your browser
- refer to
- for dev: run