Mercurial > hg > nginx-site
comparison xsls/content.xsls @ 2261:b459b643bf5a
Added "video" element to include YouTube videos.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 29 Oct 2018 19:52:32 +0300 |
parents | 939116ee92b4 |
children |
comparison
equal
deleted
inserted
replaced
2260:4e53813fbe21 | 2261:b459b643bf5a |
---|---|
176 X:template = "i" { <i> !!; </i> } | 176 X:template = "i" { <i> !!; </i> } |
177 X:template = "b" { <b> !!; </b> } | 177 X:template = "b" { <b> !!; </b> } |
178 X:template = "nobr" { <nobr> !!; </nobr> } | 178 X:template = "nobr" { <nobr> !!; </nobr> } |
179 X:template = "br" { <br/> } | 179 X:template = "br" { <br/> } |
180 | 180 |
181 | 181 X:template = "video[@id]" { |
182 <div class="video"> | |
183 <iframe type="text/html" | |
184 src="https://www.youtube.com/embed/{@id}?modestbranding=1&rel=0&showinfo=0&color=white" | |
185 frameborder="0" allowfullscreen="1"> | |
186 </iframe> | |
187 </div> | |
188 } | |
182 } | 189 } |