fix 'change the push_date into right'

This commit is contained in:
2025-07-26 21:06:24 +08:00
parent 8401704aa6
commit a32cd6aadd
7 changed files with 70 additions and 6 deletions

View File

@@ -11,8 +11,10 @@
<ul style="list-style: none; padding: 0;">
{% for post in posts %}
<li style="margin: 10px 0; text-align: left;">
<a href="{% url 'detail' post.id %}">{{ post.title }}</a> -
发布时间:{{ post.publish_date|date:"Y年n月j日 H:i" }}
<div style="display: flex; justify-content: space-between; align-items: center;">
<a href="{% url 'detail' post.id %}">{{ post.title }}</a>
<span style="margin-left: 10px; white-space: nowrap;">发布时间:{{ post.publish_date|date:"Y年n月j日 H:i" }}</span>
</div>
</li>
{% endfor %}
</ul>
@@ -21,7 +23,4 @@
<a href="https://beian.miit.gov.cn/" target="_blank">闽ICP备2023010767号-2</a>
</footer>
</body>
</html>
</html>