From 9ca5ef47f883db75d3b091146c352d605c5875e2 Mon Sep 17 00:00:00 2001
From: Bady <bady@disroot.org>
Date: Wed, 14 Oct 2020 01:49:27 +0530
Subject: [PATCH] Update news list template

---
 website/layouts/news/list.html | 10 ++++++----
 website/static/css/style.css   |  4 +++-
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/website/layouts/news/list.html b/website/layouts/news/list.html
index ece0b5c..82433ae 100644
--- a/website/layouts/news/list.html
+++ b/website/layouts/news/list.html
@@ -2,11 +2,13 @@
 <section class="page">
     <h1 style="text-align: center;">News & Announcements</h1>
     {{ range .Pages}}
-    <h3><a class="link" href="{{.Permalink}}">{{.Title}}</a></h3>
-    <div class="list-item">
-        <small class="label-dark">{{ .PublishDate.Format "January 2, 2006" }}</small>
+    <div class="news-item">
+        <h3><a class="link" href="{{.Permalink}}">{{.Title}}</a></h3>
+        <div class="list-item">
+            <small class="label-dark">{{ .PublishDate.Format "January 2, 2006" }}</small>
+        </div>
+        <p>{{ .Summary }}</p>
     </div>
-    <p>{{ .Summary }}</p>
     {{end}}
 </section>
 {{end}}
diff --git a/website/static/css/style.css b/website/static/css/style.css
index b72463a..ad096ee 100644
--- a/website/static/css/style.css
+++ b/website/static/css/style.css
@@ -106,7 +106,9 @@ nav{
 .content p{
     text-align: justify;
 }
-
+.news-item{
+    margin-bottom: 24px;
+}
 @media screen and (max-width:1100px) {
     .show-menu-btn,.hide-menu-btn{
         display: block;
-- 
GitLab