🚀 fix: pin top
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
<% } else if (post.title){ %> <% if (index){ %>
|
||||
<h2 itemprop="name">
|
||||
<a class="<%= class_name %>" href="<%- url_for(post.path) %>"
|
||||
><%= post.title %></a
|
||||
>
|
||||
><%= post.title %><%- partial('topping') %></a>
|
||||
</h2>
|
||||
<% } else { %>
|
||||
<h1 class="<%= class_name %> sea-center" style="border-left:0" itemprop="name">
|
||||
<%= post.title %>
|
||||
</h1>
|
||||
<% } %> <%- partial('topping') %> <% } %>
|
||||
<% } %> <% } %>
|
||||
|
@@ -1,5 +1,3 @@
|
||||
<% if (is_home() && post.top) { %>
|
||||
<div class="article-topping">
|
||||
<i class="ri-umbrella-line"></i>
|
||||
</div>
|
||||
<i class="article-topping">置顶</i>
|
||||
<% } %>
|
Reference in New Issue
Block a user