_config.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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/:month/:day/:title.html # 文章的永久链接格式
  18. permalink_defaults:
  19. pretty_urls:
  20. trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  21. trailing_html: true # Set to false to remove trailing '.html' from permalinks
  22. # Directory,目录,这一块一般不需要修改
  23. source_dir: source # 资源文件夹,这个文件夹用来存放内容。
  24. public_dir: public # 公共文件夹,这个文件夹用于存放生成的站点文件。
  25. tag_dir: tags # 标签文件夹
  26. archive_dir: archives # 归档文件夹
  27. category_dir: categories # 分类文件夹
  28. code_dir: downloads/code # Include code 文件夹
  29. i18n_dir: :lang # 国际化(i18n)文件夹
  30. skip_render: # 跳过指定文件的渲染,您可使用 glob 表达式来匹配路径。
  31. - README.md
  32. - baidu_verify_kunmbyfMoR.html
  33. - google0a7896c13224b046.html
  34. # Writing,文章,这一块一般不需要修改
  35. new_post_name: :title.md # Hexo 默认以标题做为文件名称,设为 :year-:month-:day-:title.md 可让您更方便的通过日期来管理文章
  36. default_layout: post # 预设布局,Hexo 有三种默认布局:post、page 和 draft,分别对应不同的路径:source/_posts、source和source/_drafts
  37. titlecase: false # 把标题转换为 title case
  38. external_link:
  39. enable: true # Open external links in new tab
  40. field: site # Apply to the whole site
  41. exclude: ''
  42. filename_case: 0 # 把文件名称转换为 (1) 小写或 (2) 大写
  43. render_drafts: false # 显示草稿,草稿默认不会显示在页面中
  44. post_asset_folder: true # 启动 Asset 文件夹
  45. relative_link: false # 把链接改为与根目录的相对位址
  46. future: true # 显示未来的文章
  47. highlight: # 代码块的设置
  48. enable: false
  49. line_number: true
  50. auto_detect: false
  51. tab_replace: ''
  52. wrap: true
  53. hljs: false
  54. prismjs:
  55. enable: false
  56. preprocess: true
  57. line_number: true
  58. tab_replace: ''
  59. # Home page setting
  60. # path: Root path for your blogs index page. (default = '')
  61. # per_page: Posts displayed per page. (0 = disable pagination)
  62. # order_by: Posts order. (Order by date descending by default)
  63. index_generator:
  64. path: ''
  65. per_page: 10
  66. order_by: -date
  67. # Category & Tag,分类 & 标签,这一块一般不需要修改
  68. default_category: uncategorized # 默认分类
  69. category_map:
  70. tag_map:
  71. # Date / Time format,日期 / 时间格式,这一块一般不需要修改
  72. ## Hexo uses Moment.js to parse and display date
  73. ## You can customize the date format as defined in
  74. ## http://momentjs.com/docs/#/displaying/format/
  75. date_format: YYYY-MM-DD # 日期格式
  76. time_format: HH:mm:ss # 时间格式
  77. ## updated_option supports 'mtime', 'date', 'empty'
  78. updated_option: 'mtime'
  79. encrypt:
  80. enable: true
  81. # Pagination,分页,这一块一般不需要修改
  82. ## Set per_page to 0 to disable pagination
  83. per_page: 10 # 每页显示的文章量 (0 = 关闭分页功能)
  84. pagination_dir: page # 分页目录
  85. # Extensions,扩展
  86. ## Plugins: https://hexo.io/plugins/
  87. plugin:
  88. - hexo-generator-feed
  89. - hexo-generator-sitemap
  90. - hexo-generator-baidu-sitemap
  91. search:
  92. path: search.xml
  93. field: post
  94. #Feed Atom
  95. feed:
  96. type: atom
  97. path: atom.xml
  98. limit: 20
  99. ## Themes: https://hexo.io/themes/
  100. theme: hexo-theme-3-hexo # 当前主题名称。值为false时禁用主题
  101. # Deployment,部署
  102. ## 这里是重点,这里是修改发布地址,因为我们前面已经将本地 SSH 密钥信息添加到 Github 设置里面了,所以只要我们电脑里面持有那两个密钥文件就可以无需密码地跟 Github 做同步。
  103. ## 需要注意的是这里的 repo 采用的是 ssh 的地址,而不是 https 的。分支我们默认采用 master 分支。
  104. ## Docs: https://hexo.io/docs/deployment.html
  105. deploy:
  106. - type: git
  107. repo: ssh://git@144.34.207.84:26376/www/wwwroot/hexo.lvzhiqiang.top/hexo-blog.git
  108. branch: master
  109. message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"
  110. #- type: git
  111. # repo: git@github.com:tujidelv/tujidelv.github.io.git
  112. # branch: master
  113. # message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"