default_config.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. 'use strict';
  2. module.exports = {
  3. // Site
  4. title: 'Hexo',
  5. subtitle: '',
  6. description: '',
  7. author: 'John Doe',
  8. language: 'en',
  9. timezone: '',
  10. // URL
  11. url: 'http://example.com',
  12. root: '/',
  13. permalink: ':year/:month/:day/:title/',
  14. permalink_defaults: {},
  15. pretty_urls: {
  16. trailing_index: true,
  17. trailing_html: true
  18. },
  19. // Directory
  20. source_dir: 'source',
  21. public_dir: 'public',
  22. tag_dir: 'tags',
  23. archive_dir: 'archives',
  24. category_dir: 'categories',
  25. code_dir: 'downloads/code',
  26. i18n_dir: ':lang',
  27. skip_render: [],
  28. // Writing
  29. new_post_name: ':title.md',
  30. default_layout: 'post',
  31. titlecase: false,
  32. external_link: {
  33. enable: true,
  34. field: 'site',
  35. exclude: ''
  36. },
  37. filename_case: 0,
  38. render_drafts: false,
  39. post_asset_folder: false,
  40. relative_link: false,
  41. future: true,
  42. highlight: {
  43. enable: true,
  44. auto_detect: false,
  45. line_number: true,
  46. tab_replace: '',
  47. wrap: true,
  48. hljs: false
  49. },
  50. prismjs: {
  51. enable: false,
  52. preprocess: true,
  53. line_number: true,
  54. tab_replace: ''
  55. },
  56. // Category & Tag
  57. default_category: 'uncategorized',
  58. category_map: {},
  59. tag_map: {},
  60. // Date / Time format
  61. date_format: 'YYYY-MM-DD',
  62. time_format: 'HH:mm:ss',
  63. updated_option: 'mtime',
  64. // * mtime: file modification date (default)
  65. // * date: use_date_for_updated
  66. // * empty: no more update
  67. // Pagination
  68. per_page: 10,
  69. pagination_dir: 'page',
  70. // Extensions
  71. theme: 'landscape',
  72. server: {
  73. cache: false
  74. },
  75. // Deployment
  76. deploy: {},
  77. // ignore files from processing
  78. ignore: [],
  79. // Category & Tag
  80. meta_generator: true
  81. };