From 691647942d46e8df993139cb71cc45557f10d48d Mon Sep 17 00:00:00 2001 From: Linloir <3145078758@qq.com> Date: Thu, 10 Oct 2024 23:50:17 +0800 Subject: [PATCH] feat: update config --- _config.butterfly.yml | 13 +++++++++++++ _config.yml | 29 ++++++++++++++++------------- scaffolds/draft.md | 1 + scaffolds/page.md | 1 + scaffolds/post.md | 1 + source/_data/link.yaml | 6 ++++++ source/categories/index.md | 5 +++++ source/links/index.md | 5 +++++ source/tags/index.md | 7 +++++++ 9 files changed, 55 insertions(+), 13 deletions(-) create mode 100644 _config.butterfly.yml create mode 100644 source/_data/link.yaml create mode 100644 source/categories/index.md create mode 100644 source/links/index.md create mode 100644 source/tags/index.md diff --git a/_config.butterfly.yml b/_config.butterfly.yml new file mode 100644 index 0000000..154e5f4 --- /dev/null +++ b/_config.butterfly.yml @@ -0,0 +1,13 @@ +nav: + logo: + display_title: true + fixed: false + +menu: + 主页: / || fas fa-home + 标签: /tags/ || fas fa-tags + 分类: /categories/ || fas fa-th + 归档: /archives/ || fas fa-archive + 链接||fas fa-list: + 友链: /link/ || fas fa-link + 关于: /about/ || fas fa-heart diff --git a/_config.yml b/_config.yml index cfb3fa9..baf4d99 100644 --- a/_config.yml +++ b/_config.yml @@ -3,13 +3,13 @@ ## Source: https://github.com/hexojs/hexo/ # Site -title: Hexo -subtitle: '' -description: '' -keywords: -author: John Doe -language: en -timezone: '' +title: 時痕 +subtitle: "Linloir's Blog" +description: "A blog about me, my life, technology and everything worth sharing. 在这里,瞥见我、技术、生活与值得分享的一切。" +keywords: "Linloir, blog, technology, life, share, Linloir's Blog, 時痕, 霖落, 博客, 技术, 生活, 分享" +author: Linloir +language: zh-CN +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,30 +37,33 @@ 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: false +post_asset_folder: true relative_link: false future: true syntax_highlighter: highlight.js highlight: line_number: true auto_detect: false - tab_replace: '' + tab_replace: " " wrap: true hljs: false prismjs: preprocess: true line_number: true - tab_replace: '' + tab_replace: " " +marked: + prependRoot: true + postAsset: true # 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 @@ -101,4 +104,4 @@ theme: butterfly # Deployment ## Docs: https://hexo.io/docs/one-command-deployment deploy: - type: '' + type: "" diff --git a/scaffolds/draft.md b/scaffolds/draft.md index 498e95b..9942460 100644 --- a/scaffolds/draft.md +++ b/scaffolds/draft.md @@ -1,4 +1,5 @@ --- title: {{ title }} tags: +categories: --- diff --git a/scaffolds/page.md b/scaffolds/page.md index f01ba3c..3f1d2f8 100644 --- a/scaffolds/page.md +++ b/scaffolds/page.md @@ -1,4 +1,5 @@ --- title: {{ title }} date: {{ date }} +type: --- diff --git a/scaffolds/post.md b/scaffolds/post.md index 1f9b9a4..47e6b91 100644 --- a/scaffolds/post.md +++ b/scaffolds/post.md @@ -2,4 +2,5 @@ title: {{ title }} date: {{ date }} tags: +categories: --- diff --git a/source/_data/link.yaml b/source/_data/link.yaml new file mode 100644 index 0000000..6cf8770 --- /dev/null +++ b/source/_data/link.yaml @@ -0,0 +1,6 @@ +- class_name: 关于我 + link_list: + - name: GitHub + link: https://github.com/Linloir + - name: BiliBili + link: https://space.bilibili.com/57762388 \ No newline at end of file diff --git a/source/categories/index.md b/source/categories/index.md new file mode 100644 index 0000000..7d7dcd9 --- /dev/null +++ b/source/categories/index.md @@ -0,0 +1,5 @@ +--- +title: 分类 +date: 2024-10-10 23:30:06 +type: "categories" +--- diff --git a/source/links/index.md b/source/links/index.md new file mode 100644 index 0000000..dafa3ce --- /dev/null +++ b/source/links/index.md @@ -0,0 +1,5 @@ +--- +title: 友链 +date: 2024-10-10 23:30:51 +type: "link" +--- diff --git a/source/tags/index.md b/source/tags/index.md new file mode 100644 index 0000000..ae60644 --- /dev/null +++ b/source/tags/index.md @@ -0,0 +1,7 @@ +--- +title: 标签 +date: 2024-10-10 23:29:50 +type: "tags" +orderby: "name" +order: 1 +---