From 27bb7d9acac27eefcb80720def0d31a6460f9f54 Mon Sep 17 00:00:00 2001 From: XPoet Date: Wed, 1 Nov 2023 15:49:47 +0800 Subject: [PATCH] build!: optimize configuration items of keep theme --- _config.yml | 70 ++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/_config.yml b/_config.yml index ba11c147..6127aa08 100644 --- a/_config.yml +++ b/_config.yml @@ -1,35 +1,33 @@ ## ====================================================================================== ## Hexo Theme Keep -## Preview: https://xpoet.cn ## Documents: https://keep-docs.xpoet.cn ## Repository: https://github.com/XPoet/hexo-theme-keep ## ====================================================================================== # --------------------------------------------------------------------------------------- -# Your basic info # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/base_info.html # --------------------------------------------------------------------------------------- base_info: # Theme primary color primary_color: "#0066cc" - # Your blog website title + # Blog website title title: Keep Theme - # Your blog website author name + # Blog website author name author: Keep Team - # Avatar (You can use local image path or image external link) + # Author avatar, You can use local image path or image link avatar: /images/avatar.svg - # Logo (You can use local image path, image link or don't fill) + # Website LOGO, You can use local image path or image link logo: /images/logo.svg - # Favicon (You can use local image path or image external link) + # Website favicon, You can use local image path or image link favicon: /images/logo.svg + # --------------------------------------------------------------------------------------- -# Navigation menu # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/menu.html # --------------------------------------------------------------------------------------- # If you want to enable Categories and Tags, you need to create categories and tags pages @@ -44,36 +42,37 @@ menu: # Changelog: /changelog # ...... + # --------------------------------------------------------------------------------------- -# First screen style settings +# Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/first_screen.html # --------------------------------------------------------------------------------------- first_screen: enable: false # Option values: true | false - # First screen background image (You can use local image path or image link) + # First screen background image in light mode, You can use local image path or image link background_img: /images/bg.svg - # First screen background image in dark mode (You can use local image path or image link) + # First screen background image in dark mode, You can use local image path or image link background_img_dark: /images/bg.svg # First screen description # You can use the "||" to begin a newline, maximum is two lines. description: Keep writing and Keep loving. - # If enable hitokoto, first screen description is different every time when you enter the site + # If enable hitokoto, first screen description is different every time when you enter the website hitokoto: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# Social contact link # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/social_contact.html # --------------------------------------------------------------------------------------- social_contact: enable: false # Option values: true | false links: - # Fill in your social platform links here, e.g. [ github: https://github.com/XPoet ] - # If you want to click open the picture, you need to add a prefix "img |", + # Fill in your social platform links here, e.g. `github: https://github.com/XPoet` + # If you want to click open the picture, you need to add a prefix `img | `, # at the same time change your link to the image link. - # e.g. [ weixin: img | https://x.com/images/wechat.png ] or [ weixin: img | ./images/wechat.png ] + # e.g. `weixin: img | ./images/qrcode.png` github: # GitHub weixin: # WeChat qq: # QQ @@ -83,8 +82,8 @@ social_contact: facebook: # Facebook email: # Email + # --------------------------------------------------------------------------------------- -# Home page article block display settings # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/home_article.html # --------------------------------------------------------------------------------------- home_article: @@ -93,8 +92,9 @@ home_article: # Show tags in home page article block tag: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# Page scroll style settings +# Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/scroll.html # --------------------------------------------------------------------------------------- scroll: # Show progress bar in top when page scroll @@ -103,8 +103,8 @@ scroll: # Show percent when page scroll percent: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# Post page Settings # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/post.html # --------------------------------------------------------------------------------------- post: @@ -116,11 +116,11 @@ post: # If false, show custom badge level_badge: true # Option values: true | false - # Badge array item can be fill one or more - custom_badge: ["Trainee", "Engineer", "Architect"] + # Custom badge array, You can be fill one or more item + custom_badge: ["One", "Two", "Three"] # Post word count - # Dependencies: hexo-wordcount (`npm install hexo-wordcount`) + # Depend on Hexo Plugin: hexo-wordcount (`npm install hexo-wordcount`) # See: https://github.com/willin/hexo-wordcount word_count: wordcount: false # Word count, one article. Option values: true | false @@ -141,8 +141,8 @@ post: img_link: # Image link for the payment QR code text: # Custom reward text, Can be null + # --------------------------------------------------------------------------------------- -# Code block # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/code_block.html # --------------------------------------------------------------------------------------- code_block: @@ -152,8 +152,8 @@ code_block: style: default # Option values: default | mac highlight_theme: default # Option values: default | obsidian + # --------------------------------------------------------------------------------------- -# Table of Contents in the Sidebar # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/toc.html # --------------------------------------------------------------------------------------- toc: @@ -171,8 +171,8 @@ toc: # TOC layout on article page layout: right # Option values: left | right + # --------------------------------------------------------------------------------------- -# Website count # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/website_count.html # --------------------------------------------------------------------------------------- website_count: @@ -184,18 +184,18 @@ website_count: site_pv: false # Option values: true | false page_pv: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# Local Search # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/local_search.html -# Dependencies: hexo-generator-searchdb (`npm install hexo-generator-searchdb`) +# Depend on Hexo Plugin: hexo-generator-searchdb (`npm install hexo-generator-searchdb`) # See: https://github.com/theme-next/hexo-generator-searchdb # --------------------------------------------------------------------------------------- local_search: enable: false # Option values: true | false preload: false # Preload the search data when the page loads. Option values: true | false + # --------------------------------------------------------------------------------------- -# Comment plugin # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/comment.html # --------------------------------------------------------------------------------------- comment: @@ -249,39 +249,39 @@ comment: category_id: reactions_enabled: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# RSS # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/rss.html -# Dependencies: hexo-generator-feed (`npm install hexo-generator-feed`) +# Depend on Hexo Plugin: hexo-generator-feed (`npm install hexo-generator-feed`) # See: https://github.com/hexojs/hexo-generator-feed # --------------------------------------------------------------------------------------- rss: enable: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# Lazyload image # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/lazyload.html # --------------------------------------------------------------------------------------- lazyload: enable: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# CDN # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/cdn.html # --------------------------------------------------------------------------------------- cdn: enable: false # Option values: true | false provider: jsdelivr # Option values: jsdelivr | unpkg + # --------------------------------------------------------------------------------------- -# PJAX # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/pjax.html # --------------------------------------------------------------------------------------- pjax: enable: false # Option values: true | false + # --------------------------------------------------------------------------------------- -# Footer settings # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/footer.html # --------------------------------------------------------------------------------------- footer: @@ -310,8 +310,8 @@ footer: # img_url: https://img.shields.io/badge/Hexo-Keep%20v3.7.3-blue?style=flat-square&logo=hexo # - ... + # --------------------------------------------------------------------------------------- -# Inject custom CSS and JavaScript files # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/inject.html # --------------------------------------------------------------------------------------- inject: