# hexo-blog-source **Repository Path**: iplusplus/hexo-blog-source ## Basic Information - **Project Name**: hexo-blog-source - **Description**: hexo博客源文件备份,切换到hugo了 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-15 - **Last Updated**: 2023-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README - 安装 hugo ``` brew install hugo ``` - 下载主题 git clone 到 themes 目录 - 本地预览 ``` hugo server ``` - 打包 ``` hugo ``` ## 创建新内容 ``` hugo new posts/[name]/index.md ``` 将会在 `content/posts/name/index.md` 路径采用 `archetypes/posts.md` 创建文件 - 图片/pdf 等资源可以放到 index.md 同级目录下,然后在 md 中就能访问了 ## 头部格式 默认采用 toml 格式 ``` categories = ['Development', 'VIM'] date = '2012-04-06' description = 'spf13-vim is a cross platform distribution of vim plugins and resources for Vim.' slug = 'spf13-vim-3-0-release-and-new-website' tags = ['.vimrc', 'plugins', 'spf13-vim', 'vim'] title = 'spf13-vim 3.0 release and new website' ```