_config.yml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Hexo Configuration
  2. ## Docs: https://hexo.io/docs/configuration.html
  3. ## Source: https://github.com/hexojs/hexo/
  4. # Site,网站,这一块区域主要是设置博客的主要说明,需要注意的是:每个冒号后面都是有一个空格,然后再书写自己的内容
  5. title: Tujidelv Code # 网站标题
  6. subtitle: 好记性不如烂笔头 # 网站副标题
  7. description: Tujidelv的技术小窝 # 网站描述,主要用于SEO,告诉搜索引擎一个关于您站点的简单描述,通常建议在其中包含您网站的关键词
  8. keywords:
  9. author: Tujide.lv # 您的名字,用于主题显示文章的作者
  10. language: zh-CN # 网站使用的语言,也可以用zh-Hans
  11. timezone:
  12. # URL,网址,这一块区域一般可以设置的是 url 这个参数,比如我要设置绑定域名的,这里就需要填写我的域名信息
  13. ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
  14. ## 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,则请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。
  15. url: https://www.lvzhiqiang.top # 网址
  16. root: / # 网站根目录
  17. permalink: :year/:month/:day/:title/ # 文章的永久链接格式
  18. permalink_defaults:
  19. # Directory,目录,这一块一般不需要修改
  20. source_dir: source # 资源文件夹,这个文件夹用来存放内容。
  21. public_dir: public # 公共文件夹,这个文件夹用于存放生成的站点文件。
  22. tag_dir: tags # 标签文件夹
  23. archive_dir: archives # 归档文件夹
  24. category_dir: categories # 分类文件夹
  25. code_dir: downloads/code # Include code 文件夹
  26. i18n_dir: :lang # 国际化(i18n)文件夹
  27. skip_render: # 跳过指定文件的渲染,您可使用 glob 表达式来匹配路径。
  28. - README.md
  29. # Writing,文章,这一块一般不需要修改
  30. new_post_name: :title.md # Hexo 默认以标题做为文件名称,设为 :year-:month-:day-:title.md 可让您更方便的通过日期来管理文章
  31. default_layout: post # 预设布局,Hexo 有三种默认布局:post、page 和 draft,分别对应不同的路径:source/_posts、source和source/_drafts
  32. titlecase: false # 把标题转换为 title case
  33. external_link: true # 在新标签中打开链接
  34. filename_case: 0 # 把文件名称转换为 (1) 小写或 (2) 大写
  35. render_drafts: false # 显示草稿,草稿默认不会显示在页面中
  36. post_asset_folder: true # 启动 Asset 文件夹
  37. relative_link: false # 把链接改为与根目录的相对位址
  38. future: true # 显示未来的文章
  39. highlight: # 代码块的设置
  40. enable: false
  41. line_number: true
  42. auto_detect: false
  43. tab_replace:
  44. # Home page setting
  45. # path: Root path for your blogs index page. (default = '')
  46. # per_page: Posts displayed per page. (0 = disable pagination)
  47. # order_by: Posts order. (Order by date descending by default)
  48. index_generator:
  49. path: ''
  50. per_page: 10
  51. order_by: -date
  52. # Category & Tag,分类 & 标签,这一块一般不需要修改
  53. default_category: uncategorized # 默认分类
  54. category_map:
  55. tag_map:
  56. # Date / Time format,日期 / 时间格式,这一块一般不需要修改
  57. ## Hexo uses Moment.js to parse and display date
  58. ## You can customize the date format as defined in
  59. ## http://momentjs.com/docs/#/displaying/format/
  60. date_format: YYYY-MM-DD # 日期格式
  61. time_format: HH:mm:ss # 时间格式
  62. # Pagination,分页,这一块一般不需要修改
  63. ## Set per_page to 0 to disable pagination
  64. per_page: 10 # 每页显示的文章量 (0 = 关闭分页功能)
  65. pagination_dir: page # 分页目录
  66. # Extensions,扩展
  67. ## Plugins: https://hexo.io/plugins/
  68. plugin:
  69. - hexo-generator-feed
  70. - hexo-generator-sitemap
  71. #Feed Atom
  72. feed:
  73. type: atom
  74. path: atom.xml
  75. limit: 20
  76. ## Themes: https://hexo.io/themes/
  77. theme: 3-hexo # 当前主题名称。值为false时禁用主题
  78. # Deployment,部署
  79. ## 这里是重点,这里是修改发布地址,因为我们前面已经将本地 SSH 密钥信息添加到 Github 设置里面了,所以只要我们电脑里面持有那两个密钥文件就可以无需密码地跟 Github 做同步。
  80. ## 需要注意的是这里的 repo 采用的是 ssh 的地址,而不是 https 的。分支我们默认采用 master 分支。
  81. ## Docs: https://hexo.io/docs/deployment.html
  82. deploy:
  83. type: git
  84. repo: git@github.com:tujidelv/tujidelv.github.io.git
  85. branch: master