mirror of
https://github.com/imfing/hextra.git
synced 2025-07-01 14:47:11 -04:00
feat: add more content and fix issues
fix: hide lang switch if site is not multilingual docs: update getting started page fix: ordered list style chore: update hugo icon feat: add icon shortcode page docs: add markdown and configuration pages docs: add diagrams page docs: add more content fix: mermaid background and add image styling chore: update templates chore: update hugo stats
This commit is contained in:
38
exampleSite/content/docs/guide/shortcodes/icon.md
Normal file
38
exampleSite/content/docs/guide/shortcodes/icon.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
title: Icon
|
||||
---
|
||||
|
||||
To use this shortcode inline, make sure you have enabled the inline shortcode in the config:
|
||||
|
||||
```yaml {filename="hugo.yaml"}
|
||||
enableInlineShortcodes: true
|
||||
```
|
||||
|
||||
The list of available icons can be found in `data/icon.yaml`.
|
||||
|
||||
## Example
|
||||
|
||||
{{< icon "academic-cap" >}}
|
||||
{{< icon "cake" >}}
|
||||
{{< icon "gift" >}}
|
||||
{{< icon "sparkles" >}}
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
{{</* icon "github" */>}}
|
||||
```
|
||||
|
||||
[Heroicons](https://v1.heroicons.com/) v1 outline icons are available out of the box.
|
||||
|
||||
You can also add your own icons by adding them to `data/icon.yaml`:
|
||||
|
||||
```yaml {filename="data/icon.yaml"}
|
||||
your-icon: <svg>your icon svg content</svg>
|
||||
```
|
||||
|
||||
which can then be used like this:
|
||||
|
||||
```
|
||||
{{</* icon "your-icon" */>}}
|
||||
```
|
Reference in New Issue
Block a user