Hello and welcome to the repo of HackGwinnett's blog!
Ready to write your own articles on this blog? Here's how:
- Fork this repo and clone it on your computer
- Create a new markdown file (file extension:
.md
) in the/posts
folder (not/pages/posts
). - Create the frontmatter of the blog. You must begin and end the frontmatter
with
---
.- Here is a breakdown of the fields:
title
(required) - your title goes hereauthor
(required) - your name goes here- If you don't want to reveal your name, put HackGwinnett as the author
date
(required) - put the date of the article hereexcerpt
(required) - put a brief summary/preview of the article herecover_image
(required) - path to cover image goes here (please put any images inpublic/images/posts
)profile_photo
(optional) - path to your profile picture (please put your profile photo in thepublic/images/profile_photos
folder)draft
(optional) - if set totrue
, the post will not be rendered (used to create drafts and not render them).
- Example frontmatter (you can look at existing posts for more examples)
--- title: "Cool Article Title" author: "Nathan Abraham" date: "July 1, 2022" excerpt: "Your excerpt goes here. Try not to make it too long." cover_image: "/images/posts/coding.jpg" draft: false ---
- Here is a breakdown of the fields:
- [Optional] Build the site and make sure everything works (you must have
node version 14+ installed on your computer).
npm install npm run dev
- Open up a pull request and we'll review your article!
- Leverage the power of markdown to organize content
in your post
- Use headings and subheadings
- Use bulleted lists and numbers
- Use code blocks
- Wrap code blocks in backticks (```) and specify a language to get syntax highlighting
We can't wait to see what you'll come up with!