Skip to content

Commit

Permalink
build!: optimize configuration items of keep theme
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Nov 1, 2023
1 parent b7f320a commit 27bb7d9
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 27bb7d9

Please sign in to comment.