设置站点地图
- 安装
sitemap站点地图自动生成插件1
npm install hexo-generator-sitemap --save - 在站点配置文件中末尾添加
1
2sitemap: path: sitemap.xml - 站点配置文件url修改为你的网址域名,
hexo g之后,在站点根目录的/public生成sitemap.xml文件
sitemap站点地图自动生成插件
1 | |
1 | |
hexo g之后,在站点根目录的/public生成sitemap.xml文件使用git推送至github备份hexo的其他博客主题
git initvi .gitignoreREADME.md按需分配
1 | |
gitignore.txt保存配置,再另存为并改名git add .git commit -m "commit"git remote add origin yourname@github.com/example.gitgit push -u origin master