This repository contains the complete source code for codust.dev - feel free to explore, learn from, or contribute to the project.
- Node.js
- npm or yarn
- Git
- Install Node.js from nodejs.org
- Verify installations:
node -v npm -v
- Install Yarn globally:
npm install -g yarn yarn -v
- Clone and setup the repository:
git clone [repository-url] cd codust.dev yarn install
- Set up environment:
- For Windows:
set PWD="$(pwd)"
- For Windows:
- Start development server:
yarn dev
- Add blog posts in the
data/blog
folder - Follow the frontmatter format below
- Add module data in
data/courseData.ts
- Create module folder in
data/explore
- Add module thumbnail in
public/static/images/explore/module.png
- Create
starter.mdx
indata/explore
- Add chapter files in
data/explore/modules.mdx
yarn prettier --write .
yarn lint --fix
Add Node.js to your system PATH:
- Open Start Menu → Search for "Environment Variables"
- In System Properties, click "Environment Variables"
- Under System Variables, find
Path
and click "Edit" - Add Node.js path:
C:\Program Files\nodejs
- Restart your terminal
Clear Yarn cache if experiencing build problems:
yarn cache clean
data/siteMetadata.js
- Site-wide settingsdata/authors/default.md
- Author informationdata/projectsData.js
- Project card datadata/headerNavLinks.js
- Navigation configurationdata/logo.svg
- Site logotailwind.config.js
- Tailwind CSS settingscss/tailwind.css
- Global stylescss/prism.css
- Code block stylingcontentlayer.config.ts
- Content management configuration
Three post layouts available:
PostLayout
- Default two-column layoutPostSimple
- Simplified versionPostBanner
- Layout with banner image
Posts use Contentlayer with Hugo-style frontmatter.
title
date
tags
lastmod
draft
summary
images
authors
layout
canonicalUrl
---
title: 'Introducing Tailwind Nexjs Starter Blog'
date: '2021-01-12'
lastmod: '2021-01-18'
tags: ['next-js', 'tailwind', 'guide']
draft: false
summary: 'Looking for a performant, out of the box template, with all the best in web technology to support your blogging needs? Checkout the Tailwind Nextjs Starter Blog template.'
images: ['/static/images/canada/mountains.jpg', '/static/images/canada/toronto.jpg']
authors: ['default', 'sparrowhawk']
layout: PostLayout
canonicalUrl: https://tailwind-nextjs-starter-blog.vercel.app/blog/introducing-tailwind-nextjs-starter-blog
---
This project is built on top of the excellent Tailwind Nextjs Starter Blog template by @timlrx.