|
| 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:'' |
| 9 | +keywords: |
| 10 | +author:haotf |
| 11 | +language:en |
| 12 | +timezone:'' |
| 13 | + |
| 14 | +# URL |
| 15 | +## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' |
| 16 | +url:https://coderhaotf.github.io |
| 17 | +root:/ |
| 18 | +permalink::year/:month/:day/:title/ |
| 19 | +permalink_defaults: |
| 20 | +pretty_urls: |
| 21 | +trailing_index:true# Set to false to remove trailing 'index.html' from permalinks |
| 22 | +trailing_html:true# Set to false to remove trailing '.html' from permalinks |
| 23 | + |
| 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 | + |
| 34 | +# Writing |
| 35 | +new_post_name::title.md# File name of new posts |
| 36 | +default_layout:post |
| 37 | +titlecase:false# Transform title into titlecase |
| 38 | +external_link: |
| 39 | +enable:true# Open external links in new tab |
| 40 | +field:site# Apply to the whole site |
| 41 | +exclude:'' |
| 42 | +filename_case:0 |
| 43 | +render_drafts:false |
| 44 | +post_asset_folder:false |
| 45 | +relative_link:false |
| 46 | +future:true |
| 47 | +highlight: |
| 48 | +enable:false |
| 49 | +line_number:true |
| 50 | +auto_detect:false |
| 51 | +tab_replace:'' |
| 52 | +wrap:true |
| 53 | +hljs:false |
| 54 | + |
| 55 | +# Home page setting |
| 56 | +# path: Root path for your blogs index page. (default = '') |
| 57 | +# per_page: Posts displayed per page. (0 = disable pagination) |
| 58 | +# order_by: Posts order. (Order by date descending by default) |
| 59 | +index_generator: |
| 60 | +path:'' |
| 61 | +per_page:10 |
| 62 | +order_by:-date |
| 63 | + |
| 64 | +# Category & Tag |
| 65 | +default_category:uncategorized |
| 66 | +category_map: |
| 67 | +tag_map: |
| 68 | + |
| 69 | +# Metadata elements |
| 70 | +## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta |
| 71 | +meta_generator:true |
| 72 | + |
| 73 | +# Date / Time format |
| 74 | +## Hexo uses Moment.js to parse and display date |
| 75 | +## You can customize the date format as defined in |
| 76 | +## http://momentjs.com/docs/#/displaying/format/ |
| 77 | +date_format:YYYY-MM-DD |
| 78 | +time_format:HH:mm:ss |
| 79 | +## Use post's date for updated date unless set in front-matter |
| 80 | +use_date_for_updated:false |
| 81 | + |
| 82 | +# Pagination |
| 83 | +## Set per_page to 0 to disable pagination |
| 84 | +per_page:10 |
| 85 | +pagination_dir:page |
| 86 | + |
| 87 | +# Include / Exclude file(s) |
| 88 | +## include:/exclude: options only apply to the 'source/' folder |
| 89 | +include: |
| 90 | +exclude: |
| 91 | +ignore: |
| 92 | + |
| 93 | +# Extensions |
| 94 | +## Plugins: https://hexo.io/plugins/ |
| 95 | +## Themes: https://hexo.io/themes/ |
| 96 | +theme:obsidian |
| 97 | +#RSS订阅 |
| 98 | +plugin: |
| 99 | +-hexo-generator-feed |
| 100 | +#Feed Atom |
| 101 | +feed: |
| 102 | +type:atom |
| 103 | +path:atom.xml |
| 104 | +limit:20 |
| 105 | + |
| 106 | +# Deployment |
| 107 | +## Docs: https://hexo.io/docs/deployment.html |
| 108 | +deploy: |
| 109 | +type:'git' |
| 110 | +repo:'https://github.com/coderhaotf/coderhaotf.github.io.git' |
| 111 | +branch:'master' |