The welcome mat hosted on the gh-pages
branch of this repo only. Please make pull requests from gh-pages
.
Please read through this contributing guide to learn how /welcome-mat is built.
There are several folders in the root, these are categories.
xxxx/
yyyy/
zzzz/
To be a category, the folder must have:
- a lowercase name, replacing spaces with dashes
- an
index.md
file, with the following front matter keys:- title:
- layout: category
- order: (number to specify order)
- a
_posts/
folder containing post files
xxxx/
_posts/
index.md
Posts are files that live in a category's _posts/
folder. Posts must have:
- a lowecase file name following:
0000-01-01-title.md
pattern. - the following front matter:
- title:
You can change the date in the file name to specify order.
xxxx/
_posts/
0000-01-01-title.md
0000-01-02-another-title.md
index.md
To keep us consistent please follow these guidelines:
- Use headlines for hierarchy. Always start at h2 (
##
) and use headlines in order. h2 and h3 will automatically appear in the table of contents on the right of the page. - All images should have alternative text to describe the image.
- Link text should be descriptive. Avoid: Click here for more information.
- Optimize images to keep our pages fast: ImageOptim, https://compressor.io/
Jekyll will automatically change the layout of the category based on the number of posts the category has and if you've enabled sections (more about sections below).
- If a category only has 1 post, then when you visit the category page, you'll find the content for that post printed out.
- If a category has more than 1 post, then when you visit the category page, you'll find a list of posts with links to visit each post.
- If a category has more than 1 post and uses sections, then when you visit the category page, you'll find a list of posts sorted by section. (See below for instructions on how to set sections up.)
You can group posts in a category into section, by:
- Creating a subfolders in
_posts/
and placing each post into the subfolder:
xxxx/
_posts/
aaaa/
0000-01-01-title.md
0000-01-02-title.md
bbbb/
0000-01-01-title.md
0000-01-02-title.md
cccc/
0000-01-01-title.md
0000-01-02-title.md
- Adding a list of the folder names in the category's front matter, under a sections key (the folder names must match, but these aren't case sensitive):
sections:
- aaaa
- bbbb
- cccc
Once you do both steps, Jekyll will automatically group the list of blog posts for that category and display them by section.
- Create a folder with the language abbreviation. For example,
fr/
for French andde/
for German. - Update
_config.yml
to add the new language to thedefaults
. Follow the pattern of the English scopes. - Update
translations.yml
and add to each set of words the new translation using the language abbreviation from step 1. If you don't add a translation, it will appear in English. - Add the new language abbreviation and name of language to
languages
in_config.yml
.
Follow the patterns mentioned above in creating categories and posts.