_config.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Hexo Configuration
  2. ## Docs: https://hexo.io/docs/configuration.html
  3. ## Source: https://github.com/hexojs/hexo/
  4. # Site
  5. title: James Peret
  6. subtitle: ''
  7. description: ''
  8. keywords:
  9. author: james Peret
  10. language: en
  11. timezone: ''
  12. # URL
  13. ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
  14. url: http://jamesperet.com
  15. root: /
  16. permalink: :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: false
  41. relative_link: false
  42. future: true
  43. highlight:
  44. enable: true
  45. line_number: true
  46. auto_detect: false
  47. tab_replace: ''
  48. wrap: true
  49. hljs: false
  50. # Home page setting
  51. # path: Root path for your blogs index page. (default = '')
  52. # per_page: Posts displayed per page. (0 = disable pagination)
  53. # order_by: Posts order. (Order by date descending by default)
  54. index_generator:
  55. path: ''
  56. per_page: 100
  57. order_by: -date
  58. # Category & Tag
  59. default_category: uncategorized
  60. category_map:
  61. tag_map:
  62. # Metadata elements
  63. ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
  64. meta_generator: true
  65. # Date / Time format
  66. ## Hexo uses Moment.js to parse and display date
  67. ## You can customize the date format as defined in
  68. ## http://momentjs.com/docs/#/displaying/format/
  69. date_format: YYYY-MM-DD
  70. time_format: HH:mm:ss
  71. ## Use post's date for updated date unless set in front-matter
  72. use_date_for_updated: false
  73. # Pagination
  74. ## Set per_page to 0 to disable pagination
  75. per_page: 10
  76. pagination_dir: page
  77. # Include / Exclude file(s)
  78. ## include:/exclude: options only apply to the 'source/' folder
  79. include:
  80. exclude:
  81. ignore:
  82. # Extensions
  83. ## Plugins: https://hexo.io/plugins/
  84. ## Themes: https://hexo.io/themes/
  85. theme: james-theme
  86. # Deployment
  87. ## Docs: https://hexo.io/docs/deployment.html
  88. deploy:
  89. type: ''