{% extends "_common/base.html" %} {% block css %} {% load avatar_tags %}{% load day_util %} {% load page_tag %} /* class to hide content visually leaving it available to screenreaders. See notes in cookbook recipe. https://github.com/h5bp/html5-boilerplate/issues/1985#issuecomment-394096182 https://medium.com/@matuzo/writing-css-with-accessibility-in-mind-8514a0007939 */ .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: auto; margin: 0; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; } nav { display: flex; justify-content: right; border-top: 1px solid #eee; margin-top: 1em; padding-top: .5em; } /* 容器 & 布局保持不变 */ .pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding: 0.75rem 0; margin: 0; list-style: none; } .pagination li { list-style: none; } /* 普通按钮 */ .pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5em; height: 2.5em; padding: 0 0.5em; border: 1px solid #ddd; border-radius: 0.4em; background-color: #fff; color: var(--text); font-size: 1rem; text-decoration: none; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s; cursor: pointer; } /* 悬停态:浅灰背景,深灰文字 */ .pagination a:hover { background-color: #f2f2f2; color: #111; } /* 聚焦态:灰黑色光环 */ .pagination a:focus { outline: none; box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.3); } /* 当前页(Active) */ .pagination li.active a { background-color: var(--primary); border-color: var(--primary); color: #fff; pointer-events: none; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.15); } /* 禁用态(上一页/下一页边界) */ .pagination li.disabled span { color: #ccc; border-color: #eee; background-color: #fafafa; cursor: not-allowed; } {% endblock %} {% block container %}

{{ current_category }}

{% for item in articles %} {% if item.status == 1 %} {% if item.type == 1 %}
{{ item.created_time | days_until }}
{{ item.user__first_name }}{{ item.user__last_name }} 发布了{{ item.category__name }}:{{ item.title }} {% if is_login %} {% endif %}
{{ item.intro }}    Tags: {% for tag in item.tags %} {{ tag }} {% endfor %}
{% elif item.type == 2 %}
{{ item.created_time | days_until }}
{{ item.user__first_name }}{{ item.user__last_name }} 发布了{{ item.category__name }}:{{ item.title }} {% if is_login %} {% endif %}
{% autoescape off %}
{{ item.html_text }}
{% endautoescape %}
{% endif %} {% endif %} {% endfor %}

搜索

归档

{% for record in records %} {{ record.datetime }} ({{ record.count }}) {% endfor %}

Top

{% for tag in tags %} {{ tag.name }} ({{ tag.count }}) {% endfor %}
{% endblock %} {% block js %} {% endblock %} {% load static %}