Writing Blog Articles
The website has a Blog page that hosts articles written by COGS. Articles on the blog page are written in Markdown, which lets you add headings, bold, italics, tables, images, code blocks, lists and blockquotes.
To add an article, follow the steps below:
Prerequisites
- Make sure you have Python installed on your computer.
- Make sure you have Git installed on your computer.
-
Clone the website GitHub repository locally if you don't have it already
> git clone https://github.com/rucogs/rucogs.github.io
-
Inside the repository folder, install the python packages using
> pip install -r requirements.txt
Steps
-
Add an article to the
src/assets/blog-page-articles
folder.- This article should end in
.md
and should have a descriptive filename. - Make sure to place in the article in the correct folder based on it's year. If the folder doesn't exist, feel free to create it.
-
After making the file, copy and paste the following metadata to the top of the file, and change it according to what your article is about:
<!-- Title: Article Title Description: Description of the article Date: January 1, 2023 Image: assets/images/banner.png Authors: Alexander Xie, Alan Tong Tags: Club, Article -->
Title
- Title of the articleDescription
- Description of the articleDate
- Date the article was writtenImage
- Image to use as the banner image on top of the articleAuthors
- Comma-separated list of authors for the articleTags
- Comma-separated list of tags for the article- There is no official list of tags, but please try to reuse existing tags listed in other articles when possible.
- This article should end in
-
Run the following command to refresh the website's articles
> py update_articles.py
-
Commit and push your changes to GitHub
> git add . > git commit -m "Description of changes, etc." > git push