From 9a3ac7e5719df7da33ee4d2a13382c455c4de3dc Mon Sep 17 00:00:00 2001 From: Emmanuel Godard <emmanuel.godard@lis-lab.fr> Date: Wed, 7 Dec 2022 23:40:44 +0100 Subject: [PATCH] INDEX content --- static/css/main.css | 4 ++++ templates/index.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/css/main.css b/static/css/main.css index 7f1b0d5..636ccb9 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -243,6 +243,10 @@ time { font-size: 0.8em; } +#container main p { + margin-top: 1rem; +} + .meta-aside, #container main section#home ul li aside, #container main article aside { diff --git a/templates/index.html b/templates/index.html index b73fa39..30690b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,8 @@ {% extends "base.html" %} {% block content %} <main> - <section id="home"> + {% if INDEX %}<section>{{ INDEX }}</section>{% endif %} + <section id="home"> <ul> {% for article in articles_page.object_list %} <li> -- GitLab