mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 03:13:30 +01:00
allow not having a description or links
This commit is contained in:
parent
577c6e6a9a
commit
12567bc1a4
3 changed files with 17 additions and 14 deletions
|
@ -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"
|
||||
|
|
|
@ -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 %}
|
||||
–
|
||||
{% 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 %}
|
||||
–
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% assign any = true %}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue