goohugo / myblog

该仓库为个人博客,请不要提 issue ,该仓库后端参考了 @yihong0618 的 gitblog 项目,前端参考了@LoeiFy 的 Mirror 项目,感谢!
MIT License
2 stars 1 forks source link

Mirror 中文教程 #27

Open goohugo opened 1 year ago

goohugo commented 1 year ago
  1. 下载 Mirror 的最新版本 地址

  2. 获取你的 hash 地址

  3. 修改 index.html

...

<script>
window.config = {
  organization: false, // 默认是 false,如果你的项目是属于 GitHub 组织 的,请设置为 true
  order: 'UPDATED_AT', // 文章排序,以 创建时间 或者 更新时间,可选值 'UPDATED_AT','CREATED_AT'
  title: 'Mirror', // 博客标题
  user: 'LoeiFy', // GitHub 用户名,必须
  repository: 'Recordum', // GitHub 项目名,指定文章内容来源 issues,必须
  authors: 'LoeiFy,author1', // 博客作者,以 ',' 分割,GitHub 用户名默认包含在内
  ignores: '17,13', // 文章忽略的 issues ID
  host: '', // 博客的主域名,不填自动获取,请注意这个值会影响 hash 的值
  hash: '', // 必须
  perpage: 5, // 分页
}
</script>

...

保存 index.html, 然后将所有文件 push 到 gh-pages 分支或者 master 分支的 docs 目录

moker99 commented 4 months ago

請問修改好index.html欓後 下 mirror build找不到此指令引麽解,謝謝