Code Monkey home page Code Monkey logo

meilidu-hexo's Introduction

MeiliDu

Project Status: Active - The project has reached a stable, usable state and is being actively developed.

a beautiful read

A simple, text focused theme for Hexo. Bringing your readers attention to what is most import: your posts.
Check out the Demo

MeiliDu responsive showcase.

Get started

❗ Make sure your Node version is 6.x or above as the theme uses some ES6 syntax. ❗

  1. Get the latest release, simply download the file meilidu.zip. (see below for cloning)
  2. Unpack it into your themes folder. (You should now have a folder in your themes folder named "meilidu" which should not contain a folder named "meilidu")
  3. Change your _config.yml: theme: meilidu

Alternative: clone

You can also manage the theme as a subproject of your website. Simply run the following in the root directory of your project. After that change the theme property in your projects _config.yml.

git clone https://github.com/HoverBaum/meilidu-hexo.git themes/meilidu

Get help and involved

Below is a documentation of all features and how to use them as well as some good to know points. If you have any further questions or suggestions please open an issue.

The issues are open to anyone looking for help or wishing to make a suggestion to improve the theme.

Features

We have a few features you can configure and some that need to be enabled first. Check out the Demo to see them all in action.

Widgets

Add an array of all widgets you want to display in the footer in MeiliDus _config.yml. These should be the names of files in the layout/_widgets folder. A widget should always be wrapped in an footer__element, like such:

<div class="footer__element">
	<p>Hi there, <br />welcome to my Blog glad you found it. Have a look around, will you?</p>
</div>

Read more

You can change the text of "read more" links by setting the readMore option in MeiliDus _config.yml.

readMore: ...read more

RSS

You can set the link to you RSS feed in MeiliDus _config.yml.

rss: /atom.xml

You also need to install the feed generator for this to work.

npm install hexo-generator-feed --save

Make sure to use the --save option and run this in the root folder of your repository as it won't work otherwise.

Tags page

To activate the tags page create a source/tags/index.md with the following content.

title: "Tags"
layout: "tags"
---

Categories page

Activating the categories page is similar to tags, create a source/categories/index.md with the following content.

title: "Categories"
layout: "categories"
---

About page

Like any other page create a folder with the name of the page and an index.md file in it to have an about page. The most basic about page in source/about/index.md might look like this.

title: About
layout: page
---

This is a page about pages. It is the mother of all pages and pageception.

Archives

If you archive is only showing the current years posts try adding the following yml to your sites _config.yml (not the one in meilidus folder).

archive_generator:
  per_page: 0

Header

It can have any size really. It will always fill half of the screens height when the user first arrives on the page. Simply replace meilidu/source/img/header.jpg with your own file.

The default header is from unspalsh, a picture by Alberto Restifo.

Top menu

To customize the menu at the top of the page simply change MeiliDus _config.yml and add your links to the menu object. Remove everything from it to hide the top menu.

Good to know

Absolute URLs

Hexo itself and the MeiliDu theme use a lot of absolute URLs (those starting with /something). Due to this you can only run your blog on a domain or subdomain but not as something like domain.com/blog/. To run a blog on GitHub check out User pages in the GitHub documentation.

Using GitHub to host

You can host websites for free on GitHub. The Demo for MeiliDu is a great example of this. I use Travis to automate the generation of static files whenever we push to the master branch. Check out this travis config file, it comes with explanation on how to use it. Personally I found it easiest to have a repo that contains the blog (this one) and one that is only there to get the page going. Travis then gets the current version, generates all files and pushes to the website repo.

Why an Apple showcase???

Because two minutes of googleing found this PSD showcase so that is what I went with.

Blogs using MeiliDu

You are using MeiliDu for your blog? That is awesome! Let us know about it with a pull request and be featured here as an example for people to see how MeiliDu looks in the wild.

meilidu-hexo's People

Contributors

hoverbaum avatar

Stargazers

linyezhandidi avatar Tuan Duc Tran avatar wayne avatar  avatar  avatar lichengcan avatar Joe. avatar Harry Huang avatar 赫克斯 avatar jackeymm avatar hjz avatar zyeuu avatar yinkaile avatar  avatar Decision avatar AXeL avatar KanroMiku avatar Zi Wang avatar WeilunZ avatar Prashant Dandriyal avatar 兰天游 avatar Jim avatar deeplearning_research avatar  avatar  avatar  avatar YongKang Dong avatar 繁缕 avatar smallone_ avatar Timmy Lin avatar OtterV avatar gh avatar Yance Feng avatar C. Luo avatar Catch Zeng avatar Jason Chou avatar  avatar 云越彬 avatar 莉特雅 avatar StillTravelling avatar Spencer avatar DrowsyFlesh avatar ruic avatar Jailman avatar monad avatar Steven Fewster avatar edwin avatar  avatar Sashko avatar Siskon avatar  avatar 编程吴彦祖 代码蔡徐坤 avatar Hadrien DUSSUEL avatar 捏捏口 avatar  avatar Yancy avatar Sinwer avatar xubowei avatar  avatar Candost avatar Baohua Chen avatar jimmie.wang avatar HHLucky avatar Wencai Liu avatar Harry avatar Qingwen Liu avatar 从容 avatar Matthijs Liethof avatar Dr.zzm32 avatar ashizawa avatar  avatar  avatar Gerhard Görlich avatar Jinya avatar popy32 avatar Chris Brown avatar  avatar Ieralt avatar Better avatar DongHang XU avatar  avatar Bingzhe avatar DongKeon Kim / 김동건 avatar  avatar  avatar yumez avatar Tiande,Chow avatar Theo Chen avatar Tommy Lau avatar

