add raw html
This commit is contained in:
parent
7299a89578
commit
33ee61486d
18
rawhtml/README.md
Normal file
18
rawhtml/README.md
Normal 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
BIN
rawhtml/rawhtml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
2
rawhtml/shortcodes/rawhtml.html
Normal file
2
rawhtml/shortcodes/rawhtml.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!-- raw html -->
|
||||
{{.Inner}}
|
Loading…
x
Reference in New Issue
Block a user