_config.yml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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: 10+经验擅长Java、研发管理、架构设计、React、Docker、Python等
  8. keywords: Java开发, 研发负责人, 架构师, 求职, 软件工程师
  9. author: Gamehu
  10. language: zh-CN
  11. timezone: Asia/Shanghai
  12. # URL
  13. ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
  14. url: https://www.gamehu.run/
  15. root: /
  16. permalink: :year/:month/:day/:title/
  17. permalink_defaults:
  18. pretty_urls:
  19. trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  20. trailing_html: true # Set to false to remove trailing '.html' from permalinks
  21. # Directory
  22. source_dir: source
  23. public_dir: public
  24. tag_dir: tags
  25. archive_dir: archives
  26. category_dir: categories
  27. code_dir: downloads/code
  28. i18n_dir: :lang
  29. skip_render:
  30. # Writing
  31. new_post_name: :title.md # File name of new posts
  32. default_layout: post
  33. titlecase: false # Transform title into titlecase
  34. external_link:
  35. enable: true # Open external links in new tab
  36. field: site # Apply to the whole site
  37. exclude: ''
  38. filename_case: 0
  39. render_drafts: false
  40. post_asset_folder: true
  41. marked:
  42. prependRoot: true
  43. postAsset: true
  44. relative_link: false
  45. future: true
  46. highlight:
  47. enable: true
  48. line_number: true
  49. auto_detect: false
  50. tab_replace: ''
  51. wrap: true
  52. hljs: false
  53. # Home page setting
  54. # path: Root path for your blogs index page. (default = '')
  55. # per_page: Posts displayed per page. (0 = disable pagination)
  56. # order_by: Posts order. (Order by date descending by default)
  57. index_generator:
  58. path: ''
  59. per_page: 10
  60. order_by: -date
  61. # Category & Tag
  62. default_category: uncategorized
  63. category_map:
  64. tag_map:
  65. # Metadata elements
  66. ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
  67. meta_generator: true
  68. # Date / Time format
  69. ## Hexo uses Moment.js to parse and display date
  70. ## You can customize the date format as defined in
  71. ## http://momentjs.com/docs/#/displaying/format/
  72. date_format: YYYY-MM-DD
  73. time_format: HH:mm:ss
  74. ## Use post's date for updated date unless set in front-matter
  75. updated_option: false
  76. # Pagination
  77. ## Set per_page to 0 to disable pagination
  78. per_page: 10
  79. pagination_dir: page
  80. # Include / Exclude file(s)
  81. ## include:/exclude: options only apply to the 'source/' folder
  82. include:
  83. exclude:
  84. ignore:
  85. # Extensions
  86. ## Plugins: https://hexo.io/plugins/
  87. ## Themes: https://hexo.io/themes/
  88. theme: next
  89. # offline config passed to sw-precache.
  90. service_worker:
  91. maximumFileSizeToCacheInBytes: 5242880
  92. staticFileGlobs:
  93. - public/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,woff2}
  94. stripPrefix: public
  95. verbose: true
  96. # Deployment
  97. ## Docs: https://hexo.io/docs/deployment.html
  98. deploy:
  99. type: git
  100. repo:
  101. # github: https://github.com/gamehu/gamehu.github.io,master
  102. vps: ssh://root@104.128.95.214:28915/home/git/blog.git,master
  103. # deploy:
  104. # type: git
  105. # repository: git@github.com/gamehu/gamehu.github.io.git
  106. # branch: master
  107. # mermaid chart
  108. mermaid: ## mermaid url https://github.com/knsv/mermaid
  109. enable: true # default true
  110. version: "7.1.2" # default v7.1.2
  111. options: # find more api options from https://github.com/knsv/mermaid/blob/master/src/mermaidAPI.js
  112. #startOnload: true // default true
  113. # Likely Share
  114. # See: https://ilyabirman.net/projects/likely/, https://github.com/ilyabirman/Likely
  115. # Likely supports four looks, nine social networks, any button text.
  116. # You are free to modify the text value and order of any network.
  117. likely:
  118. enable: true
  119. cdn:
  120. js: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.min.js
  121. css: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.min.css
  122. look: normal # available values: normal, light, small, big
  123. networks:
  124. twitter: Tweet
  125. facebook: Share
  126. linkedin: Link
  127. gplus: Plus
  128. vkontakte: Share
  129. odnoklassniki: Class
  130. telegram: Send
  131. whatsapp: Send
  132. pinterest: Pin
  133. # NeedMoreShare2
  134. # Dependencies: https://github.com/theme-next/theme-next-needmoreshare2
  135. # For more information: https://github.com/revir/need-more-share2
  136. # iconStyle: default | box
  137. # boxForm: horizontal | vertical
  138. # position: top / middle / bottom + Left / Center / Right
  139. # networks:
  140. # Weibo | Wechat | Douban | QQZone | Twitter | Facebook | Linkedin | Mailto | Reddit | Delicious | StumbleUpon | Pinterest
  141. # GooglePlus | Tumblr | GoogleBookmarks | Newsvine | Evernote | Friendfeed | Vkontakte | Odnoklassniki | Mailru
  142. needmoreshare:
  143. enable: true
  144. cdn:
  145. js: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.js
  146. css: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.css
  147. postbottom:
  148. enable: true
  149. options:
  150. iconStyle: box
  151. boxForm: horizontal
  152. position: bottomCenter
  153. networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
  154. float:
  155. enable: false
  156. options:
  157. iconStyle: box
  158. boxForm: horizontal
  159. position: middleRight
  160. networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
  161. # 在Hexo的_config.yml中启用sitemap
  162. sitemap:
  163. path: sitemap.xml
  164. baidusitemap:
  165. path: baidusitemap.xml
  166. # 开启RSS订阅
  167. feed:
  168. type: atom
  169. path: atom.xml
  170. limit: 20
  171. # 压缩HTML
  172. html_minifier:
  173. enable: false
  174. exclude:
  175. # 压缩CSS
  176. css_minifier:
  177. enable: true
  178. exclude:
  179. - '*.min.css'
  180. # 压缩JS
  181. js_minifier:
  182. enable: true
  183. mangle: true
  184. output:
  185. compress:
  186. exclude:
  187. - '*.min.js'
  188. image_minifier:
  189. enable: false