From 957d4eefb5f525bae041bc4ee35a862b8cd25312 Mon Sep 17 00:00:00 2001 From: penndu Date: Thu, 9 Nov 2023 20:07:59 +0800 Subject: [PATCH] a --- _config.yml | 85 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 67 insertions(+), 18 deletions(-) diff --git a/_config.yml b/_config.yml index ef96e7f6..66fcc608 100644 --- a/_config.yml +++ b/_config.yml @@ -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: git@e.coding.net: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 \ No newline at end of file