Thank you for your interest in contributing to the codebar blog! This guide will help you get started.
This project adheres to the codebar Blog Code of Conduct. By participating, you are expected to uphold this code. Please report any unacceptable behavior to hello@codebar.io.
Before you begin, ensure you have the following installed:
-
Fork the repository on GitHub
-
Clone your fork locally:
git clone https://github.com/YOUR-USERNAME/codebar-hugo-blog.git cd codebar-hugo-blog -
Install dependencies:
npm install
-
Start the development server:
make serve
-
Open in browser: Visit http://localhost:1313
hugo new posts/my-new-post.mdCreate a new file in content/posts/ with the following frontmatter:
---
title: "Your Post Title"
date: 2024-01-15T10:00:00Z
author: "Your Name"
tags: ["tag1", "tag2"]
---
Your content here...| Field | Required | Description |
|---|---|---|
title |
Yes | The title of your post |
date |
Yes | Publication date in ISO 8601 format |
author |
Yes | Author name |
tags |
No | Array of tags for categorization |
draft |
No | Set to true to keep post as draft (hidden in production) |
summary |
Yes | Brief summary of the post (auto-generated if omitted) |
Place images in static/images/ and reference them with root-relative paths:
Always include descriptive alt text for accessibility.
- Write in a clear, accessible style appropriate for a diverse audience
- Use headings to structure your content logically
- Include code examples where relevant, using fenced code blocks with language identifiers
- Proofread for spelling and grammar
- Ensure all links are valid before submitting
make serveBefore submitting your pull request, run the link checker:
make check-linksThis will verify that all links in your content are valid.
make buildThis builds the site and generates the search index.
-
Create a branch for your changes:
git checkout -b my-feature-branch
-
Make your changes and test locally
-
Run the link checker:
make check-links
-
Commit your changes with a clear commit message:
git add . git commit -m "Add post about [topic]"
-
Push to your fork:
git push origin my-feature-branch
-
Open a pull request from your fork to the main repository
- Keep pull requests focused on a single change
- Write a clear description of what you changed and why
- Reference any related issues
- Ensure your post renders correctly in the preview
If you find a bug or have a feature request, please open an issue on GitHub. Include:
- A clear description of the issue
- Steps to reproduce (for bugs)
- Expected vs actual behavior
- Screenshots if applicable
We would love to have members of our community contribute to the blog. Please find below some ideas/suggestions:
- Tell us something technical you've recently learnt (any level)
- "How to" guide
- A beginner friendly write up of something technical
- A tutorial
If you have questions about contributing, feel free to open an issue or drop us an email hello@codebar.io.