newcentre.ca
This is a simple Jekyll site for the newcentre.ca project.
Get started on Windows
If you are using Windows, you might not have Git installed. You should start by installing Git before moving on to the main setup below.
Get started
- Install Ruby 2.3.3. Be sure to follow the instructions most appropriate for your operating system.
- Install Bundler.
gem install bundler
- Install Jekyll.
gem install jekyll
- Navigate to the project directory (using the change directory command)
- Run
bundle install
to install the dependencies. - Run
jekyll serve
to build the site. You should see it in your web browser at http://localhost:4000
- Run
More info
This website is built with Jekyll using the Athena theme.
Read the Jekyll docs for more information on how to write blog posts.
Read the Markdown cheatsheet to learn how to format blog posts.
Writing workflow
Here is a suggested workflow for writing a blog post.
- Navigate to the project directory (New centre folder)
- Make sure your local Git repository is up to date.
git pull
- Copy the template file in the
_drafts
folder. Change the name of the file and the front matter to reflect the current date and whatever the article will be called. - Choose a category. I think we should just have two for now:
articles
andconference
. - Run
jekyll serve --drafts
to preview your work in a web browser. - When you are finished writing the article, commit your changes to git by saving the file and then typing.
git add . && git commit -am 'Your message here'
.- An example of a good message is
'Added draft for post about terminology'
. Keep it short, relevant to the work you did, and in the past tense.
- An example of a good message is
- Update the remote Git repository with
git push origin master
.
Publishing a post
When you are ready to publish a post, you simply have to move the post to the _posts
folder and update the Git repository.
- Move the post from
_drafts
to_posts
. - Update Git with
git add . && git commit -am 'Moved post to posts folder'
- Update the remote GIt repository with
git push origin master
. - The post should be live in under a minute.
Idea backlog using Issues
We can create a backlog of ideas or work we want done on the website using Github Issues. Try to write Issues in such a way that there is a clear criteria for resolving them.
Peer reviewed articles
Using Github, we can leverage sophisticated tools for reviewing articles or website content as a team. Once we get more comfortable with the basic publishing workflow, we can write up docs for how to do reviews on Github.