In this short post I changed the title that is displayed on the front page from YAML Custom Features
to YAML Features
.
---
title: "YAML Custom Features"
menutitle: "YAML Features"
---
I also added a redirect to this post. If you browse to YAML-Feature-Redirect you should be redirected to this page. This only works if you have not removed the plugins.
---
redirect_from: "/YAML-Features-Redirect"
---
If you like to redirect from multible sources you can specify it as an array.
---
redirect_from:
- "/YAML-Features-Redirect/"
- "/blog/old-category/YAML-Features/"
---
I also changed the cover image for this block via YAML.
---
cover: /assets/mountain-alternative-cover.jpg
---
To generate keywords for the search engines I use the tags that you specify in the post. If you are writing a page you need to specify keywords instead of tags.
---
tags: Jekyll YAML Features Explained #Only used in posts!
keywords: Jekyll YAML Features Explained #Only used in pages!
---
Post will be sorted by category on the front page. This is how you define the category in YAML.
---
category: Readme
---
On a page I have additional options. For instance I can hide the page from the menu by setting the visible
tag to false
.
---
visible: false
---
If I like to have the page in the menu I can add weight
to the page in order to specify a position in the menu.
---
weight: 5
---
The default language of your blog is defined in the _config.yml
file but if you like to write a post/page in another language you can use the language
attribute. This will specify that you are using another language on this page for search engines. Please use on of the language codes as value.
---
language: en
---
You can enable disqus comments in posts by adding comments
to the page. To configure the disqus forum you need to modify the disqus_shortname
in the _config.yml
file.
---
comments: true
---
Additional features, that can be specified, can be found in the YAML Front Matter documentation.