Watchers

James Cloos avatar Adam Smith avatar Rafael avatar  avatar  avatar Junhao Liu avatar

meilidu-hexo's Issues

Some strict mode error when process ejs files.

Hello, when I use this theme there're some errors during process .ejs files:

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

My node version is 4.4.6, and npm version is 3.10.6, I don't know whether is the version issue.

How could I fix this? Thank you.

On Desktops top menu is wrong

It appears to be positioned at the top left instead of only using the same width as the content to position itself.

Archive only shows current year

So with the uni test blog it works fine. But testing it with my own blog I only see the posts of the current year in the archive. Need to find out why and how to fix that. Also document it in the readme.

I think there is some generator or something where you could set a limit. Better check into this.

Hexo generate failure

ERROR Process failed: layout/category.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/home/hwding/Documents/hwding.github.io/themes/meilidu/layout/category.ejs"
    at Function (native)
    at Object.exports.compile (/home/hwding/Documents/hwding.github.io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/home/hwding/Documents/hwding.github.io/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/home/hwding/Documents/hwding.github.io/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/home/hwding/Documents/hwding.github.io/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/home/hwding/Documents/hwding.github.io/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/home/hwding/Documents/hwding.github.io/node_modules/hexo/lib/theme/index.js:71:20)
    at /home/hwding/Documents/hwding.github.io/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
    at Promise._settlePromise (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
    at Promise._fulfill (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
    at Promise._resolveCallback (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:431:57)
    at Promise._settlePromiseFromHandler (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:522:17)
    at Promise._settlePromise (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
    at Promise._fulfill (/home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
    at /home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /home/hwding/Documents/hwding.github.io/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

using node v4.6.1 on Fedora

Comments

It would be fine to add comments to posts

Improve top menu

The links in the header are hard to read.

Should be improved or maybe the menu moved around?

failed: layout/archive.ejs

hi,i got this error.
what to do next ?

V1.0


ERROR Process failed: layout/archive.ejs
SyntaxError: Unexpected token => in "C:\\Users\\Sanjay\\Desktop\\hexo\\themes\\m                                                    eilidu\\layout\\archive.ejs"
    at Function (native)
    at Object.exports.compile (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo-re                                                    nderer-ejs\node_modules\ejs\lib\ejs.js:242:14)
    at Function.ejsRenderer.compile (C:\Users\Sanjay\Desktop\hexo\node_modules\h                                                    exo-renderer-ejs\lib\renderer.js:11:14)
    at View._precompile (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\lib\them                                                    e\view.js:119:29)
    at View (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\lib\theme\view.js:13                                                    :8)
    at new Theme._View.View (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\lib\                                                    theme\index.js:37:10)
    at Theme.setView (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\lib\theme\i                                                    ndex.js:71:20)
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\lib\theme\processors\view.                                                    js:14:14
    at tryCatcher (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_modules\b                                                    luebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\Sanjay\Desktop\hexo\node_modu                                                    les\hexo\node_modules\bluebird\js\release\promise.js:510:31)
    at Promise._settlePromise (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\no                                                    de_modules\bluebird\js\release\promise.js:567:18)
    at Promise._settlePromise0 (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\n                                                    ode_modules\bluebird\js\release\promise.js:612:10)
    at Promise._settlePromises (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\n                                                    ode_modules\bluebird\js\release\promise.js:691:18)
    at Promise._fulfill (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_mod                                                    ules\bluebird\js\release\promise.js:636:18)
    at Promise._resolveCallback (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\                                                    node_modules\bluebird\js\release\promise.js:431:57)
    at Promise._settlePromiseFromHandler (C:\Users\Sanjay\Desktop\hexo\node_modu                                                    les\hexo\node_modules\bluebird\js\release\promise.js:522:17)
    at Promise._settlePromise (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\no                                                    de_modules\bluebird\js\release\promise.js:567:18)
    at Promise._settlePromise0 (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\n                                                    ode_modules\bluebird\js\release\promise.js:612:10)
    at Promise._settlePromises (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\n                                                    ode_modules\bluebird\js\release\promise.js:691:18)
    at Promise._fulfill (C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_mod                                                    ules\bluebird\js\release\promise.js:636:18)
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_modules\bluebird\js\r                                                    elease\nodeback.js:42:21
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_modules\hexo-fs\node_                                                    modules\graceful-fs\graceful-fs.js:78:16
    at fs.js:334:14
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo-deployer-git\node_modules\                                                    hexo-fs\node_modules\chokidar\node_modules\readdirp\node_modules\graceful-fs\gra                                                    ceful-fs.js:104:5
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_modules\nunjucks\node                                                    _modules\chokidar\node_modules\readdirp\node_modules\graceful-fs\graceful-fs.js:                                                    43:10
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_modules\hexo-fs\node_                                                    modules\graceful-fs\graceful-fs.js:43:10
    at C:\Users\Sanjay\Desktop\hexo\node_modules\hexo\node_modules\warehouse\nod                                                    e_modules\graceful-fs\graceful-fs.js:43:10
    at C:\Users\Sanjay\AppData\Roaming\npm\node_modules\hexo\node_modules\hexo-f                                                    s\node_modules\graceful-fs\graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:95:15)

Node version ?

Your Node version is too old to use MeiliDu.
MeiliDu needs at least version 6 you are running 11.0.0

Use "npm install -g n" to update your Node version.

Improve code highlighting

Code blocks should:

  • have more readable colors
  • use a mono font
  • have a padding above and below them in case two follow each other

Inline code should:

  • use a mono font
  • have a background color to set it apart

Cannot render correctly under Node v4 LTS and Hexo 3.2.2

As title, when running hexo s, got following errors:

INFO  Start processing
ERROR Process failed: layout/category.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/path/to/blog/themes/meilidu/layout/category.ejs"
    at Function (native)
    at Object.exports.compile (/path/to/blog/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/path/to/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/path/to/blog/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/path/to/blog/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/path/to/blog/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/path/to/blog/node_modules/hexo/lib/theme/index.js:71:20)
    at /path/to/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at Promise._resolveCallback (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at /path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /path/to/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
ERROR Process failed: layout/categories.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/path/to/blog/themes/meilidu/layout/categories.ejs"
    at Function (native)
    at Object.exports.compile (/path/to/blog/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/path/to/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/path/to/blog/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/path/to/blog/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/path/to/blog/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/path/to/blog/node_modules/hexo/lib/theme/index.js:71:20)
    at /path/to/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at Promise._resolveCallback (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at /path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /path/to/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
ERROR Process failed: layout/archive.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/path/to/blog/themes/meilidu/layout/archive.ejs"
    at Function (native)
    at Object.exports.compile (/path/to/blog/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/path/to/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/path/to/blog/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/path/to/blog/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/path/to/blog/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/path/to/blog/node_modules/hexo/lib/theme/index.js:71:20)
    at /path/to/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at Promise._resolveCallback (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at /path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /path/to/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
ERROR Process failed: layout/layout.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/path/to/blog/themes/meilidu/layout/layout.ejs"
    at Function (native)
    at Object.exports.compile (/path/to/blog/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/path/to/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/path/to/blog/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/path/to/blog/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/path/to/blog/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/path/to/blog/node_modules/hexo/lib/theme/index.js:71:20)
    at /path/to/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at Promise._resolveCallback (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at /path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /path/to/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
ERROR Process failed: layout/tags.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/path/to/blog/themes/meilidu/layout/tags.ejs"
    at Function (native)
    at Object.exports.compile (/path/to/blog/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/path/to/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/path/to/blog/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/path/to/blog/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/path/to/blog/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/path/to/blog/node_modules/hexo/lib/theme/index.js:71:20)
    at /path/to/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at Promise._resolveCallback (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at /path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /path/to/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
ERROR Process failed: layout/tag.ejs
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode in "/path/to/blog/themes/meilidu/layout/tag.ejs"
    at Function (native)
    at Object.exports.compile (/path/to/blog/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14)
    at Function.ejsRenderer.compile (/path/to/blog/node_modules/hexo-renderer-ejs/lib/renderer.js:11:14)
    at View._precompile (/path/to/blog/node_modules/hexo/lib/theme/view.js:119:29)
    at View (/path/to/blog/node_modules/hexo/lib/theme/view.js:13:8)
    at new Theme._View.View (/path/to/blog/node_modules/hexo/lib/theme/index.js:37:10)
    at Theme.setView (/path/to/blog/node_modules/hexo/lib/theme/index.js:71:20)
    at /path/to/blog/node_modules/hexo/lib/theme/processors/view.js:14:14
    at tryCatcher (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at Promise._resolveCallback (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
    at Promise._settlePromiseFromHandler (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
    at Promise._settlePromise (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
    at Promise._fulfill (/path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
    at /path/to/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
    at /path/to/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

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.