Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configurable plugins #38

Merged
merged 2 commits into from
Sep 5, 2019
Merged

feat: configurable plugins #38

merged 2 commits into from
Sep 5, 2019

Conversation

curbengh
Copy link
Contributor

@curbengh curbengh commented Sep 4, 2019

Based on #29 @jamelt, with ES6 syntax.
Fixes #12 , Closes #29

How to test

$ git clone --depth 1 https://github.com/hexojs/hexo-theme-landscape themes/landscape

config.yml
-theme: current-theme
+theme: landscape

Install this PR branch and Axis (a Stylus plugin),

package.json
-  "hexo-renderer-stylus": "^1.0.0"
+  "hexo-renderer-stylus: "curbengh/hexo-renderer-stylus#plugins",
+  "axis": "^1.0.0"
_config.yml
+stylus:
+  plugins: 'axis'
themes/landscape/source/css/style.styl
+.selector
+  glossy-button()

$ hexo clean && hexo g

public/css/style.css should have

.selector {
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 3px;
  background: #0084f6;
  ...
}

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 3860aa7 on curbengh:plugins into cd33c4c on hexojs:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jeet and rupture support
3 participants