ohroy / hexo-abbrlink2

Do What The F*ck You Want To Public License
19 stars 4 forks source link

Configuration not work #3

Open yihuajack opened 3 years ago

yihuajack commented 3 years ago

I previously installed hexo-abbrlink and I wanted to change to this plugin. I have uninstalled hexo-abbrlink and commented the original hexo-abbrlink configurations in _config.yml. (I previously set it as permalink as posts/:abbrlink.html) I have installed hexo-abbrlink2 by npm install hexo-abbrlink2 --save and it showed me info:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\glob-watcher\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\hexo-related-popular-posts\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ hexo-abbrlink2@1.0.1
added 1 package from 1 contributor in 3.375s

26 packages are looking for funding
  run `npm fund` for details

Then, I added the configuration in _config.yml as follows:

permalink: posts/:abbrlink.html
abbrlink:
    start: 0 # the first id, default 0

However, no matter using .html or slash, the links of pages are just as posts/:abbrlink with the original random numbers generated by hexo-abbrlink (but it does not follows the .html link as my previous configuration of hexo-abbrlink). Even if I rollback to hexo-abbrlink, the links of my posts still remain the form of slash.

rinscr3003 commented 2 years ago

just try npm uninstall hexo-abbrlink --save