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", "name": "TEMP!! Designing the Modern Home",
"slug": "modern-home", "slug": "modern-home",
"desc": "Truly a modern home.",
"author": "ssblur", "author": "ssblur",
"section": "media", "section": "media",
"embed": "https://www.youtube.com/embed/Uomvvpd138M" "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"> <div class="community-content-box-content">
<h4 class="community-title">{{ content.name }}</h4> <h4 class="community-title">{{ content.name }}</h4>
<div class="community-author text-muted">Created by {{ content.author }}</div> <div class="text-muted">Created by {{ content.author }}</div>
<div class="community-desc">{{ content.desc }}</div> {% if content.desc %}
<div> <div class="community-desc">{{ content.desc }}</div>
{% for link in content.links %} {% endif %}
<a href="{{ link[1] }}">{{ link[0] }}</a> {% if content.links %}
{% unless forloop.last %} <div>
&ndash; {% for link in content.links %}
{% endunless %} <a href="{{ link[1] }}">{{ link[0] }}</a>
{% endfor %} {% unless forloop.last %}
</div> &ndash;
{% endunless %}
{% endfor %}
</div>
{% endif %}
</div> </div>
</div> </div>
{% assign any = true %} {% assign any = true %}

View file

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