In this short post I changed the title that is displayed on the front page from
YAML Custom Features to
--- 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
--- 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
--- comments: true ---
--- math: true ---
--- citation: author: - "Doe, John" - "Roe, Jane" publication_date: "1996/05/17" online_date: "1996/06/22" title: "title" conference_title: "conference_title" journal_title: "journal_title" volume: "271" issue: "20" firstpage: "11761" lastpage: "11766" pdf_url: "/media/scholar_article.pdf" pdf_url_dynamic: true #true: http://your-domain.com/[pdf_url] issn: "1234-5678" isbn: "0-2345-6634-6" institution: "institution" report_institution: "report_institution" report_number: "12345678" ---
Additional features, that can be specified, can be found in the YAML Front Matter documentation.