Setup
Choose Your Language
Bayou theme supports the following languages:
- English (en)
- German (de)
- Spanish (es)
- French (fr)
- Italian (it)
- Portuguese (pt)
- Russian (ru)
English is set as the default language, but you can easily switch languages by defining it in your config.json
. You can modify it by going to the Design page in your Micro.blog Dashboard. Click Open Theme and choose config.json
. Below, you can see the default config.json
in its entirety (it really is that short). Change en
to your preferred language.
{
"paginate": 10,
"defaultContentLanguage": "en"
}
Tip: You can modify the paginate number to determine how many longform posts show on the home page and on archive pages.
Configure Categories
Bayou theme requires the use of specific categories to properly function. Every post that you’d like displayed on your homepage must include one of the following categories:
- Microposts
- Longform
Posts can have additional categories as well. The easiest way to do this is to utilize Micro.blog’s Category Filters feature. By setting up filters, you can correctly categorize all past and future posts automatically. Here’s how do set it up.
- Go to Posts → Categories in the Micro.blog Dashboard
- Add
Microposts
andLongform
as new categories - Click Edit Filters → New Filter
- For the first filter, choose Post Length: Only short microblog posts and set the category to
Microposts
. - For the second filter, choose Post Length: Only long posts with a title and set the category to
Longform
.
All future posts will now be properly categorized. To categorize your back catalog, you can return to Posts → Categories → Edit Filters and choose Run Filter for each Filter. This may take a few minutes, but your previous posts will be properly categorized.
Now that you’ve done this, your home page will show the latest Micropost and the 10 most recent Longform posts.
Add Home Page Bio/Content
On the Bayou Theme demo, you probably noticed the content on the home page that displays between the single Micropost and the list of Longform posts. This section is optional, but easy to setup. Microhooks power a lot of advanced features of Bayou Theme, including the home page bio section.
Visit the Microhook documentation to continue.