-
Notifications
You must be signed in to change notification settings - Fork 71
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
24 changed files
with
168 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<header class="header"> | ||
<h1 class="header-title"><%- title %></h1> | ||
<p class="header-subtitle"><%- subtitle %></p> | ||
<h1 class="header-title"><%= title %></h1> | ||
<p class="header-subtitle"><%= subtitle %></p> | ||
</header> |
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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<section class="comments"> | ||
<%- theme.comments.button && `<div class="btn" id="comments-btn">查看评论</div>` %> | ||
<% if (theme.comments.button) { %> | ||
<div class="btn" id="comments-btn">查看评论</div> | ||
<% } %> | ||
<%- partial('_partial/comments/' + theme.comments.type) %> | ||
</section> |
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,15 @@ | ||
<section class="head"> | ||
<%- image_tag(post_image(page.image), { draggable: "false" }) %> | ||
<div class="head-mask"> | ||
<h1 class="head-title"><%- page.title %></h1> | ||
<h1 class="head-title"><%= page.title %></h1> | ||
<div class="head-info"> | ||
<span class="post-info-item"><i class="iconfont iconcalendar"></i><%- date(page.date, "MMMM DD, YYYY") %></span> | ||
<% if(theme.leancloud.enable) { %> | ||
<span class="post-info-item"><i class="iconfont iconcalendar"></i><%= date(page.date, "MMMM DD, YYYY") %></span> | ||
<% if (theme.leancloud.enable) { %> | ||
<span class="post-info-item"> | ||
<i class="iconfont iconeye"></i><span id="<%- url_for(page.path) %>" class="leancloud" data-flag-title="<%- page.title %>"></span> | ||
</span> | ||
<% } %> | ||
<span class="post-info-item"><i class="iconfont iconfont-size"></i><%- strip_html(page.content).length %></span> | ||
<span class="post-info-item"><i class="iconfont iconfont-size"></i><%= strip_html(page.content).length %></span> | ||
</div> | ||
</div> | ||
</section> |
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,6 +1,6 @@ | ||
<% if (page.prev || page.next){ %> | ||
<% if (page.prev || page.next) { %> | ||
<nav class="nav"> | ||
<%- page.prev && `<a href="${url_for(page.prev.path)}"><i class="iconfont iconleft"></i>${page.prev.title}</a>` %> | ||
<%- page.next && `<a href="${url_for(page.next.path)}">${page.next.title}<i class="iconfont iconright"></i></a>` %> | ||
<%- page.prev ? `<a href="${url_for(page.prev.path)}"><i class="iconfont iconleft"></i>${page.prev.title}</a>` : `<a></a>` %> | ||
<%- page.next ? `<a href="${url_for(page.next.path)}">${page.next.title}<i class="iconfont iconright"></i></a>` : `<a></a>` %> | ||
</nav> | ||
<% } %> |
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,11 +1,35 @@ | ||
<%- theme.vendors.jquery_js ? js(theme.vendors.jquery_js) : js('lib/jquery/jquery.js') %> | ||
<%- theme.lazyload && (theme.vendors.lazyload_js ? js(theme.vendors.lazyload_js) : js('lib/lazyload/lazyload.js')) %> | ||
<%- theme.fancybox && (theme.vendors.fancybox_js ? js(theme.vendors.fancybox_js) : js('lib/fancybox/fancybox.js'))%> | ||
<%- theme.pjax && (theme.vendors.pjax_js ? js(theme.vendors.pjax_js) : js('lib/pjax/pjax.js')) %> | ||
<%- theme.qrcode.enable && (theme.vendors.qrcode_js ? js(theme.vendors.qrcode_js) : js('lib/qrcode/qrcode.js')) %> | ||
|
||
<% if (theme.lazyload) { %> | ||
<%- theme.vendors.lazyload_js ? js(theme.vendors.lazyload_js) : js('lib/lazyload/lazyload.js') %> | ||
<% } %> | ||
|
||
<% if (theme.fancybox) { %> | ||
<%- theme.vendors.fancybox_js ? js(theme.vendors.fancybox_js) : js('lib/fancybox/fancybox.js') %> | ||
<% } %> | ||
|
||
<% if (theme.pjax) { %> | ||
<%- theme.vendors.pjax_js ? js(theme.vendors.pjax_js) : js('lib/pjax/pjax.js') %> | ||
<% } %> | ||
|
||
<% if (theme.qrcode.enable) { %> | ||
<%- theme.vendors.qrcode_js ? js(theme.vendors.qrcode_js) : js('lib/qrcode/qrcode.js') %> | ||
<% } %> | ||
|
||
<%- js(['js/utils', 'js/script']) %> | ||
<%- theme.leancloud.enable && partial('_partial/plugins/visitors') %> | ||
|
||
<% if (theme.leancloud.enable) { %> | ||
<%- partial('_partial/plugins/visitors') %> | ||
<% } %> | ||
|
||
<%- partial('_partial/plugins/seo') %> | ||
|
||
<%- partial('_partial/plugins/analytics') %> | ||
<%- theme.custom.foot && theme.custom.foot %> | ||
<%- theme.custom.js && js(theme.custom.js) %> | ||
|
||
<% if (theme.custom.foot) { %> | ||
<%- theme.custom.foot %> | ||
<% } %> | ||
|
||
<% if (theme.custom.js) { %> | ||
<%- js(theme.custom.js) %> | ||
<% } %> |
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
Oops, something went wrong.