Use with instead of if
This commit is contained in:
parent
8b5fb3132c
commit
2061d36f78
|
@ -1,7 +1,8 @@
|
||||||
{{ if .Site.Params.codePenUser }}
|
{{ $pen := .Get 0 }}
|
||||||
<iframe height="300" scrolling="no" title="code demonstration with codePen" src="//codepen.io/{{ .Site.Params.codepenUser | lower }}/embed/{{ .Get 0 }}/?height=265&theme-id=dark&default-tab=result,result&embed-version=2" frameborder="no" allowtransparency="true" allowfullscreen="true" style="width: 100%;">
|
{{ with .Site.Params.codePenUser }}
|
||||||
|
<iframe height="300" scrolling="no" title="code demonstration with codePen" src="//codepen.io/{{ . | lower }}/embed/{{ $pen }}/?height=265&theme-id=dark&default-tab=result,result&embed-version=2" frameborder="no" allowtransparency="true" allowfullscreen="true" style="width: 100%;">
|
||||||
<div>
|
<div>
|
||||||
<a href="//codepen.io/{{ .Site.Params.codePenUser | lower }}/pen/{{ .Get 0 }}">See the demo on codePen</a>
|
<a href="//codepen.io/{{ . | lower }}/pen/{{ $pen }}">See the demo on codePen</a>
|
||||||
</div>
|
</div>
|
||||||
</iframe>
|
</iframe>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user