Giter Site home page Giter Site logo

moxfive / hexo-theme-yelee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from litten/hexo-theme-yilia

1.4K 1.4K 328.0 9.61 MB

简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.

Home Page: http://moxfive.xyz/

CSS 47.23% JavaScript 26.30% HTML 26.35% GCC Machine Description 0.11%

hexo-theme-yelee's People

Contributors

arondight avatar bitmingw avatar cntanglijun avatar douxingxiang avatar linhe0x0 avatar litten avatar matrikslee avatar moxfive avatar netcan avatar pengloo53 avatar tlongzou avatar ykk648 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-yelee's Issues

favicon该如何添加?

我在theme配置文件中添加了如下代码:

favicon: http://7xpg8c.com1.z0.glb.clouddn.com/8096659.png

但是最终生成的public文件夹中依旧没有favicon.png
必须自己在public文件夹中添加favicon吗?这样每次hexo g后该icon就被删掉了。

markdown 列表支持有问题

当输入以下 markdown 时

  1. test
    • test

      test

    • test

  2. test

出来的效果有问题,话说要怎么在这里贴图片来着。。。。

网站子目录 相对路径

[所有标签、分类、翻页、文章列表等图标都不显示,标签和分类要把鼠标放上去才有。我使用主题后只是设置了git,其他都没改,这些都要都要自己加吗,为什么主题里默认没有?

gece.gitcafe.io/hexo/

Hexo post with several categories 文章设置多个分类后的问题

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/Works, and clicking Study will jump to Life/Work/Studys.

/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

about copyright info

为什么不在配置文件中设置是否开启original而是要关闭original显示需要在每篇文章前面添加,有办法设置吗或者添加一个feature? :)

可以增加虾米的subnav 嘛?

不知道可不可以请求加一个虾米的(厚脸皮)
如链接所见,虾米的链接可以通过指定UID 来搞定。
如果感觉加上不适合的话直接close 掉就可以咧 。
非常感谢你的主题 (╭ ̄3 ̄)╭♡

代码高亮BUG

指定代码段类型为c,下面的Markdown 无法生成高亮代码,查看HTML 发现<figure class="highlight">

tcpsumblock = (char *)malloc (packetSize * sizeof (char));

下面的可以正常高亮,对应HTML<figure class="highlight c">

tcpsumblock = (char *)malloc (packetSize);

文章中表格显示不正确?

不知道这个问题是否应该在这里问,因为我使用markdown语法绘制的表格在生成的文章里不能正确显示。。。我用其他markdown编辑器可以。是主题不支持吗?
比如下面的表格:

A B
1 This is a sample.
2 This is a sample.

文章的TOC不要换行

文章目录, 超过一定长度, 能不能用....代替, 或者鼠标移上去时, 能够显示完整的标题. 换行的话有点难看...个人觉得

关于主页显示文章列表问题

我现在进入主页是显示所有文章的所有内容,请问使用您的主题怎么修改成显示所有文章的部分内容,然后more点击查看文章详情呢?

change background

请问背景图的长宽应为什么,另外配置为0的时候的灰白背景样式可以在什么地方修改,谢谢

is_page() error when generate 生成文件时 is_page() 报错

您好,在使用您的主题进行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博客,是我的依赖不全导致的吗?

更新hexo,成功了,但是hexo deploy/generate 命令都用不了,显示not found

~/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/

这是什么情况呀?

操作图标颜色有点浅,哪里可以修改啊?

感谢作者的主题,很漂亮。

文章页面里的一些操作图标都是白色的,比如 返回顶部和底部 bottom_up, 上一篇 下一篇pre_next,很不容易看到。。。可以改为深色的吗?或者哪里可以自定义呢?

谢谢。。。

How to handle 404 page

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.

image

Is there any sort fallback should be made in the source files ?

关于标签和 GitHub 图标的问题

你好,感谢你的主题,感觉非常好看。在这想请教一些问题,hexo在读取tag时是从上往下读还是从下往上读的呢?这个是主题决定的还是hexo就已经决定好的?为什么我的博客中有的标签是从第一个开始显示而有的又是从最后一个显示?

保留使用 Yilia 主题时的多说用户评论

fix: 多说在 Pages(不同页面) 中评论重复

我之前修改过多说文章 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)
    }) %>
  <% } %>
<% } %>

访问网站时会不停发送请求

用这个主题,用chrome访问我的网站时打开开发者工具的"network"中看到,一直在发送一个请求,像是死循环,如图:
chrome_site

不知道这是hexo的问题还是这个主题的问题?

代码区等宽字体

这是原始的md:

      30min ago              10min ago          now
---------|----------------------|----------------|---->
         |<-------------------->|

在主题中显示的是:
4space

看起来并不是很美观. 这个问题应该是用了两个空格了吧. 换成4个空格, 应该会好点.
还有-横杆这个字符貌似变短了. 导致上面的|(竖杆)对应的字没对应上. 这个是什么字体大小的问题吗?

在非默認目錄(_posts)的文章設置分類報錯

因為我的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)

最新版不能正常使用

今天重裝了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/ 可以正常顯示

虾米的icon 无法点击跳转

不懂前端,我试着改了一下,好像改完了好用了,不知道那个# 是特殊语法吗?

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;

取消网页背景图后视觉效果很差

我比较喜欢简洁,所以不太喜欢透明化背景和背景图片。

但是设置 background_image: 0 之后的效果很差,整个网页显得很苍白,好像是背景和字体颜色很浅吧。还是更喜欢 Yilia 主题的配色,怎么简单的修改一下?

请求加入百度统计

博主你好,你的主题目前支持google统计,但是由于墙的原因,国内用户在访问页面时对google统计的回调可能失败,导致统计不准确。
能否把百度统计的代码也加进来。

关于多说的问题

在-config.yml中设置了多说:(我的key) ,但是生成的页面却没显示存在多说,不知道是什么问题

文章中插入图片的样式问题

举例:写文章时插入以下代码

在其他主题下,可以成功改变图片大小;但是在yelee主题下,图片还是会被拉伸到全屏,求解。
谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.