Follow these steps to contribute a new blog post to our website. We appreciate your contribution and look forward to featuring your insights on blog.reclaimprotocol.org!
A non-technical contributor's guide to pushing blogs :
$ git@github.com:reclaimprotocol/blog.git
$ cd blog
$ npm install
$ git checkout main
$ git pull
$ git checkout -b name_of_your_branch
- Navigate to the
./content/posts/directory in the project repository. - Create a new file with the
.mdxextension. - Name the file based on your desired URL slug. For example,
my-awesome-post.mdxwill result in a URL likeblog.reclaimprotocol.org/my-awesome-post.
At the top of your new .mdx file, include the following YAML front matter:
---
title: "<INSERT A TITLE HERE>"
description: "<INSERT A BRIEF DESCRIPTION HERE>"
date: <INSERT A DATE HERE (YYYY-MM-DD)>
tags: ["INSERT", "TAGS", "AS", "AN", "ARRAY", "HERE"]
img: "<LINK TO COVER IMAGE>"
author: <AUTHOR NAME>
published: <true or false>
---title:description: A brief summary of your post (good for SEO).date: The publication date in YYYY-MM-DD format.tags: An array of relevant keywords for categorizing your post.img: A link to the cover image for your post.author: Your name or pseudonym.published: Set totruewhen ready to publish,falseto keep as a draft.
Before publishing, it's a good idea to preview your post locally if possible. This allows you to catch any formatting issues or typos.
For that, follow the below steps,
- Run
pnpm install- You need to havepnpminstalled locally and if not, https://pnpm.io/installation - Run
pnpm run dev - Navigate to
localhost:3000and preview your changes
When you're satisfied with your post:
- If
publishedis set totruein the front matter, your post will go live after the next build. - Commit your new
.mdxfile to the repository. - Push your changes to the main branch or create a pull request, depending on your project's workflow.
$ git push origin name_of_your_branch
- Hit up the dev team to merge this branch into the main branch to publish it
Happy blogging! Your contributions help grow and enrich our community.
Note: Vercel will automatically detect the new content and will trigger a new build of the website, post which your changes will be live on blog.reclaimprotocol.org.