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.
I previously installed
hexo-abbrlink
and I wanted to change to this plugin. I have uninstalledhexo-abbrlink
and commented the originalhexo-abbrlink
configurations in_config.yml
. (I previously set it aspermalink
asposts/:abbrlink.html
) I have installedhexo-abbrlink2
bynpm install hexo-abbrlink2 --save
and it showed me info:Then, I added the configuration in
_config.yml
as follows:However, no matter using .html or slash, the links of pages are just as
posts/:abbrlink
with the original random numbers generated byhexo-abbrlink
(but it does not follows the .html link as my previous configuration ofhexo-abbrlink
). Even if I rollback tohexo-abbrlink
, the links of my posts still remain the form of slash.