add raw html

This commit is contained in:
Kim Oliver Drechsel 2022-01-14 15:45:55 +01:00
parent 7299a89578
commit 33ee61486d
Signed by: Kim
GPG Key ID: B9D907EF02605A07
3 changed files with 20 additions and 0 deletions

18
rawhtml/README.md Normal file
View File

@ -0,0 +1,18 @@
# 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)

BIN
rawhtml/rawhtml.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}