From ff704c0849d1b7008eb4702a6cce15dc5c16b1e9 Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Mon, 5 Sep 2016 13:12:04 -0700 Subject: [PATCH] render posts after the first on the front page; not too much spacing --- theme/static/css/main.css | 3 --- theme/templates/index.html | 32 +++++--------------------------- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/theme/static/css/main.css b/theme/static/css/main.css index 4400a8b..d10a6a7 100644 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -128,8 +128,6 @@ h1, h2, h3, h4, h5, h6 { h1 { font-size: 2em; - margin: 0.67em 0; - padding: 0.7em 0 0.3em; } h1 a { @@ -176,7 +174,6 @@ pre { } hr { - margin: 40px 5% 60px 5%; color: #d6d6d6; box-shadow: 0.1em 0.1em 0.1em #EFEFEF; border-radius: 5px; diff --git a/theme/templates/index.html b/theme/templates/index.html index 8f82005..56079ac 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -4,33 +4,11 @@ {% block content %} {% for article in articles %} - - {% if loop.index == 1 %} - -
-

{{ article.title }}

- {{ article.content }} -
- -
- - {% if loop.length > 1 %} -
-

Last posts

-
    - {% endif %} - - {% elif loop.index < 7 %} -
  1. - {% include 'article_link.inc.html' %} -
  2. - {% endif %} - + +
    {% endfor %} -{% if articles|length > 1 %} -
-
-{% endif %} - {% endblock content %} -- 2.17.1