Code Monkey home page Code Monkey logo

hexo-theme-annie's Introduction

Annie theme

GitHub issues GitHub top language GitHub license

Annie是一个简单的Hexo博客主题,如果你喜欢散文、诗歌、小说......那么它可能合你心意! ☞预览-1☞预览-2

Features

  1. 文艺、优雅、简洁的博客主题
  2. 页头随机背景+文章缩略图背景
  3. 两种主页模板,主页文章无限加载
  4. 分类页、标签页点击指定分类、标签后,查询并展示相关文章
  5. 相册页可以分类、搜索图片
  6. 相关文章模块:文章页展示与该篇文章相关的系列文章
  7. 文章评论模块:gitalk 、valine 、livere
  8. 文章分享模块:addThis 、baiduShare 、shareThis 、socialShare
  9. 文章统计模块:leancloud 、busuanzi
  10. 文章点赞模块:leancloud
  11. 文章阅读模块:toc目录、进度条、进度百分比
  12. 文章代码模块:代码复制、代码语言提示、5种高亮主题(Refer & use Next' theme
  13. 文章Markdown:支持数学公式(MathJax),color quote(Refer & use Minos' theme)
  14. 站点分析模块:baidu_analytics 、cnzz_analytics 、google_analytics 、tencent_analytics:
  15. 站点文章搜索:local search
  16. 多语言支持:中文简体、中文繁体、英文

Get started

Installation

git clone https://github.com/Sariay/hexo-theme-Annie.git

然后,将站点目录下的_config.yml文件中的theme字段修改为Annie。

确保themes目录下存在名为Annie的文件夹(hexo-theme-Annie→Annie)

Site config

原则上,你应该编辑站点目录下的_config.yml文件。

  • 语言支持
# Site
title: SARIAY-Blog
subtitle:
description:
keywords:
author: Sariay
language:
timezone: 

设置language的值:en | zh-CN |zh-TW

  • 站内搜索

第一步:安装 hexo-generator-search-zip插件

$ npm install hexo-generator-search-zip --save

第二步:编辑站点目录下的_config.yml文件

# 添加下列参数

search:
  path: search.json
  zipPath: search.zip
  versionPath: searchVersion.txt
  field: post
  #field: post, page or all

第三步:编辑主题目录下的_config.yml文件

# 添加下列参数(若不存在),并将enable置为true!

# Local search
# Dependencies: https://github.com/flashlab/hexo-generator-search
local_search:
    enable: true
    # if auto, trigger search by changing input
    # if manual, trigger search by pressing enter key or search button
    trigger: auto
    # show top n results per article, show all results by setting to -1
    top_n_per_article: 2
  • 代码高亮

基于hexo自身的代码块解析插件的特性,弃用hexo-prism-plugin,参考、使用next主题的代码风格。

  1. highlight、line_number的值应为true
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace:
  1. 设置highlight_theme、code_copy(主题目录的config.yml)
# post_code
# normal | night | night blue | night bright | night eighties
highlight_theme: night bright
code_copy:
    enable: true

Theme config

你可以阅读文章 《Annie主题使用说明》 获取相关模块的信息,例如页头背景、相册、评论、文章点赞 !

Post config

每一篇文章都可以设置一张特色图,该特色图将用于主页(文章缩略图)和文章详情页(页头背景)。

文章的模板样例如下,cover即为文章封面图的路径,你可以使用相对路径或绝对路径。

---
title: {{ title }}
date: {{ date }}
cover: https://.../
categories: categories
tags: tags
---

Theme update

如果你使用主题后,几乎未改动代码,那么可以使用下面的命令行更新主题。

cd themes/Annie
git pull

如果你使用主题后,自定义改动相当多的代码,推荐下载源码包以进行定制!

Other questions

如果你有问题反馈: issues (请务必先于issues中寻找答案)

如果你喜欢该主题: starstar越多,更新的动力越大😂)

如果你想定制主题: fork (当然,Annie亦期待你的贡献)

主题交流群如下,招募群主!(1023390049,口令ANNIE)

主题交流群

Contributor

欢迎各种形式的贡献。

Todo

  • 评论功能
  • 文章目录
  • 文章点赞💗
  • 阅读计数
  • 相关文章
  • 相册模块
  • 站点分析统计b421393
  • 文章分享功能b421393
  • 文章目录优化b421393
  • 文章字体调整b421393
  • 语言支持优化 4
  • 相册图片利用 5
  • valine与文章阅读计数的冲突问题,参考valine官网next主题案例(注:当前使用DesertsP版的valine
  • ...

2020.1.7 日新增,欢迎填坑!

  • 评论插件:hypercommentsutterances畅言云评
  • 相册页:寻找替代品
  • 多语言站点:接入翻译接口
  • 优化布局:index-pure
  • 在线聊天:daovoice
  • 增加二维码:便于文章分享和阅读
  • ...

Thanks

hexo-generator-search-zip plugin by Kieran

The index-page layout referenced Diaspora

The archive-page layout referenced Feng'Blog

Other open source...

(Relevant Rights Reserved by Them!)

License

MIT

hexo-theme-annie's People

Contributors

10veu avatar ohiamfine avatar sariay 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

hexo-theme-annie's Issues

求帮助

您好为什么我弄完样式都乱了?

hexo new post 后,hexo generate error

$ hexo generate
INFO Start processing
INFO Files loaded in 218 ms
ERROR E:\blog\themes\Annie\layout\post.ejs:1

1| <%- partial('_partial/post', {post: page}) %>

E:\blog\themes\Annie\layout_partial\post.ejs:43
41|

42|                         

43| <%- partial('post-relate') %>
44|

45|                         
                              
46|                                 <%- partial('third/comment') %>                                

E:\blog\themes\Annie\layout_partial\post-relate.ejs:1

1| <%
2| var currentPostTitle = post.title,
3| relatePostsArry = [],
4| result =[],

Illegal break statement
SyntaxError: E:\blog\themes\Annie\layout\post.ejs:1

1| <%- partial('_partial/post', {post: page}) %>

E:\blog\themes\Annie\layout_partial\post.ejs:43
41|

42|                         

43| <%- partial('post-relate') %>
44|

45|                         
                              
46|                                 <%- partial('third/comment') %>                                

E:\blog\themes\Annie\layout_partial\post-relate.ejs:1

1| <%
2| var currentPostTitle = post.title,
3| relatePostsArry = [],
4| result =[],

Illegal break statement
at eval (eval at compile (E:\blog\node_modules\ejs\lib\ejs.js:618:12), :65:12)
at returnedFn (E:\blog\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (E:\blog\node_modules\hexo\lib\theme\vi
ew.js:121:22)
at Theme._View.View.View.renderSync (E:\blog\node_modules\hexo\lib\theme\view.js:49:23)
at Object.partial (E:\blog\node_modules\hexo\lib\plugins\helper\partial.js:38:15)
at eval (eval at compile (E:\blog\node_modules\ejs\lib\ejs.js:618:12), :50:17)
at returnedFn (E:\blog\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (E:\blog\node_modules\hexo\lib\theme\vi
ew.js:121:22)
at Theme._View.View.View.renderSync (E:\blog\node_modules\hexo\lib\theme\view.js:49:23)
at Object.partial (E:\blog\node_modules\hexo\lib\plugins\helper\partial.js:38:15)
at eval (eval at compile (E:\blog\node_modules\ejs\lib\ejs.js:618:12), :9:17)
at returnedFn (E:\blog\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (E:\blog\node_modules\hexo\lib\theme\view.js:12
5:48)
at Theme._View.View.View.render (E:\blog\node_modules\hexo\lib\theme\view.js:30:15)
at route.set (E:\blog\node_modules\hexo\lib\hexo\index.js:394:29)
at tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (E:\blog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:442:10)
at resume
(_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR E:\blog\themes\Annie\layout\post.ejs:1

1| <%- partial('_partial/post', {post: page}) %>

E:\blog\themes\Annie\layout_partial\post.ejs:43
41|

42|                         

43| <%- partial('post-relate') %>
44|

45|                         
                              
46|                                 <%- partial('third/comment') %>                                

E:\blog\themes\Annie\layout_partial\post-relate.ejs:1

1| <%
2| var currentPostTitle = post.title,
3| relatePostsArry = [],
4| result =[],

Illegal break statement
SyntaxError: E:\blog\themes\Annie\layout\post.ejs:1

1| <%- partial('_partial/post', {post: page}) %>

E:\blog\themes\Annie\layout_partial\post.ejs:43
41|

42|                         

43| <%- partial('post-relate') %>
44|

45|                         
                              
46|                                 <%- partial('third/comment') %>                                

E:\blog\themes\Annie\layout_partial\post-relate.ejs:1

1| <%
2| var currentPostTitle = post.title,
3| relatePostsArry = [],
4| result =[],

Illegal break statement
at eval (eval at compile (E:\blog\node_modules\ejs\lib\ejs.js:618:12), :65:12)
at returnedFn (E:\blog\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (E:\blog\node_modules\hexo\lib\theme\vi
ew.js:121:22)
at Theme._View.View.View.renderSync (E:\blog\node_modules\hexo\lib\theme\view.js:49:23)
at Object.partial (E:\blog\node_modules\hexo\lib\plugins\helper\partial.js:38:15)
at eval (eval at compile (E:\blog\node_modules\ejs\lib\ejs.js:618:12), :50:17)
at returnedFn (E:\blog\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (E:\blog\node_modules\hexo\lib\theme\vi
ew.js:121:22)
at Theme._View.View.View.renderSync (E:\blog\node_modules\hexo\lib\theme\view.js:49:23)
at Object.partial (E:\blog\node_modules\hexo\lib\plugins\helper\partial.js:38:15)
at eval (eval at compile (E:\blog\node_modules\ejs\lib\ejs.js:618:12), :9:17)
at returnedFn (E:\blog\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (E:\blog\node_modules\hexo\lib\theme\view.js:12
5:48)
at Theme._View.View.View.render (E:\blog\node_modules\hexo\lib\theme\view.js:30:15)
at route.set (E:\blog\node_modules\hexo\lib\hexo\index.js:394:29)
at tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (E:\blog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:442:10)
at resume
(_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
INFO Generated: searchVersion.txt
INFO Generated: content.json
INFO Generated: index.html
INFO Generated: categories/index.html
INFO Generated: about/index.html
INFO Generated: tags/index.html
INFO Generated: archives/index.html
INFO Generated: gallery/index.html
INFO Generated: img/logo.png
INFO Generated: gallery/images/default-skin.svg
INFO Generated: gallery/natural.css
INFO Generated: gallery/natural-gallery.full.css
INFO Generated: gallery/data.json
INFO Generated: gallery/natural-gallery.full.js
INFO Generated: img/cart_cover.jpg
INFO Generated: gallery/images/preloader.gif
INFO Generated: img/favicon.ico
INFO Generated: gallery/images/default-skin.png
INFO Generated: archives/2018/12/index.html
INFO Generated: archives/2018/index.html
INFO Generated: css/App.css
INFO Generated: css/Annie.css
INFO Generated: css/comment.css
INFO Generated: css/archive.css
INFO Generated: css/page.css
INFO Generated: css/post.css
INFO Generated: css/toc.css
INFO Generated: css/nav.css
INFO Generated: css/style.css
INFO Generated: css/search.css
INFO Generated: js/chinese.js
INFO Generated: js/love.js
INFO Generated: js/main.js
INFO Generated: js/search.js
INFO Generated: js/leancloud.js
INFO Generated: js/valine.min.js
INFO Generated: js/vibrant.js
INFO Generated: js/ziploader.js
INFO Generated: js/jquery-2.1.1.min.js
INFO Generated: js/motto.js
INFO Generated: img/1.jpg
INFO Generated: plugin/lightgallery/fonts/icomoon.ttf
INFO Generated: plugin/lightgallery/fonts/icomoon.svg
INFO Generated: plugin/lightgallery/fonts/icomoon.eot
INFO Generated: plugin/lightgallery/fonts/icomoon.woff
INFO Generated: plugin/lightgallery/img/vimeo-play.png
INFO Generated: plugin/lightgallery/fonts/lg.eot
INFO Generated: plugin/lightgallery/fonts/lg.svg
INFO Generated: plugin/lightgallery/img/video-play.png
INFO Generated: plugin/lightgallery/img/loading.gif
INFO Generated: plugin/lightgallery/fonts/lg.ttf
INFO Generated: plugin/lightgallery/fonts/lg.woff
INFO Generated: plugin/toc/katelog.min.js
INFO Generated: plugin/lightgallery/img/youtube-play.png
INFO Generated: 2018/12/28/test/index.html
INFO Generated: plugin/lightgallery/css/lightgallery.css
INFO Generated: img/poem1.png
INFO Generated: plugin/lightgallery/js/lightgallery-all.min.js
INFO Generated: 2018/12/27/hello-world/index.html
INFO Generated: plugin/lightgallery/js/jquery-1.11.0.min.js
INFO Generated: img/2.jpg
INFO 61 files generated in 233 m

文件被清空

花了两天陆陆续续写了个 elastalert.md ,刚刚 hexo clean && hexo g 之后,没有任何报错,但 elastalert.md 内容被清空了。。。
如何追查问题,如何恢复文件。。。如何避免下次被清空。。。

Search.path参数 ‘path’ 报错

原因:该参数涉及被搜索数据的路径,因未配置(未声明)该参数进而报错

解决:站内搜索的使用

执行命令,安装插件hexo-generator-search-zip

$ npm install hexo-generator-search-zip --save

编辑站点目录下的_config.yml,添加如下语句

search:
  path: search.json
  zipPath: search.zip
  versionPath: searchVersion.txt
  field: post
  #field: post, page or all(3个可选参数)

编辑主题目录下的_config.yml,添加如下语句

# Local search
# Dependencies: https://github.com/flashlab/hexo-generator-search
local_search:
    enable: true
    # if auto, trigger search by changing input
    # if manual, trigger search by pressing enter key or search button
    trigger: auto
    # show top n results per article, show all results by setting to -1
    top_n_per_article: 2

[集成DaoVoice] 可否给此主题集成DaoVoice

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

加载问题

主页文字颜色在哪个位置目前只找到一个导航栏的颜色调节,还有最下面的github,邮箱什么的图标如何更改,如何添加。最后一个问题就是网站点开一篇文章后下面推荐的文章会显示你所有的文章,因为要显示图片所以会导致文章加载很慢,如何解决只显示3-5篇。

主页样式

很喜欢这个主题,但是不明白为什么主页排版和您的不一致,而且也没有进度条,看了半天配置也没找到,求指教

[Enhancement] describe请问博客主题支持友链么

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[Bug] Tags的统计结果与实际标签个数不一致

Describe the bug
我测试给一篇文章添加了一个“一切从Hello World”的标签,点击到Tags一看竟然统计的数目是3个,然后我把这个标签修改为"HelloWorld",点击过去一看竟然成4个了。

分页问题

主题中点加载更多进入下一页后会无限加载,再次点击后会无限重复第二页

Some suggestions

Thank you for your good work! It's beautiful and clean :-)

Here're some suggestions:

  1. Cover
    Let the content lay over the cover when scrolling down, like this.
  2. Fonts in cover
    The black font isn't clear when the cover is dark.
  3. Footer
    Add busuanzi in the footer.
  4. Language
    Is it possible to develop an English version and we can switch between English and Chinese?
  5. Gallery
    Is it possible to use different photos in gallery as covers of different article and thumbnail?
  6. Mobile version
    It's better to enlarge the side boundary.
  7. Comment
    I found an awesome commentbox and you can try it.

Hope this can help you develop it. Thanks!

求帮助

您好,谢谢您,上一个问题解决了。可是我在主题下的配置文件里配置
index_generator:
path: ''
per_page: 3
order_by: -date
为什么还是不显示加载更多,一次性都加载出来了。
还有发文章左侧的图片怎么修改?每次都是固定的图片。

[Bug] 移动端窗口抖动

移动端网页加载完毕后,滑动窗口式仍然存在激烈的抖动。

同时移动端背景图片显示不全,建议移动端可以略去背景。

暗黑主题

希望增加暗黑主题,这个特别适合我们这些文章里面有代码块的,就像很多浏览器中的暗黑插件那样,阅读体验超级棒

覆盖了 window.onload 函数问题,导致 tag cloud 函数钩子不执行

我在尝试使用 hexo-tag-cloud 的 3D球状标签云的时候,发现无论怎么尝试也无法显示
https://dlovexj.cn/tags/ 页面的 console 使用如下代码验证:
try {
TagCanvas.textFont = 'Trebuchet MS, Helvetica';
TagCanvas.textColour = '#333';
TagCanvas.textHeight = 18;
TagCanvas.outlineColour = '#E2E1C1';
TagCanvas.maxSpeed = 0.03;
TagCanvas.outlineMethod = 'block';
TagCanvas.minBrightness = 0.2;
TagCanvas.depth = 0.92;
TagCanvas.pulsateTo = 0.6;
TagCanvas.initial = [0.1,-0.1];
TagCanvas.decel = 0.98;
TagCanvas.reverse = true;
TagCanvas.hideTags = false;
TagCanvas.shadow = '#ccf';
TagCanvas.shadowBlur = 3;
TagCanvas.weight = false;
TagCanvas.imageScale = null;
TagCanvas.fadeIn = 1000;
TagCanvas.clickToFront = 600;
TagCanvas.Start('resCanvas');
TagCanvas.tc['resCanvas'].Wheel(false)
} catch(e) {
console.log(e);
document.getElementById('myCanvasContainer').style.display = 'none';
}
发现可以显示,3d标签云的插件作者提示 尽量不要暴力直接 window.onload = func() {...}这样之后的不好改写

网络背景 控制台报错(Access-Control-Allow-Origin)

不好意思最近在忙忘了关注issues,
网络背景 控制台报错(Access-Control-Allow-Origin)
Access to image at 'https://images.unsplash.com/photo-1550690638-b9f389eca280?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=680&h=440&q=80' from origin 'https://blog.alterem.top' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
main.js:117 GET https://images.unsplash.com/photo-1550690638-b9f389eca280?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=680&h=440&q=80 net::ERR_FAILED

Originally posted by @alterem in #22 (comment)

[Question]:背景图片加载失败

Hi,Sariay,周末好
最近我尝试使用又拍云代替github作为图床,但是遇到了一些问题。

首页的封面图和文章内部的图片外链都可以正常加载,可是文章页面的背景图片每次都会加载失败。网路上似乎没有见到类似问题,我对前端知识了解的又很少,希望你能给出一些解决的思路或办法。

这是我的博客链接:
https://asalea.github.io/

首页滑动问题

在 Mac 端 (MacBook Pro 15 寸)下,进入网站首页后,由首页图片向下滑动时,出现卡顿现象,给人的感觉就像『阻尼』很大一样。Safari 浏览器 和 Chrome 浏览器都有这个问题。

[Question]:首页无法加载文章封面图片,node报错

本地测试和部署到服务器都无法显示首页文章封面图片,因为该部分代码报错,信息如下:

$ hexo s -p 8181
(node:30416) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
INFO  Start processing
ERROR Process failed: layout/_partial/index-cart.ejs
SyntaxError: Invalid or unexpected token in "D:\\Blog\\themes\\Annie\\layout\\_partial\\index-cart.ejs"
    at new Function (<anonymous>)
    at Object.exports.compile (D:\Blog\node_modules\ejs\lib\ejs.js:242:14)
    at Function.ejsRenderer.compile (D:\Blog\node_modules\hexo-renderer-ejs\lib\renderer.js:11:14)
    at Theme._View.View.View._precompile (D:\Blog\node_modules\hexo\lib\theme\view.js:119:29)
    at Theme._View.View.View (D:\Blog\node_modules\hexo\lib\theme\view.js:13:8)
    at new Theme._View.View (D:\Blog\node_modules\hexo\lib\theme\index.js:37:10)
    at Theme.setView (D:\Blog\node_modules\hexo\lib\theme\index.js:71:20)
    at D:\Blog\node_modules\hexo\lib\theme\processors\view.js:14:14
    at tryCatcher (D:\Blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Blog\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (D:\Blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (D:\Blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (D:\Blog\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (D:\Blog\node_modules\bluebird\js\release\promise.js:638:18)
    at Promise._resolveCallback (D:\Blog\node_modules\bluebird\js\release\promise.js:432:57)
    at Promise._settlePromiseFromHandler (D:\Blog\node_modules\bluebird\js\release\promise.js:524:17)
    at Promise._settlePromise (D:\Blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (D:\Blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (D:\Blog\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (D:\Blog\node_modules\bluebird\js\release\promise.js:638:18)
    at D:\Blog\node_modules\bluebird\js\release\nodeback.js:42:21
    at D:\Blog\node_modules\graceful-fs\graceful-fs.js:78:16
ERROR Process failed: layout/_partial/post-relate.ejs
SyntaxError: Invalid or unexpected token in "D:\\Blog\\themes\\Annie\\layout\\_partial\\post-relate.ejs"
    at new Function (<anonymous>)
    at Object.exports.compile (D:\Blog\node_modules\ejs\lib\ejs.js:242:14)
    at Function.ejsRenderer.compile (D:\Blog\node_modules\hexo-renderer-ejs\lib\renderer.js:11:14)
    at Theme._View.View.View._precompile (D:\Blog\node_modules\hexo\lib\theme\view.js:119:29)
    at Theme._View.View.View (D:\Blog\node_modules\hexo\lib\theme\view.js:13:8)
    at new Theme._View.View (D:\Blog\node_modules\hexo\lib\theme\index.js:37:10)
    at Theme.setView (D:\Blog\node_modules\hexo\lib\theme\index.js:71:20)
    at D:\Blog\node_modules\hexo\lib\theme\processors\view.js:14:14
    at tryCatcher (D:\Blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Blog\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (D:\Blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (D:\Blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (D:\Blog\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (D:\Blog\node_modules\bluebird\js\release\promise.js:638:18)
    at Promise._resolveCallback (D:\Blog\node_modules\bluebird\js\release\promise.js:432:57)
    at Promise._settlePromiseFromHandler (D:\Blog\node_modules\bluebird\js\release\promise.js:524:17)
    at Promise._settlePromise (D:\Blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (D:\Blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (D:\Blog\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (D:\Blog\node_modules\bluebird\js\release\promise.js:638:18)
    at D:\Blog\node_modules\bluebird\js\release\nodeback.js:42:21
    at D:\Blog\node_modules\graceful-fs\graceful-fs.js:78:16
ERROR Process failed: layout/_partial/plugin/toc.ejs
SyntaxError: Invalid or unexpected token in "D:\\Blog\\themes\\Annie\\layout\\_partial\\plugin\\toc.ejs"
    at new Function (<anonymous>)
    at Object.exports.compile (D:\Blog\node_modules\ejs\lib\ejs.js:242:14)
    at Function.ejsRenderer.compile (D:\Blog\node_modules\hexo-renderer-ejs\lib\renderer.js:11:14)
    at Theme._View.View.View._precompile (D:\Blog\node_modules\hexo\lib\theme\view.js:119:29)
    at Theme._View.View.View (D:\Blog\node_modules\hexo\lib\theme\view.js:13:8)
    at new Theme._View.View (D:\Blog\node_modules\hexo\lib\theme\index.js:37:10)
    at Theme.setView (D:\Blog\node_modules\hexo\lib\theme\index.js:71:20)
    at D:\Blog\node_modules\hexo\lib\theme\processors\view.js:14:14
    at tryCatcher (D:\Blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Blog\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (D:\Blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (D:\Blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (D:\Blog\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (D:\Blog\node_modules\bluebird\js\release\promise.js:638:18)
    at Promise._resolveCallback (D:\Blog\node_modules\bluebird\js\release\promise.js:432:57)
    at Promise._settlePromiseFromHandler (D:\Blog\node_modules\bluebird\js\release\promise.js:524:17)
    at Promise._settlePromise (D:\Blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (D:\Blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (D:\Blog\node_modules\bluebird\js\release\promise.js:693:18)
    at Promise._fulfill (D:\Blog\node_modules\bluebird\js\release\promise.js:638:18)
    at D:\Blog\node_modules\bluebird\js\release\nodeback.js:42:21
    at D:\Blog\node_modules\graceful-fs\graceful-fs.js:78:16

附上运行环境:

D:\Blog
$ node -v
v8.9.4

D:\Blog
$ hexo -v
(node:14956) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
hexo: 3.2.2
hexo-cli: 2.0.0
os: Windows_NT 10.0.17134 win32 x64
http_parser: 2.7.0
node: 8.9.4
v8: 6.1.534.50
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2n
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b

“参数配置”引起的编译问题

ERROR D:\Blog\xj_D\themes\Annie\layout\layout.ejs:16
14| <%- partial('_partial/head',{cache: true}) %>
15|

16| <%- partial('_partial/header',{cache: true}) %>
17|
18|
19|

D:\Blog\xj_D\themes\Annie\layout_partial\header.ejs:2
1|

2| <%
3| if(theme.preloader.enable) {
4| var animation = theme.preloader.animation;
5| %>

Cannot read property 'enable' of undefined
TypeError: D:\Blog\xj_D\themes\Annie\layout\layout.ejs:16
14| <%- partial('_partial/head',{cache: true}) %>
15|

16| <%- partial('_partial/header',{cache: true}) %>
17|
18|
19|

D:\Blog\xj_D\themes\Annie\layout_partial\header.ejs:2
1|

2| <%
3| if(theme.preloader.enable) {
4| var animation = theme.preloader.animation;
5| %>

Cannot read property 'enable' of undefined

相册功能的使用、搜索功能

  1. 相册目前文档没有介绍使用,网上的也是层出不穷,花样百出,这个相册如何使用,能否做个说明完善下
  2. 搜索功能 下载的安装 search.zip 必须上传到 git 吗?每次 hexo d 感觉有点慢卡顿

随机背景图片I

hello,您好
header部分的随机背景图片,一直无法显示, 我应该怎么解决呢?

附加功能问题:live2d()

大佬您好,我是您主题的老用户,之前修改的live2d萌板娘的 https://github.com/EYHN/hexo-helper-live2d ,现在更新之后也想添加,但是不知道该在哪添加,才可以
还有就是以前的主题有刚加载进主页时,有可以自己设置的图片作为加载动画(我之前设置的是一个gif)现在我还想修改成原来的那种感觉,可以帮帮我嘛,蟹蟹,♥

生成分类,标签时出现空白页

在站点目录下的 /source/_posts 下面的文件中配置了 categoriestags 后,使用 hexo -g 生成的 public 文件夹下面的 categories/xxxcategorie 下面的 index.html 文件为空,tag 目录也是这样

Hexo generate error

When git clone total repo to the themes file at my localhost, and execute hexo generate and hexo server it will show the issue as below.

`Cannot read property 'path' of undefined
TypeError: /Users/niyao/N.Y./Projects/FrontEnd/Fiona2013BlogRepo/themes/Annie/layout/layout.ejs:22
20|
21|

22| <%- partial('_partial/footer-after') %>
23|
24|
25|
`

How can I solve it?

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.