Create rawhtml.html
This allows to inject raw html into any content file. For example, my client uses an appointment booking service which requires a generated html snippet to be inserted into the content page.
```
{{< rawhtml >}}
<div id="etermin">
<iframe ...>...</iframe>
<script>...</script>
</div>
{{< /rawhtml >}}
```
This commit is contained in:
parent
1d92c6b79b
commit
a151d9579b
1 changed files with 2 additions and 0 deletions
2
layouts/shortcodes/rawhtml.html
Normal file
2
layouts/shortcodes/rawhtml.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!-- raw html -->
|
||||
{{.Inner}}
|
||||
Loading…
Add table
Reference in a new issue