Creating A New Post

This post shows how to create a new post on the Fica Theme. Even if you have previous experience with Jekyll, this article is worth reading, because many features require specific variables to be set.

Creating a File and Naming a post #

Create a new file named YYY-MM-DD-TITLE.EXTENSION (.EXTENSION may be .md or .markdown) and put it on the _posts folder.

Font Matter #

Basic Font Matter

Font Matter Description
layouts This specifies the layout file to use. It may be home layout for the homepage, post layout for post, default or page layout/s the original look of the site, and post-home layout for homepage of the post/s.
site-title This displays the website title. EXCEPT THE HOMEPAGE
author This is optional for the post because the authour is set on the _config.yml file.
home This is only for the homepage It displays the website title so that you will not write the website title.
pin This pins the post to the top of the post-home layout.
post_toc: false This hides the TOC(Table of Contents) in post

Examples:

1
2
3
4
5
---
layout: home
home: true
---

1
2
3
4
5
6
---
layout: default
site-title: About
permalink: /About/
---

1
2
3
4
---
layout: post_list
site-title: post
---
1
2
3
4
5
---
layout: post
site-title: Creating a new post
author: aeziyehl
---

if you want to pin the post:

1
2
3
4
5
6
---
layout: post
site-title: Creating a new post
author: aeziyehl
pin: true
---

if you want to remove TOC in post

1
2
3
4
layout: post
site-title: Creating a new post
author: aeziyehl
post_toc: false

Syntax #

1
`inline code part`

Markdown symbol ``` can easily create a code block as follows:

1
Plaintext Code Snippet.

Specifying Language in Code Block #

Markdown symbol ```{language} can easily create a code block as follows:

1
2
3
```yml
    title: Fica Theme
```

Line Number #

All languages except plaintext, console, and terminal will display line numbers. When you want to hide the line number of a code block, add the class nolineno to it:

1
2
3
4
```bash
echo 'No more line numbers'
```
{: .nolineno }

Liquid Codes #

If you want to display the Liquid snippet, surround the liquid code with and:

1
2
3
4
5
6
7
```liquid
{% if product.title contains 'Pack' %}
  This product's title contains the word Pack.
{% endif %}
```

Or adding render_with_liquid: false (Requires Jekyll 4.0 or higher) to the post’s YAML block.

Learn More #

For more knowledge about Jekyll posts, visit the Jekyll Docs: Posts.

Contents