优化文集内搜索文档结果的文档链接

This commit is contained in:
zmister 2022-08-20 15:37:47 +08:00
parent f7529f79da
commit 5692ff76a9

View File

@ -21,7 +21,7 @@
{% block page_content %}
{% for result in search_result %}
<div>
<p><a href="{% url 'doc' pro_id=project.id doc_id=result.id %}" target="_blank">{{ result.name }}</a> - <span style="font-size: 14px;color: #999;">{{result.modify_time}}</span></p>
<p><a href="{% url 'doc_id' doc_id=result.id %}" target="_blank">{{ result.name }}</a> - <span style="font-size: 14px;color: #999;">{{result.modify_time}}</span></p>
<p>{{ result.pre_content|truncatechars:300 }}</p>
</div>
<hr>