hello-world
这是Hexo留下的的默认文章,考虑了一下还是把它留下来吧。这个东西以前用Hexo做过一次,但是那次做完之后没多久之前的那台笔记本就坏了,也改不了了。这次重启,主要是想写一下刷LeetCode的题解,以及一些日常之类的分享,当日记本用吧。
1 | 正经人谁写日记啊 |
至于这篇文章就记录一些常用指令吧,找不到了就回来看看。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Login git
1 | $ git config --global user.email {email} |
More info: Git
Hexo related
1 | $ hexo n [layout] <title> |
Create a new article. If the layout is not set, the default parameter is used instead of the default_layout
parameter in _config. yml
. Use layout draft
to create drafts. If the title contains spaces, please enclose them in “quotation marks”.
1 | $ hexo g -d |
Generate static files and deploy them after completion.
1 | $ hexo s |
Start the server locally. By default, the access URL is: http://localhost:4000/ .
1 | $ hexo clean |
Clear cache files db.json
and generated static files public
.
More info: Hexo
Hexo Modify
这次博客自定义修改的内容如下:
1:主题,使用NexT下的Gemini。
2:背景图片,用ffmpeg生成的gif图片。
1 | .\ffmpeg.exe -i .\Prey_menu_background.mp4 -filter:v fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 1920:1080 output.gif |
3:侧边栏的自定义,主要包括头像、相关链接、分类和标签、icon的自定义。
4:页面底部的一些设计。
其它的也没什么了,青岛的长夜快要破晓了,明天起床再发我的第一篇题解吧,计划前几天每天发两个,把我前面做的每日一题补完,然后后面每天尽量把每日一题的题解发上来。