|
@@ -1,5 +1,5 @@
|
1
|
1
|
{{ $img := $.Page.Resources.GetMatch (.Get 1) }}
|
2
|
2
|
<figure class="{{ .Get 0 }}">
|
3
|
3
|
<img src="{{ $img.RelPermalink }}" alt="{{ $img.Name }}">
|
4
|
|
- <figcaption>{{ $img.Title }}</figcaption>
|
|
4
|
+ <figcaption>{{ if strings.HasSuffix $img.Permalink $img.Title }}{{ $img.Name }}{{ else }}{{ $img.Title}}{{ end }}</figcaption>
|
5
|
5
|
</figure>
|