卸载 hexo-generator-index

执行命令: npm uninstall hexo-generator-index

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PS D:\sources\hexo-repos\hujiyi.github.io> npm uninstall hexo-generator-index
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN rm not removing D:\sources\hexo-repos\hujiyi.github.io\node_modules\.bin\stylus.cmd as it wasn't installed by D:\sources\hexo-repos\hujiyi.github.io\node_modules\stylus
npm WARN rm not removing D:\sources\hexo-repos\hujiyi.github.io\node_modules\.bin\stylus as it wasn't installed by D:\sources\hexo-repos\hujiyi.github.io\node_modules\stylus
npm WARN rm not removing D:\sources\hexo-repos\hujiyi.github.io\node_modules\.bin\js-yaml.cmd as it wasn't installed by D:\sources\hexo-repos\hujiyi.github.io\node_modules\js-yaml
npm WARN rm not removing D:\sources\hexo-repos\hujiyi.github.io\node_modules\.bin\js-yaml as it wasn't installed by D:\sources\hexo-repos\hujiyi.github.io\node_modules\js-yaml

> ejs@2.7.4 postinstall D:\sources\hexo-repos\hujiyi.github.io\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 29 packages from 12 contributors, removed 24 packages and updated 254 packages in 90.165s

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

安装 hexo-generator-index-pin-top

执行命令: npm i hexo-generator-index-pin-top --save

1
2
3
4
5
6
7
8
9
PS D:\sources\hexo-repos\hujiyi.github.io> npm i  hexo-generator-index-pin-top --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ hexo-generator-index-pin-top@0.2.2
added 2 packages from 2 contributors and removed 1 package in 2.781s

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

文件置顶

在需要置顶的文章的 Front-matter 中加上 top: true/数字 即可, 数字越大,文章越靠前。

1
2
3
4
5
6
7
8
9
10
11
12
---
title: 在 Windows 10 配置 Flutter 开发环境
date: 2021-12-04 19:33:44
top: 10
categories:
- flutter
tags:
- flutter
- android studio
top_img:
cover: https://hujiyi.github.io/2021/02/02/flutter-introduction-part-I/flutter_eman_blog.png
---

参考资料:https://blog.csdn.net/weixin_43372529/article/details/114176470

===END===