_config.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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://lvzhiqiang.top # 网址
  16. root: / # 网站根目录
  17. permalink: :year/:title.html # 文章的永久链接格式
  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. - baidu_verify_kunmbyfMoR.html
  30. - google0a7896c13224b046.html
  31. # Writing,文章,这一块一般不需要修改
  32. new_post_name: :title.md # Hexo 默认以标题做为文件名称,设为 :year-:month-:day-:title.md 可让您更方便的通过日期来管理文章
  33. default_layout: post # 预设布局,Hexo 有三种默认布局:post、page 和 draft,分别对应不同的路径:source/_posts、source和source/_drafts
  34. titlecase: false # 把标题转换为 title case
  35. external_link: true # 在新标签中打开链接
  36. filename_case: 0 # 把文件名称转换为 (1) 小写或 (2) 大写
  37. render_drafts: false # 显示草稿,草稿默认不会显示在页面中
  38. post_asset_folder: true # 启动 Asset 文件夹
  39. relative_link: false # 把链接改为与根目录的相对位址
  40. future: true # 显示未来的文章
  41. highlight: # 代码块的设置
  42. enable: false
  43. line_number: true
  44. auto_detect: false
  45. tab_replace:
  46. # Home page setting
  47. # path: Root path for your blogs index page. (default = '')
  48. # per_page: Posts displayed per page. (0 = disable pagination)
  49. # order_by: Posts order. (Order by date descending by default)
  50. index_generator:
  51. path: ''
  52. per_page: 10
  53. order_by: -date
  54. # Category & Tag,分类 & 标签,这一块一般不需要修改
  55. default_category: uncategorized # 默认分类
  56. category_map:
  57. tag_map:
  58. # Date / Time format,日期 / 时间格式,这一块一般不需要修改
  59. ## Hexo uses Moment.js to parse and display date
  60. ## You can customize the date format as defined in
  61. ## http://momentjs.com/docs/#/displaying/format/
  62. date_format: YYYY-MM-DD # 日期格式
  63. time_format: HH:mm:ss # 时间格式
  64. # Pagination,分页,这一块一般不需要修改
  65. ## Set per_page to 0 to disable pagination
  66. per_page: 10 # 每页显示的文章量 (0 = 关闭分页功能)
  67. pagination_dir: page # 分页目录
  68. # Extensions,扩展
  69. ## Plugins: https://hexo.io/plugins/
  70. plugin:
  71. - hexo-generator-feed
  72. - hexo-generator-sitemap
  73. - hexo-generator-baidu-sitemap
  74. search:
  75. path: search.xml
  76. field: post
  77. #Feed Atom
  78. feed:
  79. type: atom
  80. path: atom.xml
  81. limit: 20
  82. ## Themes: https://hexo.io/themes/
  83. theme: 3-hexo # 当前主题名称。值为false时禁用主题
  84. # Deployment,部署
  85. ## 这里是重点,这里是修改发布地址,因为我们前面已经将本地 SSH 密钥信息添加到 Github 设置里面了,所以只要我们电脑里面持有那两个密钥文件就可以无需密码地跟 Github 做同步。
  86. ## 需要注意的是这里的 repo 采用的是 ssh 的地址,而不是 https 的。分支我们默认采用 master 分支。
  87. ## Docs: https://hexo.io/docs/deployment.html
  88. deploy:
  89. - type: git
  90. repo: git@github.com:tujidelv/tujidelv.github.io.git
  91. branch: master
  92. message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"
  93. - type: git
  94. repo: ssh://git@144.34.207.84:26376/www/wwwroot/hexo.lvzhiqiang.top/hexo-blog.git
  95. branch: master
  96. message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"