新主题

This commit is contained in:
结发受长生
2018-06-06 17:33:48 +08:00
parent de8e1887a6
commit c77caf259f
106 changed files with 28656 additions and 7 deletions
@@ -0,0 +1,14 @@
<script>
var yiliaConfig = {
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>,
toc_hide_index: <%=theme.toc_hide_index%>,
root: "<%=config.root%>",
showTags: <%=(theme.slider && theme.slider.showTags) ? true : false%>
}
</script>
<%- partial('script') %>
@@ -0,0 +1,15 @@
<article class="archive-article archive-type-<%= post.layout %>">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<%- partial('post/date', {class_name: 'archive-article-date', date_format: null}) %>
</div>
<%- partial('post/title', {class_name: 'archive-article-title'}) %>
<div class="article-info info-on-right">
<%- partial('post/tag') %>
<%- partial('post/category') %>
</div>
<div class="clearfix"></div>
</header>
</div>
</article>
+43
View File
@@ -0,0 +1,43 @@
<% if (pagination == 2){ %>
<% page.posts.each(function(post){ %>
<%- partial('article', {post: post, index: true}) %>
<% }) %>
<% if (page.total > 1){ %>
<nav id="page-nav">
<%- paginator({
prev_text: '&laquo; Prev',
next_text: 'Next &raquo;'
}) %>
</nav>
<% } %>
<% } else { %>
<% var last; %>
<% page.posts.each(function(post, i){ %>
<% var year = post.date.year(); %>
<% if (last != year){ %>
<% if (last != null){ %>
</div></section>
<% } %>
<% last = year; %>
<section class="archives-wrap">
<div class="archive-year-wrap">
<a href="<%- url_for('archives/' + year) %>" class="archive-year"><%= year %></a>
</div>
<div class="archives">
<% } %>
<%- partial('archive-post', {post: post, even: i % 2 == 0}) %>
<% }) %>
<% if (page.posts.length){ %>
</div></section>
<% } %>
<% if (page.total > 1){ %>
<nav id="page-nav">
<%- paginator({
prev_text: '&laquo; Prev',
next_text: 'Next &raquo;'
}) %>
</nav>
<% } %>
<% } %>
+132
View File
@@ -0,0 +1,132 @@
<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %> <%if(index){%> article-index<%}%>" itemscope itemprop="blogPost">
<div class="article-inner">
<% if (post.link || post.title){ %>
<header class="article-header">
<%- partial('post/title', {class_name: 'article-title'}) %>
<% if (!post.noDate){ %>
<%- partial('post/date', {class_name: 'archive-article-date', date_format: null}) %>
<% } %>
</header>
<% } %>
<div class="article-entry" itemprop="articleBody">
<% if (post.excerpt && index){ %>
<%- post.excerpt %>
<% if (theme.excerpt_link) { %>
<a class="article-more-a" href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %> >></a>
<% } %>
<% } else { %>
<%- post.content %>
<% } %>
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index){ %>
<div class="page-reward">
<a href="javascript:;" class="page-reward-btn tooltip-top">
<div class="tooltip tooltip-east">
<span class="tooltip-item">
</span>
<span class="tooltip-content">
<span class="tooltip-text">
<span class="tooltip-inner">
<p class="reward-p"><i class="icon icon-quo-left"></i><%= theme.reward_wording%><i class="icon icon-quo-right"></i></p>
<div class="reward-box">
<% if(theme.alipay) {%>
<div class="reward-box-item">
<img class="reward-img" src="<%= theme.alipay%>">
<span class="reward-type">支付宝</span>
</div>
<% } %>
<% if(theme.weixin) {%>
<div class="reward-box-item">
<img class="reward-img" src="<%= theme.weixin%>">
<span class="reward-type">微信</span>
</div>
<% } %>
</div>
</span>
</span>
</span>
</div>
</a>
</div>
<% } %>
</div>
<div class="article-info article-info-index">
<%if(post.top){%>
<div class="article-pop-out tagcloud">
<i class="icon-tuding"></i>
<a class="article-tag-list-link color3">置顶</a>
</div>
<% } %>
<%- partial('post/tag') %>
<%- partial('post/category') %>
<% if (index && theme.show_all_link){ %>
<p class="article-more-link">
<a class="article-more-a" href="<%- url_for(post.path) %>"><%= theme.show_all_link %> >></a>
</p>
<% } %>
<% if (!index && theme.share_jia){ %>
<%- partial('post/share') %>
<% } %>
<div class="clearfix"></div>
</div>
</div>
</article>
<% if (!index){ %>
<%- partial('post/nav') %>
<% } %>
<%- partial('_partial/aside') %>
<% if (!index && post.comments){ %>
<% if (theme.duoshuo){ %>
<%- partial('post/duoshuo', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% if (theme.wangyiyun){ %>
<%- partial('post/wangyiyun', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% if (theme.changyan_appid && theme.changyan_conf){ %>
<%- partial('post/changyan', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% if (theme.disqus || config.disqus_shortname){ %>
<section id="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '<%= theme.disqus || config.disqus_shortname %>'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>
<% } %>
<% if (theme.gitment_owner && theme.gitment_repo &&theme.gitment_oauth && theme.gitment_oauth.client_id && theme.gitment_oauth.client_secret){ %>
<%- partial('post/gitment', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% } %>
+28
View File
@@ -0,0 +1,28 @@
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<% if (theme.top){ %>
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
<% } %>
<% if (!index && ((theme.toc === 1 && post.toc) || theme.toc === 2)){ %>
<div class="toc-container tooltip-left">
<i class="icon-font icon-category"></i>
<div class="tooltip tooltip-east">
<span class="tooltip-item">
</span>
<span class="tooltip-content">
<div class="toc-article">
<%- toc(post.content) || theme.toc_empty_wording %>
</div>
</span>
</div>
</div>
<% } %>
</div>
</aside>
@@ -0,0 +1,11 @@
<% if (theme.baidu_analytics){ %>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?<%= theme.baidu_analytics %>";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<% } %>
+12
View File
@@ -0,0 +1,12 @@
<footer id="footer">
<div class="outer">
<div id="footer-info">
<div class="footer-left">
&copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>
</div>
<div class="footer-right">
<a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/litten/hexo-theme-yilia" target="_blank">Yilia</a> by Litten
</div>
</div>
</div>
</footer>
@@ -0,0 +1,14 @@
<% if (theme.google_analytics){ %>
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '<%= theme.google_analytics %>', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<% } %>
+43
View File
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%
var title = page.title;
if (is_archive()){
title = 'Archives';
if (is_month()){
title += ': ' + page.year + '/' + page.month;
} else if (is_year()){
title += ': ' + page.year;
}
} else if (is_category()){
title = 'Category: ' + page.category;
} else if (is_tag()){
title = 'Tag: ' + page.tag;
}
%>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<link rel="dns-prefetch" href="<%= config.url %>">
<title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<%- open_graph({twitter_id: theme.twitter, google_plus: theme.google_plus, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %>
<% if (theme.rss){ %>
<link rel="alternative" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
<% } %>
<% if (theme.favicon){ %>
<link rel="icon" href="<%- theme.favicon %>">
<% } %>
<link rel="stylesheet" type="text/css" href="<%= config.root %>style.css">
<style type="text/css">
<% var defaultCtnBg = 'linear-gradient(200deg,#a0cfe4,#e8c37e)' %>
#container.show {
background: <%= theme.style && theme.style.slider ? theme.style.slider : defaultCtnBg %>;
}
</style>
<%- partial('google-analytics') %>
<%- partial('baidu-analytics') %>
</head>
+32
View File
@@ -0,0 +1,32 @@
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="<%- url_for() %>" id="logo"><%= config.title %></a>
</h1>
<% if (theme.subtitle){ %>
<h2 id="subtitle-wrap">
<a href="<%- url_for() %>" id="subtitle"><%= theme.subtitle %></a>
</h2>
<% } %>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<% for (var i in theme.menu){ %>
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
</nav>
<nav id="sub-nav">
<% if (theme.rss){ %>
<a id="nav-rss-link" class="nav-icon" href="<%- theme.rss %>" title="RSS Feed"></a>
<% } %>
<a id="nav-search-btn" class="nav-icon" title="Search"></a>
</nav>
<div id="search-form-wrap">
<%- search_form({button: '&#xF002;'}) %>
</div>
</div>
</div>
</header>
+37
View File
@@ -0,0 +1,37 @@
<% var defaultBg = '#4d4d4d'; %>
<div class="overlay" style="background: <%= theme.style && theme.style.header ? theme.style.header : defaultBg %>"></div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="<%=theme.root%>" class="profilepic">
<img src="<%=theme.avatar%>" class="js-avatar">
</a>
<hgroup>
<h1 class="header-author"><a href="<%=theme.root%>"><%=theme.author%></a></h1>
</hgroup>
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<nav class="header-menu">
<ul>
<% for (var i in theme.menu){ %>
<li><a href="<%- url_for(theme.menu[i]) %>"><%= i %></a></li>
<%}%>
</ul>
</nav>
<nav class="header-smart-menu">
<% for (var i in theme.smart_menu){ %>
<% if(theme.smart_menu[i]){ %>
<a @click="openSlider($event, '<%-i%>')" href="javascript:void(0)"><%= theme.smart_menu[i] %></a>
<% } %>
<% } %>
</nav>
<nav class="header-nav">
<div class="social">
<% for (var i in theme.subnav){ %>
<a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"><i class="icon-<%= i %>"></i></a>
<%}%>
</div>
</nav>
</header>
</div>
@@ -0,0 +1,43 @@
<% var defaultBg = '#4d4d4d'; %>
<nav id="mobile-nav">
<div class="overlay js-overlay" style="background: <%= theme.style && theme.style.header ? theme.style.header : defaultBg %>"></div>
<div class="btnctn js-mobile-btnctn">
<div class="slider-trigger list" @click="openSlider($event, 'innerArchive')"><i class="icon icon-sort"></i></div>
</div>
<div class="intrude-less">
<header id="header" class="inner">
<div class="profilepic">
<img src="<%=theme.avatar%>" class="js-avatar">
</div>
<hgroup>
<h1 class="header-author js-header-author"><%=theme.author%></h1>
</hgroup>
<% if (theme.subtitle){ %>
<p class="header-subtitle"><i class="icon icon-quo-left"></i><%=theme.subtitle%><i class="icon icon-quo-right"></i></p>
<% } %>
<% var count = 0%>
<% for (var i in theme.menu){ %>
<% count++ %>
<% } %>
<% var ulWidth = count > 2 ? '70%' : '50%' %>
<nav class="header-nav">
<div class="social">
<% for (var i in theme.subnav){ %>
<a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"><i class="icon-<%= i %>"></i></a>
<%}%>
</div>
</nav>
<nav class="header-menu js-header-menu">
<ul style="width: <%= ulWidth %>">
<% var divide = 100 / count + '%' %>
<% for (var i in theme.menu){ %>
<li style="width: <%= divide %>"><a href="<%- url_for(theme.menu[i]) %>"><%= i %></a></li>
<%}%>
</ul>
</nav>
</header>
</div>
<div class="mobile-mask" style="display:none" q-show="isShow"></div>
</nav>
@@ -0,0 +1,12 @@
<% if (post.categories && post.categories.length){ %>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<% post.categories.forEach(function(category, i){ %>
<li class="article-tag-list-item">
<a href="javascript:void(0);" class="js-tag article-tag-list-link color<%= category.name.length % 5 + 1 %>"><%-category.name%></a>
</li>
<% }) %>
</ul>
</div>
<% } %>
@@ -0,0 +1,9 @@
<div id="SOHUCS" sid="<%=key%>" ></div>
<script charset="utf-8" type="text/javascript" src="//changyan.sohu.com/upload/changyan.js" ></script>
<script type="text/javascript">
window.changyan.api.config({
appid: "<%=theme.changyan_appid%>",
conf: "<%=theme.changyan_conf%>"
});
</script>
</script>
@@ -0,0 +1,3 @@
<a href="<%- url_for(post.path) %>" class="<%= class_name %>">
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><i class="icon-calendar icon"></i><%= date(post.date, date_format) %></time>
</a>
@@ -0,0 +1,18 @@
<div class="duoshuo">
<!-- 多说评论框 start -->
<div class="ds-thread" data-thread-key="<%=key%>" data-title="<%=title%>" data-url="<%=url%>"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"<%=theme.duoshuo%>"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
</div>
@@ -0,0 +1,16 @@
<div id="gitment-ctn"></div>
<link rel="stylesheet" href="//imsun.github.io/gitment/style/default.css">
<script src="//imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
(function(){
new Gitment({
id: "<%=url%>",
owner: '<%=theme.gitment_owner%>',
repo: '<%=theme.gitment_repo%>',
oauth: {
client_id: '<%=theme.gitment_oauth.client_id%>',
client_secret: '<%=theme.gitment_oauth.client_secret%>'
}
}).render('gitment-ctn')
})()
</script>
+22
View File
@@ -0,0 +1,22 @@
<% if (post.prev || post.next){ %>
<nav id="article-nav">
<% if (post.prev){ %>
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">
<% if (post.prev.title){ %>
<%= post.prev.title %>
<% } else { %>
(no title)
<% } %>
</div>
</a>
<% } %>
<% if (post.next){ %>
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title"><%= post.next.title %></div>
<i class="icon-circle-right"></i>
</a>
<% } %>
</nav>
<% } %>
@@ -0,0 +1,53 @@
<%
var sUrl = url.replace(/index\.html$/, '');
sUrl = /^(http:|https:)\/\//.test(sUrl) ? sUrl : 'http:' + sUrl;
%>
<div class="share-btn share-icons tooltip-left">
<div class="tooltip tooltip-east">
<span class="tooltip-item">
<a href="javascript:;" class="share-sns share-outer">
<i class="icon icon-share"></i>
</a>
</span>
<span class="tooltip-content">
<div class="share-wrap">
<div class="share-icons">
<a class="weibo share-sns" href="javascript:;" data-type="weibo">
<i class="icon icon-weibo"></i>
</a>
<a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
<i class="icon icon-weixin"></i>
</a>
<a class="qq share-sns" href="javascript:;" data-type="qq">
<i class="icon icon-qq"></i>
</a>
<a class="douban share-sns" href="javascript:;" data-type="douban">
<i class="icon icon-douban"></i>
</a>
<a class="qzone share-sns" href="javascript:;" data-type="qzone">
<i class="icon icon-qzone"></i>
</a>
<a class="facebook share-sns" href="javascript:;" data-type="facebook">
<i class="icon icon-facebook"></i>
</a>
<a class="twitter share-sns" href="javascript:;" data-type="twitter">
<i class="icon icon-twitter"></i>
</a>
<a class="google share-sns" href="javascript:;" data-type="google">
<i class="icon icon-google"></i>
</a>
</div>
</div>
</span>
</div>
</div>
<div class="page-modal wx-share js-wx-box">
<a class="close js-modal-close" href="javascript:;"><i class="icon icon-close"></i></a>
<p>扫一扫分享到微信</p>
<div class="wx-qrcode">
<img src="<%- 'qrcode' in locals ? qrcode(sUrl) : '//pan.baidu.com/share/qrcode?url=' + sUrl %>" alt="微信分享二维码">
</div>
</div>
<div class="mask js-mask"></div>
+12
View File
@@ -0,0 +1,12 @@
<% if (post.tags && post.tags.length){ %>
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<% post.tags.forEach(function(tag, i){ %>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color<%= tag.name.length % 5 + 1 %>"><%-tag.name%></a>
</li>
<% }) %>
</ul>
</div>
<% } %>
@@ -0,0 +1,15 @@
<% if (post.link){ %>
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><%= post.title %></a>
</h1>
<% } else if (post.title){ %>
<% if (index){ %>
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.path) %>"><%= post.title %></a>
</h1>
<% } else { %>
<h1 class="<%= class_name %>" itemprop="name">
<%= post.title %>
</h1>
<% } %>
<% } %>
@@ -0,0 +1,10 @@
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
<script>
var cloudTieConfig = {
url: "<%=url%>",
sourceId: "<%=key%>",
productKey: "<%=theme.wangyiyun%>",
target: "cloud-tie-wrapper"
};
</script>
<script src="//img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
+1
View File
@@ -0,0 +1 @@
<%- js('js/mobile.bc3ac97a4b2208729e1e.js') %> <%- js('js/slider.aa150152ad0b4e146925.js') %> <%- js('js/main.f26f0d0b8a2e2ae348ae.js') %>
+128
View File
@@ -0,0 +1,128 @@
<%
var hasInnerArchive = theme.smart_menu.innerArchive
var hasFriends = theme.smart_menu.friends
var hasAboutme = theme.smart_menu.aboutme
%>
<div class="tools-col" :class="{show:isShow,hide:!isShow}" @click="stop">
<div class="tools-nav header-menu">
<%
var count = 0
for(let menu_name in theme.smart_menu) {
if(theme.smart_menu[menu_name]) count++
}
%>
<ul style="width:70%">
<% var divide = 100 / count + '%' %>
<% for (let menu_name in theme.smart_menu){ %>
<% if(theme.smart_menu[menu_name]){ %>
<li style="width: <%= divide %>" @click="openSlider($event, '<%-menu_name%>')"><a href="javascript:void(0)" :class="{active:<%-menu_name%>}"><%= theme.smart_menu[menu_name] %></a></li>
<% } %>
<% } %>
</ul>
</div>
<div class="tools-wrap">
<%if(hasInnerArchive){%>
<section class="tools-section tools-section-all" v-show="innerArchive">
<div class="search-wrap">
<input class="search-ipt" v-model="search" type="text" placeholder="文章搜索…">
<i class="icon-search icon" v-show="!search"></i>
<i class="icon-close icon" v-show="search" @click="clearChose"></i>
</div>
<div class="widget tagcloud search-tag">
<div>
<label class="search-tag-wording">标签:</label>
<label class="search-switch">
<input type="checkbox" @click="showTags=!showTags" >
</label>
<label class="search-tag-wording">分类:</label>
<label class="search-switch">
<input type="checkbox" @click="showCategories=!showCategories" >
</label>
</div>
<ul class="article-tag-list" v-show="showTags">
<% site.tags.forEach(function(tag, i){ %>
<li class="article-tag-list-item">
<a href="javascript:void(0)" @click="chose('<%-tag.name%>','#')" class="js-tag color<%= tag.name.length % 5 + 1 %>"><%-tag.name%></a>
</li>
<% }) %>
<div class="clearfix"></div>
</ul>
<ul class="article-tag-list" v-show="showCategories">
<% site.categories.forEach(function(category, i){ %>
<li class="article-tag-list-item">
<a href="javascript:void(0)" @click="chose('<%-category.name%>','$')" class="js-tag color<%= category.name.length % 5 + 1 %>"><%-category.name%></a>
</li>
<% }) %>
<div class="clearfix"></div>
</ul>
</div>
<ul class="search-ul">
<p v-if="jsonFail" style="padding: 20px; font-size: 12px;">
缺失模块<br/>1请确保node版本大于6.2<br/>2在博客根目录注意不是yilia根目录执行以下命令<br/> npm i hexo-generator-json-content --save<br/><br/>
3在根目录_config.yml里添加配置
<pre style="font-size: 12px;" v-if="jsonFail">
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true
</pre>
</p>
<li class="search-li" v-for="item in items" v-show="!item.isHide">
<a :href="item.path|urlformat" class="search-title"><i class="icon-quo-left icon"></i>
<span>{{item.title}}</span>
</a>
<p class="search-time">
<i class="icon-calendar icon"></i>
<span >{{item.date|dateformat}}</span>
</p>
<p class="search-category">
<i class="icon-book icon"></i>
<span v-for="category in item.categories" @click="chose(category.name, '$')" >{{'$'+category.name}}</span>
</p>
<p class="search-tag">
<i class="icon-price-tags icon"></i>
<span v-for="tag in item.tags" @click="chose(tag.name, '#')" >{{'#'+tag.name}}</span>
</p>
</li>
</ul>
</section>
<%}%>
<%if(hasFriends){%>
<section class="tools-section tools-section-friends" v-show="friends">
<%if(theme.friends && theme.friends.length != 0){%>
<ul class="search-ul">
<% for (var i in theme.friends){ %>
<li class="search-li">
<a href="<%- url_for(theme.friends[i]) %>" target="_blank" class="search-title"><i class="icon-quo-left icon"></i><%= i %></a>
</li>
<% } %>
</ul>
<%}%>
</section>
<%}%>
<%if(hasAboutme){%>
<section class="tools-section tools-section-me" v-show="aboutme">
<%if(theme.aboutme){%>
<div class="aboutme-wrap" id="js-aboutme"><%=theme.aboutme%></div>
<%}%>
</section>
<%}%>
</div>
</div>
+66
View File
@@ -0,0 +1,66 @@
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe.
It's a separate element as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides.
PhotoSwipe keeps only 3 of them in the DOM to save memory.
Don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader--active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
+1
View File
@@ -0,0 +1 @@
<%- partial('_partial/archive', {pagination: config.archive, index: true}) %>
+1
View File
@@ -0,0 +1 @@
<%- partial('_partial/archive', {pagination: config.category, index: true}) %>
+1
View File
@@ -0,0 +1 @@
<%- partial('_partial/archive', {pagination: 2, index: true}) %>
+27
View File
@@ -0,0 +1,27 @@
<%- partial('_partial/head') %>
<body>
<div id="container" :class="{show:isCtnShow}" @click="hideSlider">
<canvas id="anm-canvas" class="anm-canvas"></canvas>
<div class="left-col" :class="{show:isShow}">
<%- partial('_partial/left-col', null, {cache: !config.relative_link}) %>
</div>
<div class="mid-col" :class="{show:isShow,hide:!isShow}">
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %>
<div id="wrapper" class="body-wrap">
<div class="menu-l">
<div class="canvas-wrap">
<canvas data-colors="#eaeaea" data-sectionHeight="100" data-contentId="js-content" id="myCanvas1" class="anm-canvas"></canvas>
</div>
<div id="js-content" class="content-ll">
<%- body %>
</div>
</div>
</div>
<%- partial('_partial/footer') %>
</div>
<%- partial('_partial/tools') %>
<%- partial('_partial/viewer') %>
</div>
<%- partial('_partial/after-footer') %>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
<%- partial('_partial/article', {post: page, index: false}) %>
+1
View File
@@ -0,0 +1 @@
<%- partial('_partial/article', {post: page, index: false}) %>
+1
View File
@@ -0,0 +1 @@
<%- partial('_partial/archive', {pagination: config.tag, index: true}) %>