_config.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. # Hexo Configuration
  2. ## Docs: https://hexo.io/docs/configuration.html
  3. ## Source: https://github.com/hexojs/hexo/
  4. # Site
  5. title: 逝水无痕の博客
  6. subtitle: '逝水无痕の博客'
  7. description: '给时光以生命,给岁月以文明'
  8. keywords: 学习笔记
  9. author: 逝水无痕
  10. language: zh-CN
  11. timezone: ''
  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://hexo.zyjblogs.cn
  15. # permalink: :year/:month/:day/:title.html
  16. permalink: posts/:abbrlink.html
  17. abbrlink:
  18. alg: crc32 # 算法:crc16(default) and crc32
  19. rep: hex # 进制:dec(default) and hex
  20. permalink_defaults:
  21. pretty_urls:
  22. trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  23. trailing_html: true # Set to false to remove trailing '.html' from permalinks
  24. # Directory
  25. source_dir: source
  26. public_dir: public
  27. tag_dir: tags
  28. archive_dir: archives
  29. category_dir: categories
  30. code_dir: downloads/code
  31. i18n_dir: :lang
  32. skip_render:
  33. # Writing
  34. new_post_name: :title.md # File name of new posts
  35. default_layout: post
  36. titlecase: false # Transform title into titlecase
  37. external_link:
  38. enable: true # Open external links in new tab
  39. field: site # Apply to the whole site
  40. exclude: ''
  41. filename_case: 0
  42. render_drafts: false
  43. post_asset_folder: true
  44. marked:
  45. prependRoot: true
  46. postAsset: true
  47. relative_link: false
  48. future: true
  49. highlight:
  50. enable: true
  51. #主题开启了highlight 渲染,所以将line_number设置为false
  52. line_number: true
  53. auto_detect: false
  54. tab_replace: ''
  55. wrap: true
  56. hljs: false
  57. prismjs:
  58. enable: false
  59. preprocess: true
  60. line_number: true
  61. tab_replace: ''
  62. # Home page setting
  63. # path: Root path for your blogs index page. (default = '')
  64. # per_page: Posts displayed per page. (0 = disable pagination)
  65. # order_by: Posts order. (Order by date descending by default)
  66. index_generator:
  67. path: ''
  68. per_page: 10
  69. order_by: -date
  70. # Category & Tag
  71. default_category: uncategorized
  72. category_map:
  73. tag_map:
  74. # Metadata elements
  75. ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
  76. meta_generator: true
  77. # Date / Time format
  78. ## Hexo uses Moment.js to parse and display date
  79. ## You can customize the date format as defined in
  80. ## http://momentjs.com/docs/#/displaying/format/
  81. date_format: YYYY-MM-DD
  82. time_format: HH:mm:ss
  83. ## updated_option supports 'mtime', 'date', 'empty'
  84. updated_option: 'mtime'
  85. # Pagination
  86. ## Set per_page to 0 to disable pagination
  87. per_page: 10
  88. pagination_dir: page
  89. # Include / Exclude file(s)
  90. ## include:/exclude: options only apply to the 'source/' folder
  91. include:
  92. # 包括 'source/css/_typing.css'
  93. exclude:
  94. ignore:
  95. # Extensions
  96. ## Plugins: https://hexo.io/plugins/
  97. ## Themes: https://hexo.io/themes/
  98. # theme: landscape
  99. theme: butterfly
  100. # Deployment
  101. ## Docs: https://hexo.io/docs/one-command-deployment
  102. deploy:
  103. type: git
  104. repo: git@gogs.zyjblogs.cn:zhuyijun/hexo.zyjblogs.cn.git
  105. branch: master
  106. bangumi:
  107. enable: true
  108. source: bili
  109. vmid: 17719291
  110. title: '追番列表'
  111. quote: '生命不息,追番不止!'
  112. show: 1
  113. lazyload: false
  114. loading: /img/loading.gif
  115. webp: true
  116. Plugins:
  117. - hexo-generate-feed
  118. feed:
  119. # Generate both atom and rss2 feeds
  120. type:
  121. - atom
  122. - rss2
  123. path:
  124. - atom.xml
  125. - rss2.xml