Steps to Push Your Own Articles to DailyNest
1. Fork and Clone the Repository
First, you’ll need to fork the DailyNest repository on GitHub. This creates your own copy of the project, where you can make changes.
-
Go to the DailyNest GitHub repo and click Fork (top-right).
-
Once forked, clone your repository to your local machine:
git clone https://github.com/YOUR_USERNAME/dailynest.github.io.git cd dailynest.github.io
2. Set Up the Development Environment
Before you can start adding articles, you need to set up your local development environment:
-
Create a
.env
file in the root of your project and add:RUN_KEYSTATIC=true
-
Install dependencies:
-
If you’re using npm:
npm install
-
Or if you prefer bun:
bun install
-
3. Run the Development Server
To preview your articles locally, you’ll need to run the development server:
npm run dev
Or with bun:
bun dev
Visit http://127.0.0.1:4321 to view your local instance.
4. Add Yourself as an Author
To add yourself as an author:
- Go to Keystatic.
- Log in using your GitHub account if prompted.
- Click on Authors in the sidebar, then Add New Author.
- Fill in the details with your name, avatar (you can use your GitHub avatar URL), and bio.
5. Create Your Article
- In Keystatic, click on Articles in the sidebar.
- Click Create and start writing your article in Markdown or MDX format.
- Make sure to include important fields:
- Title: Your article’s title (e.g., “Getting Started with React”).
- Slug: URL-friendly version of the title (e.g.,
getting-started-with-react
). - Category: Assign appropriate categories (e.g.,
react
,javascript
,web development
). - Published Time: Date in ISO format (e.g.,
2025-08-30T14:48:00.000Z
). - Authors: Set the author field to your slug (e.g.,
muhammadfiaz
). - Content: Write your article or paste your tutorial.
6. Commit and Push Changes
After adding your article, you need to commit and push it to your forked repository.
-
Stage and commit your changes:
git add . git commit -m "Add new article: Getting Started with React"
-
Push your changes:
git push origin main
7. Create a Pull Request
- Go to your forked repository on GitHub.
- You should see an option to Compare & Pull Request. Click on it.
- Add a description of your article and any relevant details.
- Submit the Pull Request to the main DailyNest repository.
8. Wait for Review and Approval
Once your pull request is reviewed by the maintainers, it will be merged into the main repository and your article will be live on DailyNest!
Summary:
- Fork and Clone the repo.
- Set up
.env
and install dependencies. - Run the development server to preview changes locally.
- Add yourself as an author through Keystatic.
- Create and add your article in Keystatic CMS.
- Commit and push changes to your forked repository.
- Create a Pull Request to contribute.
Tips for great submissions
- Include a clear description and a strong cover image (upload via Keystatic or use a URL).
- Use descriptive alt text for accessibility and SEO.
- Add 3–6 keywords to improve discovery.
- Prefer original content and cite sources where relevant.