| Line | |
|---|
| 1 | <a class="bubble" href="{{ .ctx.Permalink }}"> |
|---|
| 2 | <i class="fas fa-fw {{ or .ctx.Params.icon "fa-camera" }}"></i> |
|---|
| 3 | </a> |
|---|
| 4 | |
|---|
| 5 | <article class="gallery"> |
|---|
| 6 | {{ $img_alt := .ctx.Title }} |
|---|
| 7 | |
|---|
| 8 | {{ if and (isset .ctx.Params "gallery") (ne .ctx.Params.gallery "") }} |
|---|
| 9 | <div class="flexslider"> |
|---|
| 10 | <ul class="slides"> |
|---|
| 11 | {{ range .ctx.Params.gallery }} |
|---|
| 12 | <li><img alt="{{ $img_alt }}" src="{{ . | relURL }}" /></li> |
|---|
| 13 | {{ end }} |
|---|
| 14 | </ul> |
|---|
| 15 | </div> |
|---|
| 16 | {{ else if ne .ctx.Params.imageSlider false }} |
|---|
| 17 | <div class="flexslider"> |
|---|
| 18 | <ul class="slides"> |
|---|
| 19 | {{ if and (.ctx.Site.Params.resizeImages | default true) (.ctx.Params.resizeImages | default true) }} |
|---|
| 20 | {{ range .ctx.Resources.ByType "image" }} |
|---|
| 21 | <li><img alt="{{ $img_alt }}" src="{{ (.Fill "700x350 q95").RelPermalink }}" /></li> |
|---|
| 22 | {{ end }} |
|---|
| 23 | {{ else }} |
|---|
| 24 | {{ range .ctx.Resources.ByType "image" }} |
|---|
| 25 | <li><img alt="{{ $img_alt }}" src="{{ .RelPermalink }}" /></li> |
|---|
| 26 | {{ end }} |
|---|
| 27 | {{ end }} |
|---|
| 28 | </ul> |
|---|
| 29 | </div> |
|---|
| 30 | {{ else}} |
|---|
| 31 | {{ partial "featured-image.html" .ctx }} |
|---|
| 32 | {{ end }} |
|---|
| 33 | |
|---|
| 34 | {{ partial "default-content.html" (dict "ctx" .ctx "template_type" .template_type) }} |
|---|
| 35 | {{ partial "article-footer.html" .ctx }} |
|---|
| 36 | </article> |
|---|
Note: See
TracBrowser for help on using the repository browser.