11<!-- Jekyll生成的HTML列表默认隐藏,由React重新加载 -->
22< section id ="index-list-wrapper ">
3- < ul class ="index-ul ">
3+ < ul class ="index-ul " style =" display: none; " >
44 {% for post in site.posts %}
5- {%- if post.categories contains index-category and post.hideFromIndex != true and post.pin == true %}
6- < li class ="index-li index-li--pin " style =" display: none; ">
5+ {%- if post.categories contains index-category and post.hideFromIndex != true and post.pinned == true %}
6+ < li class ="index-li ">
77 < a class ="index-a mdc-card index-card " href ="{{ post.url }} ">
88 < section >
99 < h1 class ="index-title "> {{ post.title }}</ h1 >
1010 < span class ="index-author "> {% if post.moreDate != null %}{{ post.moreDate }}{% endif %} {{ post.author }}</ span >
1111 < span class ="index-date "> {{ post.date | date: "%Y年%m月%d日" }}</ span >
12- < i class ="material-symbols-rounded-light index-pin -icon "> keep</ i >
12+ < i class ="material-symbols-rounded-light index-pinned -icon "> keep</ i >
1313 </ section >
1414 </ a >
1515 < hr class ="index-li-divider " />
@@ -22,12 +22,15 @@ <h1 class="index-title">{{ post.title }}</h1>
2222 {%- break %}
2323 {% endif -%}
2424 {%- if post.categories contains index-category and post.hideFromIndex != true -%}
25- < li class ="index-li " style =" display: none; " >
25+ < li class ="index-li ">
2626 < a class ="index-a mdc-card index-card " href ="{{ post.url }} ">
2727 < section >
2828 < h1 class ="index-title "> {{ post.title }}</ h1 >
2929 < span class ="index-author "> {% if post.moreDate != null %}{{ post.moreDate }}{% endif %} {{ post.author }}</ span >
3030 < span class ="index-date "> {{ post.date | date: "%Y年%m月%d日" }}</ span >
31+ {%- if post.featured == true %}
32+ < i class ="material-symbols-rounded-light index-featured-icon "> editor_choice</ i >
33+ {%- endif %}
3134 </ section >
3235 </ a >
3336 < hr class ="index-li-divider " />
0 commit comments