-
Notifications
You must be signed in to change notification settings - Fork 8
AddingPosts
In order to add a blog post to your site copy an existing post from the _posts
folder if one exists otherwise create a new _posts
folder. Posts are best organised by _posts/YEAR/MONTH
so add folders based on the year/month you are posting it in and if the folder doesn't exist create one.
Useful Links:
- Markdown Cheatsheet
- Rich Text to Markdown (Useful when writing a post as a Google Doc)
- CloudCannon Blogging Guide
The url(permalink) for your blog is based on the title provided in the filename e.g 2018-06-07-i2s-in-dragonboard410c.md
will have a url of /blog/i2s-in-dragonboard410c/
. Separate the words in your title by dashes and modify the date at the start of the filename as neccessary.
Modify the post's frontmatter. Values to modify are listed in the table below:
Frontmatter Option | Description |
---|---|
author | Set the username for the author of your blog post. If you have not already set up your blog's authors then see this guide. |
image | Set an image for use as the thumbnail/featured image. This value will also be used for the social media share image (when sharing a link to your post on social media (jekyll-seo-tag plugin takes care of this based on the image path) |
tags (Optional) | Tags can be set on a post. These allow readers to filter posts down to a specific topic. This can also be useful when trying to pull posts of a specific topic into another website/service via JSON. |
description (Optional) | Optional - Jekyll will automatically grab a post excerpt to use for the description. |
Enter an author's username. If you haven't already setup your blog authors then do so by following this guide.
This value is used for the featured image displayed on your blog post and the image that is used when sharing the blog post on social media sites. The Jeyll theme comes with a responsive image plugin for generating/optimising resized versions of your image. A thumbnail is generated and used for the post index page.
TL;DR - Provide a high resolution image (1920x1080) and try to keep the size as low as possible.
image:
path: /assets/images/blog/DragonBoard-UpdatedImages-front.png
alt: Alt title for your image
Make sure that the image you add in this section of front matter is placed in the /assets/images/ folder. You can add to any folder suits but ensure the path to your image is correct.
Note: Please ensure that the file extension of your image is either PNG or JPG.
Add your tags based on the post content.
tags:
- python
- automation
- selenium
- scraper
- bot
This is generated automatically by Jekyll but it's useful if that start of your post doesn't contain text useful for a meta description.
description: >
Your awesome description that will show up in search engine results. This is added to the meta description tag in the head of the HTML document.
Write your post in Markdown; specifically the Kramdown Markdown flavour.
Please use the following code snipppet to add an image to your blog post. Make sure to add the images that you include to /assets/images/blog folder.
{% include image.html name="name-of-your-image.png" alt="The Alt text for your image" %}
You also align/scale your image using the following css classes.
Class | Details |
---|---|
small-inline | Small image aligned to the left |
small-inline right | Small image aligned to the right |
medium-inline | Medium image aligned to the left |
medium-inline right | Medium image aligned to the right |
large-inline | Large image aligned to the left |
large-inline right | Large image aligned to the right |
{% include image.html name="name-of-your-image.png" class="medium-inline" alt="The Alt text for your image" %}
Using this Jekyll include will allow your images to be lazy loaded and format the image HTML correctly.
We are using the rouge syntax highlighter to highlight your glorious code.
See the full list of languages here.
To add a media element / YouTube video use the following Jekyll include.
{% include media.html media_url="https://youtu.be/GFzJd0hXI0c" %}
Jumbo Jekyll Theme | Developed by Kyle Kirkby for Linaro's Static Websites