{% extends 'blog/base.html' %} {% block title %}{{ title }}{% endblock %} {% block extra_head %}{% endblock %} {% block content %}

{{ title }}

{{ result_count }} 条公开记录

{% if posts %}
{% for post in posts %}
{{ post.category.name }}

{{ post.title }}

{{ post.summary|default:"暂无摘要"|truncatechars:40 }}

{% if user.is_authenticated %}
{% csrf_token %} {% if post.pk in saved_ids %} {% else %} {% endif %}
{% endif %}
{% endfor %}
{% else %}

当前没有公开笔记。

{% endif %} {% if is_paginated %} {% endif %} {% endblock %}