21 lines
295 B
Markdown
21 lines
295 B
Markdown
# Raw HTML in Hugo
|
|
|
|
Insert raw HTML Code anywhere
|
|
|
|
## 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)
|