| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- # Hexo Configuration
- ## Docs: https://hexo.io/docs/configuration.html
- ## Source: https://github.com/hexojs/hexo/
- # Site,网站,这一块区域主要是设置博客的主要说明,需要注意的是:每个冒号后面都是有一个空格,然后再书写自己的内容
- title: Tujidelv Code # 网站标题
- subtitle: 好记性不如烂笔头 # 网站副标题
- description: Tujidelv的技术小窝 # 网站描述,主要用于SEO,告诉搜索引擎一个关于您站点的简单描述,通常建议在其中包含您网站的关键词
- keywords:
- author: Tujide.lv # 您的名字,用于主题显示文章的作者
- language: zh-CN # 网站使用的语言,也可以用zh-Hans
- timezone:
- # URL,网址,这一块区域一般可以设置的是 url 这个参数,比如我要设置绑定域名的,这里就需要填写我的域名信息
- ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
- ## 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,则请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。
- url: https://www.lvzhiqiang.top # 网址
- root: / # 网站根目录
- permalink: :year/:month/:day/:title/ # 文章的永久链接格式
- permalink_defaults:
- # Directory,目录,这一块一般不需要修改
- source_dir: source # 资源文件夹,这个文件夹用来存放内容。
- public_dir: public # 公共文件夹,这个文件夹用于存放生成的站点文件。
- tag_dir: tags # 标签文件夹
- archive_dir: archives # 归档文件夹
- category_dir: categories # 分类文件夹
- code_dir: downloads/code # Include code 文件夹
- i18n_dir: :lang # 国际化(i18n)文件夹
- skip_render: # 跳过指定文件的渲染,您可使用 glob 表达式来匹配路径。
- - README.md
- - baidu_verify_kunmbyfMoR.html
- - google0a7896c13224b046.html
- # Writing,文章,这一块一般不需要修改
- new_post_name: :title.md # Hexo 默认以标题做为文件名称,设为 :year-:month-:day-:title.md 可让您更方便的通过日期来管理文章
- default_layout: post # 预设布局,Hexo 有三种默认布局:post、page 和 draft,分别对应不同的路径:source/_posts、source和source/_drafts
- titlecase: false # 把标题转换为 title case
- external_link: true # 在新标签中打开链接
- filename_case: 0 # 把文件名称转换为 (1) 小写或 (2) 大写
- render_drafts: false # 显示草稿,草稿默认不会显示在页面中
- post_asset_folder: true # 启动 Asset 文件夹
- relative_link: false # 把链接改为与根目录的相对位址
- future: true # 显示未来的文章
- highlight: # 代码块的设置
- enable: false
- line_number: true
- auto_detect: false
- tab_replace:
-
- # Home page setting
- # path: Root path for your blogs index page. (default = '')
- # per_page: Posts displayed per page. (0 = disable pagination)
- # order_by: Posts order. (Order by date descending by default)
- index_generator:
- path: ''
- per_page: 10
- order_by: -date
-
- # Category & Tag,分类 & 标签,这一块一般不需要修改
- default_category: uncategorized # 默认分类
- category_map:
- tag_map:
- # Date / Time format,日期 / 时间格式,这一块一般不需要修改
- ## Hexo uses Moment.js to parse and display date
- ## You can customize the date format as defined in
- ## http://momentjs.com/docs/#/displaying/format/
- date_format: YYYY-MM-DD # 日期格式
- time_format: HH:mm:ss # 时间格式
- # Pagination,分页,这一块一般不需要修改
- ## Set per_page to 0 to disable pagination
- per_page: 10 # 每页显示的文章量 (0 = 关闭分页功能)
- pagination_dir: page # 分页目录
- # Extensions,扩展
- ## Plugins: https://hexo.io/plugins/
- plugin:
- - hexo-generator-feed
- - hexo-generator-sitemap
- - hexo-generator-baidu-sitemap
- #Feed Atom
- feed:
- type: atom
- path: atom.xml
- limit: 20
- ## Themes: https://hexo.io/themes/
- theme: 3-hexo # 当前主题名称。值为false时禁用主题
- # Deployment,部署
- ## 这里是重点,这里是修改发布地址,因为我们前面已经将本地 SSH 密钥信息添加到 Github 设置里面了,所以只要我们电脑里面持有那两个密钥文件就可以无需密码地跟 Github 做同步。
- ## 需要注意的是这里的 repo 采用的是 ssh 的地址,而不是 https 的。分支我们默认采用 master 分支。
- ## Docs: https://hexo.io/docs/deployment.html
- deploy:
- type: git
- repo: git@github.com:tujidelv/tujidelv.github.io.git
- branch: master
- message: "Site updateed: {{ now('YYYY-MM-DD HH:mm:ss') }}"
|