🚀 fix: pin top

This commit is contained in:
shenyu
2020-03-21 17:20:59 +08:00
parent a9473d4d22
commit 66a6390998
8 changed files with 17 additions and 20 deletions

View File

@@ -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') %> <% } %>
<% } %> <% } %>

View File

@@ -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>
<% } %>