Skip to content

Add a new content section

Thomasorus edited this page May 23, 2021 · 2 revisions

You can add as many sections as you want. Let's say for the example that you want a new journal section in your Chīsai website. It's a three steps process that requires you to only edit files or create new files, simple!

Please follow these steps:

  1. Add a new folder at the root of your website and in our example, name it journal
  2. In your new journal folder, create a new file and name it index.md. Inside this file, add a title using the # Markdown character. For example: # Journal and below, put anything you want!
  3. Go into the src folder and edit the config.py file. The first line should be content_folder = ['art', 'blog']. Add journal inside the square bracket. It should look like this: content_folder = ['art', 'blog', 'journal']

And you are done! Please note that if you don't want the section, you can just delete the folder and remove it from the config.py file.

Now all you have to do is create content inside the journal folder. If you are not sure how to do it, please start with this first step.