-
Notifications
You must be signed in to change notification settings - Fork 5
Writing posts
Two kinds of posts are on cssu.ca: Events and News. To create a new post:
-
Create a new branch from
draftand name itpost/<title>where<title>is a short name of your post. Either use Git on your computer, or simply use the GitHub interface to create the branch:
-
Create a new Markdown file in either
_posts/eventsor_posts/news, and follow the naming convention ofyyyy-MM-dd-title.md, whereyyyyis the year,MMis the month of the year,ddis the day in the month, andtitleis a lowercase, dash-separated title of the post. See existing posts for examples. You can also use the PostGen tool for creating the Markdown files. -
Add Jekyll frontmatter to the top of the new file, with a minimum of the following:
--- layout: post title: "Example title" description: "Example description" date: yyyy-MM-dd categories: <events|news> ---
-
Write the content of your post below the frontmatter. The syntax is similar to GitHub Flavored Markdown, including fenced code blocks.
-
(Optional) Preview the site on your computer by setting up Ruby and Jekyll.
-
Create a pull request from your branch onto
draftand assign it to @qasim for review.
Once your pull request is merged into draft, your post will be available on https://draft.cssu.ca, and will show up on https://cssu.ca when we deploy the site.