From d7c9eea97fce70d9c6f8b053969a2dc758e121d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sun, 25 Apr 2021 10:24:00 +0800 Subject: [PATCH] =?UTF-8?q?sitemap:=E5=8A=A0=E5=85=A5Sitemap=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84=E8=AE=BE=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 30 ++++++++++++++++-------------- package.json | 1 + 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/_config.yml b/_config.yml index 19822da..e1fef5b 100644 --- a/_config.yml +++ b/_config.yml @@ -5,11 +5,11 @@ # Site title: ArchGrid subtitle: 架构知识网格 -description: '这里有作为一个架构师所需要知道的任何事情,这是一个解决方案的集散地。' +description: "这里有作为一个架构师所需要知道的任何事情,这是一个解决方案的集散地。" keywords: 架构设计, Java, Kotlin, Golang, Rust, Javascript, 前端, 后端, Spring, 修身, 养性 author: ArchKnight language: zh-Hans-CN -timezone: 'Asia/Shanghai' +timezone: "Asia/Shanghai" # URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' @@ -37,7 +37,7 @@ 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: "" filename_case: 0 render_drafts: false post_asset_folder: true @@ -47,21 +47,21 @@ highlight: enable: false line_number: true auto_detect: false - tab_replace: '' + tab_replace: "" wrap: true hljs: false prismjs: enable: true preprocess: true line_number: true - tab_replace: '' + 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: '' + path: "" per_page: 10 order_by: -date @@ -81,7 +81,7 @@ meta_generator: true date_format: YYYY-MM-DD time_format: HH:mm:ss ## updated_option supports 'mtime', 'date', 'empty' -updated_option: 'mtime' +updated_option: "mtime" # Pagination ## Set per_page to 0 to disable pagination @@ -102,7 +102,7 @@ theme: grid # Deployment ## Docs: https://hexo.io/docs/one-command-deployment deploy: - type: '' + type: "" # Plugins Configurations marked: @@ -111,7 +111,7 @@ marked: breaks: true smartLists: true smartypants: true - quotes: '“”‘’' + quotes: "“”‘’" modifyAnchors: 0 anchorAlias: false autolink: true @@ -134,12 +134,12 @@ toc: decodeEntities: false anchor: position: after - symbol: '#' + symbol: "#" style: header-anchor sub: - markup: '&' + markup: "&" sup: - markup: '&' + markup: "&" mathjax: tags: none single_dollars: true @@ -154,8 +154,8 @@ plantuml: # the server,you can change your self-hosted sever for privacy server: "http://www.plantuml.com/plantuml" # "inline": xxx - # "inlineUrlEncode": + # "inlineUrlEncode": # "localLink": # "externalLink": link: "inline" @@ -165,3 +165,5 @@ plantuml: # common options: svg/png outputFormat: "svg" +sitemap: + path: sitemap.xml diff --git a/package.json b/package.json index f01f66c..75f58d3 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", "hexo-generator-index": "^2.0.0", + "hexo-generator-seo-friendly-sitemap": "^0.2.1", "hexo-generator-tag": "^1.0.0", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-less": "^2.0.2",