mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 04:04:57 -04:00
Fix #263, document HTML comments & IE conditionals
This commit is contained in:
parent
cebcbfc663
commit
28438d198b
@ -221,6 +221,13 @@ Could be rewritten as
|
||||
Stuff Here
|
||||
{{ end }}
|
||||
|
||||
### Internet Explorer conditional comments using Pipes
|
||||
|
||||
By default Go Templates remove HTML comments from output. This has the unfortunate side effect of removing Internet Explorer conditional comments. As a workaround, use something like this:
|
||||
|
||||
{{ "<!--[if lt IE 9]>" | safeHtml }}
|
||||
<script src="html5shiv.js"></script>
|
||||
{{ "<![endif]-->" | safeHtml }}
|
||||
|
||||
## Context (aka. the dot)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user