Skip to content

Commit

Permalink
App: only include screenshots if there are screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidyjames committed Nov 7, 2024
1 parent 986fc72 commit e9f8dfe
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions _layouts/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ <h1>{{ page.title }}</h1>

<div class="main">

<section class="screenshots constrain">
<img
alt="Screenshot of {{ page.title }}"
srcset="{{ page.screenshots[0] | absolute_url }}"
src="{{ site.baseurl }}/images/dotted-box-symbolic.svg"
/>
</section>
{% if page.screenshots %}
<section class="screenshots constrain">
<img
alt="Screenshot of {{ page.title }}"
srcset="{{ page.screenshots[0] | absolute_url }}"
src="{{ site.baseurl }}/images/dotted-box-symbolic.svg"
/>
</section>
{% endif %}

<section class="description constrain">
<h2>{{ page.summary }}</h2>
Expand Down

0 comments on commit e9f8dfe

Please sign in to comment.