Coder Social home page Coder Social logo

hexo-ajs's Introduction

hexo-ajs

为了主题作者更好的让用户自定义js内容

安装

安装插件,在博客根目录[Blogroot]下打开终端,运行以下指令:

npm install hexo-ajs --save

添加配置信息

以下为写法示例 在站点配置文件_config.yml或者主题配置文件_config.acrylic.yml中添加

# ajs config
ajs:
  input_path: "themes/Acrylic/source/js"
  output_path: "source/js"

使用方法

填写配置项
在input_path的文件夹中创建.ajs文件
使用"#{theme.xxx}"或者"#{config.xxx}"
执行hexo ajs来生成.js文件
可以将博客根目录下package.json中的scripts.build更改为hexo generate&&hexo ajs
执行npm run build即可

最后

hexo cl&&hexo g&&hexo ajs&&hexo s

hexo-ajs's People

Contributors

marcusyyds avatar

Watchers

 avatar

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.