1 2 3 4 5 6 7 8 9
| # Site title: 奇特 #博客标题 subtitle: '' #博客副标题 description: '一个在github上搭建的hexo博客' #博客描述 keywords: #博客关键字 author: sywdebug #作者 language: zh_CN #语言 timezone: 'Asia/Shanghai' #时区
|
1 2 3 4 5 6 7 8 9 10 11
| # URL ## 在此处设置您的网站网址。 例如,如果您使用GitHub Page, 则将url设置为“ https://username.github.io/project” url: https://sywdebug.github.io/blog #网址 root:/blog/ #根目录 permalink: :year/:month/:day/:title/ #文章的 永久链接 格式 permalink_defaults: #永久链接中各部分的默认值 pretty_urls: #改写 permalink 的值来美化 URL trailing_index: true #是否在永久链接中保留尾部的 index.html,设置为 false 时去除 trailing_html: true #是否在永久链接中保留尾部的 .html, 设置为 false 时去除 (对尾部的 index.html无效)
|
1 2 3 4 5 6 7 8 9 10
| # Directory source_dir: source #资源文件夹,这个文件夹用来存放内容。 public_dir: public #公共文件夹,这个文件夹用于存放生成的站点文件。 tag_dir: tags #标签文件夹 archive_dir: archives #归档文件夹 category_dir: categories #分类文件夹 code_dir: downloads/code #Include code 文件夹,source_dir 下的子目录 i18n_dir: :lang #国际化(i18n)文件夹 skip_render: #跳过指定文件的渲染。匹配到的文件将会被不做改动地复制到 public 目录中。 您可使用 glob 表达式来匹配路径。
|
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
| # Writing new_post_name: :title.md #新文章的文件名称 default_layout: post #预设布局 auto_spacing:false #在中文和英文之间加入空格 titlecase: false #把标题转换为 title case external_link: #在新标签中打开链接 enable: true #在新标签中打开链接 field: site #对整个网站(site)生效或仅对文章(post)生效 exclude: '' #需要排除的域名。主域名和子域名如 www 需分别配置 filename_case: 0 #把文件名称转换为 (1) 小写或 (2) 大写 render_drafts: false #显示草稿 post_asset_folder: false #启动 [Asset 文件夹](https://hexo.io/zh-cn/docs/asset-folders) relative_link: false #把链接改为与根目录的相对位址 future: true #显示未来的文章 highlight: #代码块的设置, see [Highlight.js] (https://hexo.io/docs/syntax-highlight#Highlight-js) section for usage guide enable: true line_number: true auto_detect: false tab_replace: '' wrap: true hljs: false prismjs: #代码块的设置, see [PrismJS] (https://hexo.io/docs/syntax-highlight#PrismJS) section for usage guide enable: false preprocess: true line_number: true tab_replace: ''
|
1 2 3 4
| # Extensions ## Plugins: https://hexo.io/plugins/ ## Themes: https://hexo.io/themes/ theme: landscape #主题
|
1 2 3 4 5 6
| # Deployment ## Docs: https://hexo.io/docs/one-command-deployment deploy: type: git repo: https://github.com/sywdebug/blog.git branch: master
|
原文链接: https://ptshu.us.kg/2023/11/09/博客配置文件解读/
版权声明: 转载请注明出处。