{% extends "base.html" %} {% block title %}首页 - 社区平台{% endblock %} {% block content %}

欢迎来到社区平台

交流学习、分享知识、共同成长

{{ total_users }}
注册用户
{{ total_topics }}
论坛主题
{{ total_articles }}
知识文章
{% if announcements %}
最新公告 查看全部 →
{% for item in announcements %}
{% if item.is_pinned %}置顶 {% endif %} {{ item.title }}
{{ item.created_at.strftime('%Y-%m-%d %H:%M') }}
{% endfor %}
{% endif %}
最新论坛话题 进入论坛 →
{% if recent_topics %} {% for topic in recent_topics %}
{{ topic.title }}
{{ topic.author_name }} {{ topic.reply_count }} 回复 {{ topic.created_at.strftime('%m-%d %H:%M') }}
{% endfor %} {% else %}

暂无话题

{% endif %}
最新知识文章 进入知识库 →
{% if recent_articles %} {% for article in recent_articles %}
{{ article.title }}
{{ article.category }} {{ article.author_name }} {{ article.created_at.strftime('%m-%d %H:%M') }}
{% endfor %} {% else %}

暂无文章

{% endif %}
{% endblock %}