25 Dec 2020 - Jekyll
I recently added categories, i.e., grouping my blogs by topics, into my website. To group blogs in Jekyll, you will need to use collections. Basically I followed the instructions here to create my blog categories, which is quite straightforward. Here I’m providing a quick summary:
_config.yml file, adding following lines:
collections:
categories:
output: true
Creating a directory _categories. Inside this directory, creating files such as jekyll.md. You will need to create a file for each category.
---
short_name: jekyll
name: Jekyll
---
Later on you will use those defined properties to link you post into a category.
Adding a page, e.g., category.md, to list all categories.
For your post, adding a category property in the front matter. For example, adding category: jekyll. The property’s value should be one of your categories.
That’s it. For a detailed example, you can find it on Jekyll’s website.
| «Prev | More About | Next» |
|---|---|---|
| Natas0 And Natas1 Solution | Jekyll | Natas2 - Directory Indexing Vulnerability |