From 12567bc1a41459de90c5262c1851ef8bc73e8845 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 12 Aug 2023 13:47:59 +0200 Subject: [PATCH] allow not having a description or links --- web/_data/community-content.json | 1 - web/community.html | 24 ++++++++++++++---------- web/style.css | 6 +++--- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/web/_data/community-content.json b/web/_data/community-content.json index 2f67285..82a6952 100644 --- a/web/_data/community-content.json +++ b/web/_data/community-content.json @@ -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" diff --git a/web/community.html b/web/community.html index 2c630ff..58581f5 100644 --- a/web/community.html +++ b/web/community.html @@ -33,16 +33,20 @@ summary: A fun simulation game where you mess with people's lives

{{ content.name }}

-
Created by {{ content.author }}
-
{{ content.desc }}
-
- {% for link in content.links %} - {{ link[0] }} - {% unless forloop.last %} - – - {% endunless %} - {% endfor %} -
+
Created by {{ content.author }}
+ {% if content.desc %} +
{{ content.desc }}
+ {% endif %} + {% if content.links %} +
+ {% for link in content.links %} + {{ link[0] }} + {% unless forloop.last %} + – + {% endunless %} + {% endfor %} +
+ {% endif %}
{% assign any = true %} diff --git a/web/style.css b/web/style.css index c8048a2..a2d9af7 100644 --- a/web/style.css +++ b/web/style.css @@ -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; }