{# 首页(/):文章流在这里分页,不生成归档页。 #} {% extends "base.html" %} {% block content %} {% if pagination.current_page == 1 %} {% if hero_image_url %} {# 报头式首屏:只有照片与右下角的小字说明。标题保留给屏幕阅读器。 #} {{ site.hero_title }} {% if site.hero_subtitle %} {{ site.hero_subtitle }} {% endif %} {% else %} {{ site.hero_title }} {% if site.hero_subtitle %} {{ site.hero_subtitle }} {% endif %} {% endif %} {% endif %} {% if pagination.current_page == 1 %} {{ ui('writing') }}({{ post_count }}) {% else %} {{ ui('writing') }} {% endif %} {% include "postlist.html" %} {% if pagination.total_pages > 1 %} {% if pagination.previous_url %} ← {{ ui('newer') }} {% endif %} {{ pagination.current_page }} / {{ pagination.total_pages }} {% if pagination.next_url %} {{ ui('older') }} → {% endif %} {% endif %} {% if projects and pagination.current_page == 1 %} {{ ui('projects') }} {% for project in projects %} {{ project.name }} {% if project.description %} {{ project.description }} {% endif %} {% endfor %} {% endif %} {% endblock %}
{{ site.hero_subtitle }}
{{ project.description }}