-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{!< default}} | ||
|
||
{{#post}} | ||
<header> | ||
<div class="post-blog-title"><a href="{{@blog.url}}"><i class="iconfont icon-back"></i> {{@blog.title}}</a></div> | ||
</header> | ||
|
||
<main role="main"> | ||
<article class="page-archives"> | ||
<header class="post-header short-diver"> | ||
<h1 class="post-title">标签</h1> | ||
<section class="post-meta"> | ||
{{#get "tags" as |tags postTags|}} | ||
共有{{postTags.total}}个标签 | ||
{{/get}} | ||
</section> | ||
</header> | ||
|
||
<div class="left"> | ||
{{> "tag-cloud"}} | ||
</div> | ||
|
||
</article> | ||
</main> | ||
|
||
{{/post}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{{!-- <div id="toc-panel"> | ||
<ul data-toc="div.container" data-toc-headings="h2,h3,h4"></ul> | ||
</div> --}} | ||
<div id="toc"></div> | ||
|
||
{{!-- <script src="{{asset "js/jquery.toc.js"}}"></script> --}} | ||
{{!-- 引入 支持文件 及 Tocify 插件 --}} | ||
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script> | ||
<script src="https://cdn.bootcss.com/jquery.tocify/1.9.0/javascripts/jquery.tocify.min.js"></script> | ||
|
||
{{!-- 配置及生成目录 --}} | ||
<script> | ||
var toc = $("#toc").tocify({ | ||
selectors: "h2,h3,h4,h5", | ||
extendPage: false, | ||
highlightDefault: false | ||
selectors: "h2,h3,h4,h5", // 选择要筛选的标题 | ||
extendPage: false, // 页面不够长时拉长页面,这里选择关闭因为感觉留出大片空白不好看- - | ||
highlightDefault: false // 自动高亮第一条 | ||
}); | ||
</script> |