From b8d53a4c2ed2c3b21d24f215ce580c15417839b3 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 1 Apr 2026 22:34:13 +0800 Subject: [PATCH] =?UTF-8?q?update.=20=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=80=BB=E6=95=B0=E6=98=AF=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E6=9C=80=E5=90=8E=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=8D=A0=E6=95=B4=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/front/index.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/templates/front/index.html b/templates/front/index.html index f27ad58..866c66b 100644 --- a/templates/front/index.html +++ b/templates/front/index.html @@ -64,14 +64,21 @@ +
{% for section in section_data %} - {#
#} -
- {% url "front:main_list" main=section.key as card_more_url %} - {% include 'components/_news_card.html' with data=section.data unique_id=section.key more_url=card_more_url %} -
+ {% if forloop.revcounter == 1 and forloop.counter|add:"0"|divisibleby:"2" == False %} + +
+ {% url "front:main_list" main=section.key as card_more_url %} + {% include 'components/_news_card.html' with data=section.data unique_id=section.key more_url=card_more_url %} +
+ {% else %} +
+ {% url "front:main_list" main=section.key as card_more_url %} + {% include 'components/_news_card.html' with data=section.data unique_id=section.key more_url=card_more_url %} +
+ {% endif %} {% endfor %}
- {% endblock %}