-
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
draft
and 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/events
or_posts/news
, and follow the naming convention ofyyyy-MM-dd-title.md
, whereyyyy
is the year,MM
is the month of the year,dd
is the day in the month, andtitle
is a lowercase, dash-separated title of the post. See existing posts for examples. -
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
draft
and assign it to @elliottsj 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.