moxfive / hexo-theme-yelee Goto Github PK
View Code? Open in Web Editor NEWThis project forked from litten/hexo-theme-yilia
简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.
Home Page: http://moxfive.xyz/
This project forked from litten/hexo-theme-yilia
简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.
Home Page: http://moxfive.xyz/
请问背景图的长宽应为什么,另外配置为0的时候的灰白背景样式可以在什么地方修改,谢谢
因為我的blog有收集一些新聞給朋友用…
今天試了一下只留了一個主文章在_posts資料夾,
把分開的咨詢放到其他資料夾(這樣測試就不顯示在主頁了)
但是加分類的時候報錯……
標籤沒有報錯但是發現無法在標籤頁顯示
請問這個是?
Unhandled rejection TypeError: /home/pi/blog/themes/yelee/layout/page.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
/home/pi/blog/themes/yelee/layout/_partial/article.ejs:17
15| <% if (!index){ %>
16| <div class="article-info article-info-post">
>> 17| <%- partial('post/category') %>
18| <%- partial('post/tag') %>
19| <div class="clearfix"></div>
20| </div>
/home/pi/blog/themes/yelee/layout/_partial /post/category.ejs:3
1| <% if (post.categories && post.categories.length){ %>
2| <div class="article-category tagcloud">
>> 3| <%- list_categories(post.categories, {
4| show_count: false,
5| class: 'article-category',
6| style: 'none',
#<Object> is not a function
at Array.find (native)
at prepareQuery (/home/pi/blog/node_modules/hexo/lib/plugins/helper/list_categories.js:35:23)
at flatList (/home/pi/blog/node_modules/hexo/lib/plugins/helper/list_categories.js:95:5)
at Object.listCategoriesHelper (/home/pi/blog/node_modules/hexo/lib/plugins/helper/list_categories.js:118:15)
at eval (eval at <anonymous> (/home/pi/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:167)
at eval (eval at <anonymous> (/home/pi/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:35:70)
at /home/pi/blog/node_modules/ejs/lib/ejs.js:255:15
at Object.exports.render (/home/pi/blog/node_modules/ejs/lib/ejs.js:293:13)
at Hexo.ejsRenderer (/home/pi/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:7:14)
at Render.renderSync (/home/pi/blog/node_modules/hexo/lib/hexo/render.js:87:23)
at View.renderSync (/home/pi/blog/node_modules/hexo/lib/theme/view.js:50:29)
at Object.partial (/home/pi/blog/node_modules/hexo/lib/plugins/helper/partial.js:42:19)
at eval (eval at <anonymous> (/home/pi/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:1013)
at eval (eval at <anonymous> (/home/pi/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:38:454)
at /home/pi/blog/node_modules/ejs/lib/ejs.js:255:15
at Object.exports.render (/home/pi/blog/node_modules/ejs/lib/ejs.js:293:13)
at Hexo.ejsRenderer (/home/pi/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:7:14)
at Render.renderSync (/home/pi/blog/node_modules/hexo/lib/hexo/render.js:87:23)
at View.renderSync (/home/pi/blog/node_modules/hexo/lib/theme/view.js:50:29)
at Object.partial (/home/pi/blog/node_modules/hexo/lib/plugins/helper/partial.js:42:19)
at eval (eval at <anonymous> (/home/pi/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:35)
at eval (eval at <anonymous> (/home/pi/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:101)
at /home/pi/blog/node_modules/ejs/lib/ejs.js:255:15
at Object.exports.render (/home/pi/blog/node_modules/ejs/lib/ejs.js:293:13)
at Hexo.ejsRenderer (/home/pi/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:7:14)
at Hexo.tryCatcher (/home/pi/blog/node_modules/bluebird/js/main/util.js:26:23)
at Hexo.<anonymous> (/home/pi/blog/node_modules/bluebird/js/main/method.js:15:34)
at /home/pi/blog/node_modules/hexo/lib/hexo/render.js:51:21
at tryCatcher (/home/pi/blog/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/pi/blog/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/home/pi/blog/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromiseAtPostResolution (/home/pi/blog/node_modules/bluebird/js/main/promise.js:245:10)
at Async._drainQueue (/home/pi/blog/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (/home/pi/blog/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/blog/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
duoshuo:
on: true
domain: http://jatgit.duoshuo.com
请问除了手动加
之外,有没有其他普适性更好、更简便的方法?谢谢!
侧边栏上面矩形区域的颜色好像是随机出现的,我想让他变成固定的。。
情况是这样的,一共6 个页面,但是只能显示5 个,最后一个需要拉进度条。
不知道能不能手动调整大小(这个方案似乎比自适应要好)
我现在进入主页是显示所有文章的所有内容,请问使用您的主题怎么修改成显示所有文章的部分内容,然后more点击查看文章详情呢?
就是这样设计的吗,还是我的方法不科学呀~
The submodule themes/yelee
was not properly initialized with a .gitmodules
file. For more information, see https://help.github.com/articles/page-build-failed-missing-submodule.
当输入以下 markdown 时
test
test
test
出来的效果有问题,话说要怎么在这里贴图片来着。。。。
如题,目前的标签云那页只能看到第一级目录,是否有设置可以将二级目录三级目录也显示出来呢?
不知道可不可以请求加一个虾米的(厚脸皮)
如链接所见,虾米的链接可以通过指定UID 来搞定。
如果感觉加上不适合的话直接close 掉就可以咧 。
非常感谢你的主题 (╭ ̄3 ̄)╭♡
在全站https的情况下http的js文件会被chrome拦截导致加载不出来
我在theme配置文件中添加了如下代码:
favicon: http://7xpg8c.com1.z0.glb.clouddn.com/8096659.png
但是最终生成的public文件夹中依旧没有favicon.png
必须自己在public文件夹中添加favicon吗?这样每次hexo g
后该icon就被删掉了。
我之前修改过多说文章 key,Yilia 用户可以用下面代码,保留原评论的同时 修复
bug。
把 /yelee/layout/_partial/article.ejs
下的这段代码删掉:
- <% if (!index && theme.duoshuo && post.comments){ %>
- <%- partial('post/duoshuo', {
- key: post.path,
- title: post.title,
- url: config.url+url_for(post.path)
- }) %>
- <% } %>
用下面这段代码替换:
<% if (!index && theme.duoshuo && post.comments){ %>
<% if (is_post()){ %>
<%- partial('post/duoshuo', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } else {%>
<%- partial('post/duoshuo', {
key: post.path,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% } %>
~/Hexo ❯❯❯ hexo -v
hexo-cli: 0.1.9
os: Darwin 15.3.0 darwin x64
http_parser: 2.5.0
node: 4.2.3
v8: 4.5.103.35
uv: 1.7.5
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2e
~/Hexo ❯❯❯ hexo deploy
Usage: hexo
Commands:
help Get help on Hexo.
init Create a new Hexo folder.
version Display version information.
Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--safe Disable all plugins and scripts
--silent Hide output on console
For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/
这是什么情况呀?
博主你好,你的主题目前支持google统计,但是由于墙的原因,国内用户在访问页面时对google统计的回调可能失败,导致统计不准确。
能否把百度统计的代码也加进来。
你好,感谢你的主题,感觉非常好看。在这想请教一些问题,hexo在读取tag时是从上往下读还是从下往上读的呢?这个是主题决定的还是hexo就已经决定好的?为什么我的博客中有的标签是从第一个开始显示而有的又是从最后一个显示?
您好,在使用您的主题进行generate时,报错:
Welcome to Git (version 1.9.5-preview20141217)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
skyxuan@SKYXUAN_PC /D/Hexo
$ hexo g
[info] Files loaded in 1.154s
[create] Generated: archives/index.html (90ms)
[create] Generated: archives/page/2/index.html (57ms)
[create] Generated: archives/page/3/index.html (36ms)
[create] Generated: archives/2014/index.html (26ms)
[create] Generated: archives/2014/07/index.html (19ms)
[create] Generated: archives/2014/08/index.html (18ms)
[create] Generated: archives/2015/index.html (37ms)
[create] Generated: archives/2015/page/2/index.html (25ms)
[create] Generated: archives/2015/01/index.html (19ms)
[create] Generated: archives/2015/04/index.html (21ms)
[create] Generated: archives/2015/05/index.html (22ms)
[create] Generated: archives/2015/07/index.html (22ms)
[create] Generated: archives/2016/index.html (29ms)
[create] Generated: archives/2016/01/index.html (25ms)
[create] Generated: categories/android/index.html (17ms)
[create] Generated: index.html (35ms)
[create] Generated: page/2/index.html (44ms)
[create] Generated: page/3/index.html (19ms)
[error] HexoError: Render failed: about/index.html
ReferenceError: d:\Hexo\themes\yelee\layout\page.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
d:\Hexo\themes\yelee\layout\_partial\article.ejs:31
29| <% } %>
30| <% } else { %>
>> 31| <% if (is_page()){ %>
32| <%- partial('_partial/page') %>
33| <% } %>
34| <%- post.content %>
is_page is not defined
at eval (eval at <anonymous> (d:\Hexo\node_modules\hexo-renderer-ejs\node_mo
dules\ejs\lib\ejs.js:242:14), <anonymous>:29:1761)
at eval (eval at <anonymous> (d:\Hexo\node_modules\hexo-renderer-ejs\node_mo
dules\ejs\lib\ejs.js:242:14), <anonymous>:37:454)
at d:\Hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at Object.exports.render (d:\Hexo\node_modules\hexo-renderer-ejs\node_module
s\ejs\lib\ejs.js:293:13)
at d:\Hexo\node_modules\hexo-renderer-ejs\index.js:5:14
at Object.exports.renderSync (c:\Users\skyxuan\AppData\Roaming\npm\node_modu
les\hexo\lib\core\render.js:133:12)
at View.renderSync (c:\Users\skyxuan\AppData\Roaming\npm\node_modules\hexo\l
ib\theme\view.js:183:28)
at partial (c:\Users\skyxuan\AppData\Roaming\npm\node_modules\hexo\lib\plugi
ns\helper\partial.js:29:17)
at Object.module.exports (c:\Users\skyxuan\AppData\Roaming\npm\node_modules\
hexo\lib\plugins\helper\partial.js:37:12)
at eval (eval at <anonymous> (d:\Hexo\node_modules\hexo-renderer-ejs\node_mo
dules\ejs\lib\ejs.js:242:14), <anonymous>:29:35)
skyxuan@SKYXUAN_PC /D/Hexo
$
之前使用其他主题时没遇到过这个问题。我是在windows环境下搭建的hexo博客,是我的依赖不全导致的吗?
[所有标签、分类、翻页、文章列表等图标都不显示,标签和分类要把鼠标放上去才有。我使用主题后只是设置了git,其他都没改,这些都要都要自己加吗,为什么主题里默认没有?
请教在哪里可以修改标题的样式,比如 h1, h2, h3....等等,谢谢。。。
文章目录, 超过一定长度, 能不能用....代替, 或者鼠标移上去时, 能够显示完整的标题. 换行的话有点难看...个人觉得
RT
Hello, thank you first for the beautiful theme! I met some problem when I generated my blog, the problem is shown in the picture. How to solve it?http://7pulgx.com1.z0.glb.clouddn.com/Screenshot%20from%202016-02-25%2012-57-24.png
(Open the link in web browser)
請問可以嗎~
为什么不在配置文件中设置是否开启original而是要关闭original显示需要在每篇文章前面添加,有办法设置吗或者添加一个feature? :)
想问下首行缩进怎么设置。。
指定代码段类型为c
,下面的Markdown 无法生成高亮代码,查看HTML 发现<figure class="highlight">
tcpsumblock = (char *)malloc (packetSize * sizeof (char));
下面的可以正常高亮,对应HTML<figure class="highlight c">
tcpsumblock = (char *)malloc (packetSize);
自动生成目录时,会自动在目录前追加数字编号,我怎么去屏蔽掉这个东西。
因为我本身的 md 就已经写了目录编号,怎么去屏蔽掉这个东西。
谢谢
不懂前端,我试着改了一下,好像改完了好用了,不知道那个#
是特殊语法吗?
diff --git a/source/css/_partial/main.styl b/source/css/_partial/main.styl
index 2d751d3..b8a6907 100644
--- a/source/css/_partial/main.styl
+++ b/source/css/_partial/main.styl
@@ -224,7 +224,7 @@
.TiddlyWiki::before,
.SegmentFault::before,
.简书::before,
- #虾米音乐::before,
+ .虾米音乐::before,
#网易云音乐::before {
content: "\f18a";
color: transparent;
I setup the 404 page according with the manual
8. 404 Page:
hexo new page 404
And then set permalink: /404
in /source/404/index.md
front matter.
But when I typing http://0.0.0.0:4000/not-existed-page the 404 page is not getting displayed.
Is there any sort fallback should be made in the source files ?
According to my observation, in Hexo (3.1.0), when a post is applied with several categories like below:
categories:
- Life
- Work
- Study
The post will be count ONLY in the very first set category Life
, and two tree categories Life/Work
and Life/Work/Study
will be generated. Categories after Life
will be treated as its children which can be verified in source code.
In the post, clinking Life
will jump to Life
category page, clinking Work
will jump to Life/Work
s, and clicking Study
will jump to Life/Work/Study
s.
/categories/Life/
/categories/Life/Work/
/categories/Life/Work/Study/
为 Hexo 文章设置多个分类后,只算入第一个分类,同时 Hexo 会从当前分类列表生成类似文件夹那样的层级分类(点击文章中不同分类标记即跳转到对应层级分类页面)。
http://moxfive.xyz/tags/
https://hexo.io/docs/helpers.html#list_categories
https://hexo.io/docs/front-matter.html#Categories__26amp_3B_Tags
首页的背景随机换的?有固定的选项吗
在-config.yml中设置了多说:(我的key) ,但是生成的页面却没显示存在多说,不知道是什么问题
你好,看到你demo页面里的文章预览只有5、6行
git下来后的主题在预览时会显示很多
怎么控制?
rt
categories 指定多个,文章能够显示多个categories,但是实际在/categories/
中只有一个生效。
今天重裝了Hexo和最新版主題
hexo: 3.1.1
os: Linux 4.1.13-v7+ linux arm
http_parser: 2.6.0
node: 5.5.0
v8: 4.6.85.31
uv: 1.8.0
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 47
openssl: 1.0.2e
Hexo+主題 沒有修改任何選項
首頁和post目錄的東西不顯示
沒在 /source/_posts/ 的 比如 /source/404/ 可以正常顯示
不知道这个问题是否应该在这里问,因为我使用markdown语法绘制的表格在生成的文章里不能正确显示。。。我用其他markdown编辑器可以。是主题不支持吗?
比如下面的表格:
A | B |
---|---|
1 | This is a sample. |
2 | This is a sample. |
访问好奇访问次数是怎么统计的...怎么手动重置呢?
但是deploy后很大一部分都不显示了,求解为什么呀!!刚开始起步
现在就这样:http://imisswonder.com/
用原本的yilia主题没有问题……真是闹心
我比较喜欢简洁,所以不太喜欢透明化背景和背景图片。
但是设置 background_image: 0
之后的效果很差,整个网页显得很苍白,好像是背景和字体颜色很浅吧。还是更喜欢 Yilia
主题的配色,怎么简单的修改一下?
duoshuo:
on: true
domain: zousblog.duoshuo.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.