Merge pull request #80 from ProjectSegfault/optional-link-announcements

make announcements link optional
This commit is contained in:
Akis 2022-09-13 16:24:14 +03:00 committed by GitHub
commit d88e7180a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,9 +63,11 @@
<h1>{announcements.title}</h1>
</div>
<div class="read-more">
<a href={announcements.link}>Read more...</a>
</div>
{#if announcements.link}
<div class="read-more">
<a href={announcements.link}>Read more...</a>
</div>
{/if}
</div>
</div>
{:catch}