allow not having a description or links

This commit is contained in:
Ell 2023-08-12 13:47:59 +02:00
parent 577c6e6a9a
commit 12567bc1a4
3 changed files with 17 additions and 14 deletions

View file

@ -13,7 +13,6 @@
{
"name": "TEMP!! Designing the Modern Home",
"slug": "modern-home",
"desc": "Truly a modern home.",
"author": "ssblur",
"section": "media",
"embed": "https://www.youtube.com/embed/Uomvvpd138M"

View file

@ -33,16 +33,20 @@ summary: A fun simulation game where you mess with people's lives
<div class="community-content-box-content">
<h4 class="community-title">{{ content.name }}</h4>
<div class="community-author text-muted">Created by {{ content.author }}</div>
<div class="community-desc">{{ content.desc }}</div>
<div>
{% for link in content.links %}
<a href="{{ link[1] }}">{{ link[0] }}</a>
{% unless forloop.last %}
&ndash;
{% endunless %}
{% endfor %}
</div>
<div class="text-muted">Created by {{ content.author }}</div>
{% if content.desc %}
<div class="community-desc">{{ content.desc }}</div>
{% endif %}
{% if content.links %}
<div>
{% for link in content.links %}
<a href="{{ link[1] }}">{{ link[0] }}</a>
{% unless forloop.last %}
&ndash;
{% endunless %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% assign any = true %}

View file

@ -125,6 +125,8 @@ pre.highlight {
.community-desc {
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
.feature-title h2 {
@ -144,9 +146,7 @@ pre.highlight {
margin-right: 20px;
}
.devlog-date,
.community-desc,
.community-author {
.devlog-date {
margin-bottom: 10px;
}