Closed dagerzuga closed 1 year ago
Adding the option to show fontawesome icons next to the links of the main menu. This works with a new parameter in the site's configuration.
This applies to main links and sub-links. Both links have the icon fa fa-arrow-right as the default one if nothing was specified in the .md file.
fa fa-arrow-right
.md
If you want to turn this on, you need to add this new parameter in the configuration file of your website (config.toml) and add true as its value.
config.toml
true
[params] enableIcons = true
Now you can specify the icon in the front-matter of your .md file.
+++ title = "Getting started" description = "" weight = 1 icon = "fas fa-fax" +++
Note: You only need to add the name of the class, don't need to specify the HTML structure.
You can disable this feature by removing the enableIcons parameter from the configuration, or changing its value to false.
enableIcons
false
Description
Adding the option to show fontawesome icons next to the links of the main menu. This works with a new parameter in the site's configuration.
This applies to main links and sub-links. Both links have the icon
fa fa-arrow-right
as the default one if nothing was specified in the.md
file.How to use this feature
Configuration
If you want to turn this on, you need to add this new parameter in the configuration file of your website (
config.toml
) and addtrue
as its value.Adding icons
Now you can specify the icon in the front-matter of your
.md
file.Note: You only need to add the name of the class, don't need to specify the HTML structure.
Turning off this feature
You can disable this feature by removing the
enableIcons
parameter from the configuration, or changing its value tofalse
.Images