設置主題
我們在官方主題中選擇一個自己喜歡的主題
來到GitHub,將它git clone到當前項目的themes文件夾中
設置_config.yml
找到
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: landscape
只需將這個landscape
名字改為你新設置的主題名字就行
新建文章post
npx hexo new "first post"
新建了first-post文章
新建菜單頁面page
新建一個 about 關于菜單
npx hexo new page about
設置圖片
{% img [class names] /path/to/image [width] [height] '"title text" "alt text"' %}
#舉例
{% img 花兒 /images/spring/daisy.jpg 100 100 '"雛菊" "多年生草本植物"' %}