目录结构 # 工程目录 1 2 3 4 5 6 7 8 9 10 ├── .deploy ├── node_modules ├── public ├── scaffolds ├── source | ├── _drafts | └── _posts ├── themes ├── _config.yml └── package.json
其中scaffolds
,source
,themes
,_config.yml
常用。
# 主题目录 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ├── languages | ├── default.yml | └── zh-CN.yml ├── layout | ├── _partial | └── _widget ├── script ├── source | ├── css | | ├── _base | | ├── _partial | | ├── fonts | | ├── images | | └── style.styl | ├── fancybox | └── js ├── _config.yml └── README.md
配置文件 # 工程配置文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 title: DUA'S BLOG subtitle: welcome description: bug everywhere author: dua language: zh-Hans timezone: Asia/Shanghai url: http://www.cloudghost.cn/ root: / permalink: post/:title.html permalink_defaults: source_dir: source public_dir: public tag_dir: tags archive_dir: archives category_dir: categories code_dir: downloads/code i18n_dir: :lang skip_render: new_post_name: :title.md default_layout: post titlecase: false external_link: true filename_case: 0 render_drafts: false post_asset_folder: false relative_link: false future: true highlight: enable: true line_number: false auto_detect: false tab_replace: index_generator: path: '' per_page: 10 order_by: -date default_category: uncategorized category_map: tag_map: date_format: YYYY-MM-DD time_format: HH:mm:ss per_page: 20 pagination_dir: page theme: next deploy: type: git repository: git@github.com:Duadua/Duadua.github.io.git branch: master disqus_shortname: plugins: - hexo-generator-feed - hexo-generator-sitemap
# 主题配置文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 menu: home: / archives: /archives about: /about favicon: /favicon.ico keywords: rss: icon_font: default highlight_theme: normal mathjax: true scheme: Mist sidebar: always scroll_to_more: true toc_list_number: true auto_excerpt: enable : false length: 150 use_font_lato: true duoshuo_info: ua_enable: true admin_enable: false user_id: 0 use_motion: true fancybox: true vendors: vendors css: css js: js images: images version: 0.4.5.1
后记 至此,我们已经对整个hexo的结构有了一个初始的宏观的了解。
\(o )/