mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
add note for HTML markup
To use icons via HTML elements directly, unsafe markup must be allowed.
This commit is contained in:
parent
a0720de1ff
commit
a8b62804b0
1 changed files with 8 additions and 1 deletions
|
@ -88,10 +88,17 @@ Built with {{% icon heart %}} by Relearn and Hugo
|
|||
|
||||
### Advanced HTML Usage
|
||||
|
||||
While the shortcode simplyfies using standard icons, the icon customisation and other advanced features of the Font Awesome library requires you to use HTML directly. Just paste the `<i>` HTML into markup and Font Awesome will load the relevant icon.
|
||||
While the shortcode simplifies using standard icons, the icon customization and other advanced features of the Font Awesome library require you to use HTML directly. Paste the `<i>` HTML into markup, and Font Awesome will load the relevant icon.
|
||||
|
||||
````html
|
||||
Built with <i class="fas fa-heart"></i> by Relearn and Hugo
|
||||
````
|
||||
|
||||
Built with <i class="fas fa-heart"></i> by Relearn and Hugo
|
||||
|
||||
To use these native HTML elements in your Markdown, add this in your `config.toml`:
|
||||
|
||||
````toml
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
````
|
||||
|
|
Loading…
Add table
Reference in a new issue