-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
67 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,24 @@ | |
## Source: https://github.com/hexojs/hexo/ | ||
|
||
# Site | ||
title: Hexo | ||
subtitle: '' | ||
description: '' | ||
keywords: | ||
author: John Doe | ||
language: en | ||
timezone: '' | ||
title: 杜老师说 | ||
subtitle: '运维技术分享博客' | ||
description: 云计算运维讲师杜老师私人技术博客,主要分享一些运维技术、经验;本博客每三天更新,欢迎订阅。 | ||
keywords: 杜老师说,老师,讲师,运维,博客,技术,微软,思科,红帽,服务,软件,图文,视频,单词,求职,面试,网站,搭建,网络,教程,说课,资源,分享,单词 | ||
author: Teacher Du | ||
language: zh-CN | ||
timezone: 'Asia/Shanghai' | ||
favicon: https://cdn.dusays.com/favicon.ico | ||
avatar: https://cdn.dusays.com/avatar.png/2 | ||
|
||
# URL | ||
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' | ||
url: http://example.com | ||
permalink: :year/:month/:day/:title/ | ||
url: https://dusays.com | ||
permalink: :title/ | ||
permalink_defaults: | ||
pretty_urls: | ||
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks | ||
trailing_html: true # Set to false to remove trailing '.html' from permalinks | ||
trailing_index: false # Set to false to remove trailing 'index.html' from permalinks | ||
trailing_html: false # Set to false to remove trailing '.html' from permalinks | ||
|
||
# Directory | ||
source_dir: source | ||
|
@@ -28,7 +30,7 @@ archive_dir: archives | |
category_dir: categories | ||
code_dir: downloads/code | ||
i18n_dir: :lang | ||
skip_render: | ||
skip_render: "dist/**/*" | ||
|
||
# Writing | ||
new_post_name: :title.md # File name of new posts | ||
|
@@ -37,16 +39,16 @@ titlecase: false # Transform title into titlecase | |
external_link: | ||
enable: true # Open external links in new tab | ||
field: site # Apply to the whole site | ||
exclude: '' | ||
exclude: 'dusays.com' | ||
filename_case: 0 | ||
render_drafts: false | ||
post_asset_folder: false | ||
relative_link: false | ||
future: true | ||
future: false | ||
highlight: | ||
enable: true | ||
line_number: true | ||
auto_detect: false | ||
auto_detect: true | ||
tab_replace: '' | ||
wrap: true | ||
hljs: false | ||
|
@@ -62,7 +64,7 @@ prismjs: | |
# order_by: Posts order. (Order by date descending by default) | ||
index_generator: | ||
path: '' | ||
per_page: 10 | ||
per_page: 18 | ||
order_by: -date | ||
|
||
# Category & Tag | ||
|
@@ -85,7 +87,7 @@ updated_option: 'mtime' | |
|
||
# Pagination | ||
## Set per_page to 0 to disable pagination | ||
per_page: 10 | ||
per_page: 15 | ||
pagination_dir: page | ||
|
||
# Include / Exclude file(s) | ||
|
@@ -102,4 +104,51 @@ theme: volantis | |
# Deployment | ||
## Docs: https://hexo.io/docs/one-command-deployment | ||
deploy: | ||
type: '' | ||
# - type: git | ||
# repo: [email protected]:penndo/dulaoshishuo/my-website.git | ||
# branch: master | ||
baidusitemap: | ||
path: baidusitemap.xml | ||
algolia: | ||
appId: "M5C9U2T6MZ" | ||
apiKey: "67df7956c07d0ecf2c7db855d8770bc3" | ||
adminApiKey: "4f9a2aaf82fb61666839ec7b866be5cb" | ||
chunkSize: 5000 | ||
indexName: "dusays" | ||
fields: | ||
- path | ||
- title | ||
- content:strip | ||
markdown: | ||
preset: 'default' | ||
render: | ||
html: true | ||
xhtmlOut: false | ||
langPrefix: 'language-' | ||
breaks: true | ||
linkify: true | ||
typographer: true | ||
quotes: '“”‘’' | ||
enable_rules: | ||
disable_rules: | ||
plugins: | ||
anchors: | ||
level: 2 | ||
collisionSuffix: '' | ||
permalink: false | ||
permalinkClass: 'header-anchor' | ||
permalinkSide: 'left' | ||
permalinkSymbol: '¶' | ||
case: 0 | ||
separator: '-' | ||
images: | ||
lazyload: false | ||
prepend_root: false | ||
post_asset: false | ||
feed: | ||
type: | ||
- atom | ||
- rss2 | ||
path: | ||
- atom.xml | ||
- rss2.xml |