Skip to content

Commit 9e6de58

Browse files
committed
增加置顶标签
1 parent 96cb9af commit 9e6de58

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

templates/blog/tags/article_info.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@
66

77
<h1 class="entry-title">
88
{% if isindex %}
9-
<a href="{{ article.get_absolute_url }}"
10-
rel="bookmark">{{ article.title }}</a>
9+
{% if article.article_order > 0 %}
10+
<a href="{{ article.get_absolute_url }}"
11+
rel="bookmark">【置顶】{{ article.title }}</a>
12+
{% else %}
13+
<a href="{{ article.get_absolute_url }}"
14+
rel="bookmark">{{ article.title }}</a>
15+
{% endif %}
16+
1117
{% else %}
1218
{{ article.title }}
1319
{% endif %}

0 commit comments

Comments
 (0)