You can use Prose.io to edit the website. To add a blog post:
- Click the "Authorize on GitHub" power icon in the bottom-right corner
- Click on the
_posts
folder - Click "New File" and write the blog post
- Click the "Meta Data" icon in the right sidebar
- Fill in the "Author" field
- Click the "Save" icon in the right sidebar
- Re-open the blog post
- Click "Unpublished" at the right end of the toolbar
- Click the "Save" icon in the right sidebar
gem install bundler
git clone git@github.com:opennorth/opennorth.ca.git
cd opennorth.ca
git submodule update --init
bundle
cd theme
git checkout master
Then, edit .git/modules/theme/config
in the opennorth.ca
directory, changing this line:
url = https://github.com/opennorth/theme.git
to:
url = git@github.com:opennorth/theme.git
To add a blog post, create a file in the _posts
folder with a name following the pattern YYYY-MM-DD-lowercase-hyphenated-title.html
and with contents of:
---
layout: post
title: A descriptive title
author: The author's name
---
To edit the staff or board, edit the _data/staff.yml
and _data/board.yml
files.
To add a photo:
- Add the photo file to the
theme/img/people
directory. The filename must be the "slug" version of a person's name. A slug is the lowercase version of a name, with non-a-z
characters replaced with hyphens-
, with consecutive hyphens replaced with a single hyphen, and with leading and trailing hyphens removed. For example, the filename for "John Smith" isjohn-smith.jpg
. For "John Q. Public Esq.", it'sjohn-q-public-esq.jpg
. For "Napoléon Bonaparte", it'snapol-on-bonaparte.jpg
. Note: You can simply inspect the HTML when previewing changes to see the expected filename. - Comming the new file from the
theme
directory - Run
git push origin master
from thetheme
directory - Run
git commit theme -m "Update theme"
from theopennorth.ca
directory - Run
git push origin gh-pages
from theopennorth.ca
directory
To change a photo:
- Replace the appropriate file in the
theme/img/people
directory - Comming the updated file from the
theme
directory - Run
git push origin master
from thetheme
directory - Run
git commit theme -m "Update theme"
from theopennorth.ca
directory - Run
git push origin gh-pages
from theopennorth.ca
directory
Before committing your changes, always preview your changes. If not using Prose.io, start a server with:
bundle exec jekyll serve -w
Then, open localhost:4000 in a browser. While the server is running, you can make changes to files, then refresh the page in the browser to see your changes immediately! Press Ctrl+C
to stop the server.
Note: This command compiles HTML files into the _site
directory. Do not edit those files. Your changes to those files will not be saved.
Note: If the server is running, you must issue commands in a different Terminal window. Typing commands in the Terminal window in which the server is running will have no effect.
These files should be identical in this repository and nordouvert.ca:
.gitignore
.gitmodules
_config.yml
dir.ttl
Gemfile
Gemfile.lock
In other words, only these directories and files should differ:
_data/
_layouts/
_posts/
community/
communaute/
archive.html
atom.xml
CNAME
index.html
README.md