19 lines
264 B
Markdown
19 lines
264 B
Markdown
|
# Raw HTML in Hugo
|
||
|
|
||
|
## Install
|
||
|
|
||
|
1. Add the shortcode file to `layouts/shortcodes`
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```hugo
|
||
|
{{< rawhtml >}}
|
||
|
<h1>your html code here</h1>
|
||
|
<p style="color: yellow;">Example HTML</p>
|
||
|
{{< /rawhtml >}}
|
||
|
```
|
||
|
|
||
|
## Preview
|
||
|
|
||
|
![Raw HTML in Hugo](rawhtml.png)
|