frontend
customize hexo theme
2019/07/17 0

customeize hexo theme arrange (a group of people or things) in classes or categories according to shared qualities or characteristics.

# scaffolds

|--- pulse
|    |--- languages
|         |--- en.yml
|         |--- zh-CN.yml
|    |--- layout
|         |--- _partial
|              |--- article.ejs
|              |--- header.ejs
|              |--- footer.ejs
|              |--- side.ejs
|         |--- index.ejs
|         |--- post.ejs
|         |--- page.ejs
|         |--- archive.ejs
|         |--- layout.ejs
|    |--- scripts
|    |--- source
|    |--- _config.yml

# ejs

# Partial 局部模版(opens new window)

# with params
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>   # Fragment Caching

<%- partial('header', {}, {cache: true});

# layout


<!DOCTYPE html>
<html>
  <body><%- body %></body>
</html>

# variables(opens new window)

# use config variables
<%- config.var %>

# use theme variables
<%- theme.var %>

# helpers

# load css

<%- css(path) %>
<%- css([path1, path2]) %>


# url_for

<%- url_for(path) %>


# sass support

 npm install --save hexo-renderer-sass