_config.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # Hexo Configuration
  2. ## Docs: https://hexo.io/docs/configuration.html
  3. ## Source: https://github.com/hexojs/hexo/
  4. # Site
  5. title: If7's Home
  6. subtitle: "There's Something New"
  7. description: ""
  8. keywords:
  9. author: RegMs If
  10. language: zh-CN
  11. timezone: Asia/Shanghai
  12. # URL
  13. ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
  14. url: https://regmsif.cf
  15. permalink: :year/:month/:day/:title/
  16. permalink_defaults:
  17. pretty_urls:
  18. trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  19. trailing_html: true # Set to false to remove trailing '.html' from permalinks
  20. # Directory
  21. source_dir: source
  22. public_dir: public
  23. tag_dir: tags
  24. archive_dir: archives
  25. category_dir: categories
  26. code_dir: downloads/code
  27. i18n_dir: :lang
  28. skip_render:
  29. # Writing
  30. new_post_name: :title.md # File name of new posts
  31. default_layout: post
  32. titlecase: false # Transform title into titlecase
  33. external_link:
  34. enable: true # Open external links in new tab
  35. field: site # Apply to the whole site
  36. exclude: ""
  37. filename_case: 0
  38. render_drafts: false
  39. post_asset_folder: true
  40. marked:
  41. prependRoot: true
  42. postAsset: true
  43. relative_link: false
  44. future: true
  45. highlight:
  46. enable: true
  47. line_number: true
  48. auto_detect: false
  49. tab_replace: ""
  50. wrap: true
  51. hljs: false
  52. prismjs:
  53. enable: false
  54. preprocess: true
  55. line_number: true
  56. tab_replace: ""
  57. # Home page setting
  58. # path: Root path for your blogs index page. (default = '')
  59. # per_page: Posts displayed per page. (0 = disable pagination)
  60. # order_by: Posts order. (Order by date descending by default)
  61. index_generator:
  62. path: ""
  63. per_page: 10
  64. order_by: -date
  65. # Category & Tag
  66. default_category: uncategorized
  67. category_map:
  68. tag_map:
  69. # Metadata elements
  70. ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
  71. meta_generator: true
  72. # Date / Time format
  73. ## Hexo uses Moment.js to parse and display date
  74. ## You can customize the date format as defined in
  75. ## http://momentjs.com/docs/#/displaying/format/
  76. date_format: YYYY-MM-DD
  77. time_format: HH:mm:ss
  78. ## updated_option supports 'mtime', 'date', 'empty'
  79. updated_option: "mtime"
  80. # Pagination
  81. ## Set per_page to 0 to disable pagination
  82. per_page: 10
  83. pagination_dir: page
  84. # Include / Exclude file(s)
  85. ## include:/exclude: options only apply to the 'source/' folder
  86. include:
  87. exclude:
  88. ignore:
  89. # Extensions
  90. ## Plugins: https://hexo.io/plugins/
  91. ## Themes: https://hexo.io/themes/
  92. theme: fluid
  93. # Deployment
  94. ## Docs: https://hexo.io/docs/one-command-deployment
  95. deploy:
  96. type: "sftp"
  97. host: regmsif.cf
  98. user: root
  99. remotePath: /root/hexo
  100. privateKey: /Users/regmsif/.ssh/id_rsa