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

About plugins #1038

Closed
jiangtj opened this issue Jul 30, 2019 · 4 comments
Closed

About plugins #1038

jiangtj opened this issue Jul 30, 2019 · 4 comments

Comments

@jiangtj
Copy link
Member

jiangtj commented Jul 30, 2019

First, now we have two plugin solutions, which may be confusing to users, or we can change the name of one of them

Second, regarding the js or css plugin, I think cdn is very good, and if you need to use it locally, you can set it in cdn, like the following.

  1. download https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js and https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css to your source/js/ and source/css/.
  2. direct reference in configuration
vendors:
  fancybox: /js/jquery.fancybox.min.js
  fancybox_css: /css/jquery.fancybox.min.css

So why use the js or css plugin?

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Jul 31, 2019

We can use bower. Both .bowerrc and bower.json are configured, just need to set the URL of all plugins

Or use git submodule, See also: #663

Ah, bower has been deprecated: https://www.npmjs.com/package/bower

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Aug 1, 2019

Default theme Landscape is using grunt to manage js / css plugins:
https://github.com/hexojs/hexo-theme-landscape/blob/master/Gruntfile.js

Theme NexT is using gulp, but only for lint / test

GitHub
A brand new default theme for Hexo. Contribute to hexojs/hexo-theme-landscape development by creating an account on GitHub.

Emm, they just give up using grunt: hexojs/hexo-theme-landscape@b7277a4

@stevenjoezhang
Copy link
Contributor

So why use the js or css plugin?

Fixed in #1105

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Jul 13, 2020

Superseded by https://github.com/next-theme/plugins

GitHub
Plugins for Hexo theme NexT. Contribute to next-theme/plugins development by creating an account on GitHub.

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

No branches or pull requests

3 participants