|
| 1 | +# Hexo Configuration |
| 2 | +## Docs: https://hexo.io/docs/configuration.html |
| 3 | +## Source: https://github.com/hexojs/hexo/ |
| 4 | + |
| 5 | +# Site |
| 6 | +title: 学海无涯 |
| 7 | +subtitle: 无待于外,自求其内。 |
| 8 | +description: Life & Study |
| 9 | +keywords: 欢迎和我探讨技术以及分享实用工具 |
| 10 | +author: luliqwerty |
| 11 | +language: zh-CN |
| 12 | +# timezone: Asia/Shanghai |
| 13 | + |
| 14 | +# URL |
| 15 | +## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' |
| 16 | +url: https://www.hdq66.site |
| 17 | +permalink: /:title/ |
| 18 | +permalink_pinyin: |
| 19 | + enable: true |
| 20 | + separator: "-" |
| 21 | + #exclude: #排除的文章,排出后不会进行转义 |
| 22 | +# permalink: :year/:month/:day/:title/ |
| 23 | +permalink_defaults: |
| 24 | +pretty_urls: |
| 25 | + trailing_index: true # Set to false to remove trailing 'index.html' from permalinks |
| 26 | + trailing_html: true # Set to false to remove trailing '.html' from permalinks |
| 27 | + |
| 28 | +# Directory |
| 29 | +source_dir: source |
| 30 | +public_dir: public |
| 31 | +tag_dir: tags |
| 32 | +archive_dir: archives |
| 33 | +category_dir: categories |
| 34 | +code_dir: downloads/code |
| 35 | +i18n_dir: :lang |
| 36 | +skip_render: |
| 37 | + |
| 38 | +# Writing |
| 39 | +new_post_name: :title.md # File name of new posts |
| 40 | +default_layout: post |
| 41 | +titlecase: false # Transform title into titlecase |
| 42 | +external_link: |
| 43 | + enable: true # Open external links in new tab |
| 44 | + field: site # Apply to the whole site |
| 45 | + exclude: '' |
| 46 | +filename_case: 0 |
| 47 | +render_drafts: false |
| 48 | +post_asset_folder: false |
| 49 | +relative_link: false |
| 50 | +future: true |
| 51 | +syntax_highlighter: highlight.js |
| 52 | +highlight: |
| 53 | + line_number: false |
| 54 | + auto_detect: false |
| 55 | + tab_replace: '' |
| 56 | + wrap: true |
| 57 | + hljs: false |
| 58 | +prismjs: |
| 59 | + preprocess: true |
| 60 | + line_number: true |
| 61 | + tab_replace: '' |
| 62 | + |
| 63 | +# Home page setting |
| 64 | +# path: Root path for your blogs index page. (default = '') |
| 65 | +# per_page: Posts displayed per page. (0 = disable pagination) |
| 66 | +# order_by: Posts order. (Order by date descending by default) |
| 67 | +index_generator: |
| 68 | + path: '' |
| 69 | + per_page: 8 |
| 70 | + order_by: -date |
| 71 | + |
| 72 | +# Category & Tag |
| 73 | +default_category: uncategorized |
| 74 | +category_map: |
| 75 | +tag_map: |
| 76 | + |
| 77 | +# Metadata elements |
| 78 | +## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta |
| 79 | +meta_generator: true |
| 80 | + |
| 81 | +# Date / Time format |
| 82 | +## Hexo uses Moment.js to parse and display date |
| 83 | +## You can customize the date format as defined in |
| 84 | +## http://momentjs.com/docs/#/displaying/format/ |
| 85 | +date_format: YYYY-MM-DD |
| 86 | +time_format: HH:mm:ss |
| 87 | +## updated_option supports 'mtime', 'date', 'empty' |
| 88 | +updated_option: 'mtime' |
| 89 | + |
| 90 | +# Pagination |
| 91 | +## Set per_page to 0 to disable pagination |
| 92 | +per_page: 10 |
| 93 | +pagination_dir: page |
| 94 | + |
| 95 | +# Include / Exclude file(s) |
| 96 | +## include:/exclude: options only apply to the 'source/' folder |
| 97 | +include: |
| 98 | +exclude: |
| 99 | +ignore: |
| 100 | + |
| 101 | +# Extensions |
| 102 | +## Plugins: https://hexo.io/plugins/ |
| 103 | +## Themes: https://hexo.io/themes/ |
| 104 | +theme: reimu |
| 105 | + |
| 106 | +# Deployment |
| 107 | +## Docs: https://hexo.io/docs/one-command-deployment |
| 108 | +deploy: |
| 109 | + type: git |
| 110 | + repo: git@github.com:luliqwerty/luliqwerty.github.io.git |
| 111 | + branch: master |
| 112 | + |
0 commit comments