Skip to content

Commit 6642886

Browse files
committed
Don't render screenshot <figure> when there's no screenshot
1 parent d351d43 commit 6642886

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/views/fieldtypes/show.antlers.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ <h1>{{ title ensure_right=" Fieldtype" }}</h1>
99
</header>
1010

1111
<article class="markdown md:pb-16">
12+
{{ if screenshot }}
1213
<figure>
1314
{{ screenshot }}
1415
<img src="{{ url }}" width="{{ width | /:2 | +:2 }}" alt="{{ page:title }} Fieldtype UI">
1516
{{ /screenshot }}
1617
<figcaption>The {{ title }} in action!</figcaption>
1718
</figure>
19+
{{ /if }}
1820

1921
{{ content | toc:ids }}
2022

0 commit comments

Comments
 (0)