Config right sidebar to show related and feature post
- In the config structure open file
config.yaml
.
|
|
Find key
widgets
in keyparams
Find key
homepage
in keywidgets
Change limit and show to config
|
|
Explain:
- type: 1 type is one component in the right sidebar.
- limit: the maximum element to display in the right sidebar.
- show: An array of pages to display this component.
Note
- The name in the array
show
is the name of the folder that contains the post on the page. - The default for component search, category, and tag cloud is to show all pages.
Config right sidebar to create related post
- In the config structure open file
config.yaml
.
|
|
Find key
widgets
in keyparams
Find key
homepage
in keywidgets
Write config
|
|
Explain:
- type: 1 type is one component in the right sidebar.
- limit: the maximum element to display in the right sidebar.
- show: An array of pages to display this component.
-> Related example presented on two pages is apps
and home
(post
is folder containing article of homepage), with maximum is 5 articles.
- Create title related example in file
en.yaml
andvi.yaml
- Open file
en.yaml
- Find key
widget
- Write config
|
|
- Result
NOTE
- To configure related in right sidebar, following this format ‘related- + capitalise name of folder containing list of posts: name layout’
|
|
- Main keys, such as
widget
andparams
, already exist; you simply need to discover and write configuration in them.