Skip to content

Commit

Permalink
添加文章置顶和置顶标签
Browse files Browse the repository at this point in the history
  • Loading branch information
nqmysb2017 committed Mar 13, 2019
1 parent 43d3b14 commit 9a04b24
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions node_modules/hexo-generator-index/lib/generator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions source/_posts/hexo-theme-huweihuang.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ toc_nav_num: true
date: 2017-09-18 10:51:24
subtitle: "This is hexo theme Demo."
header-img: "/img/article_header/article_header.png"
top: 9
tags:
- Hexo
catagories:
Expand Down
8 changes: 8 additions & 0 deletions themes/huweihuang/layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ layout: page
<a href="<%- config.root %><%- post.path %>">
<h2 class="post-title">
<% if (post.top){ %>
<i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
<!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
<!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
<font color=#F4711F>置顶</font>
<!-- <font color=#F89E8C>置顶</font> -->
<!-- <font color=#1CB7ED>置顶</font> -->
<% } %>
<%- post.title || "Untitled" %>
</h2>
<h3 class="post-subtitle">
Expand Down

0 comments on commit 9a04b24

Please sign in to comment.