Configuration
Edit this page on GitHubPlease use VS Code (or Notepad++, Vim, etc) editors to edit theme configuration file. For Windows users, it’s NOT recommanded to open configuration files with Windows default notepad, since it may bring unexpected encoding errors.
Head
The <head>
section of HTML.
favicon
|
ico
: The website’s favicon in.ico
format.small
: The website’s favicon in.png
format, with a size of 16x16 pixels.medium
: The website’s favicon in.png
format, with a size of 32x32 pixels.apple_touch_icon
: The icon that will be displayed on iOS devices, in.png
format with a size between 128px and 192px.safari_pinned_tab
: The icon that will be displayed on Safari’s pinned tabs and on the MacBook Pro’s Touch Bar.
You can generate the required favicons here. Leave the fields empty for configurations that are not needed.
opengraph
Social sharing protocol that allows certain social media platforms (such as Twitter, Facebook, Telegram, etc.) to automatically generate sharing cards when the article link is sended. It also helps web crawlers to better understand your content.
|
custom_text
You can add any information here, and it will be appended to the <head>
section. For example, verification tags for search engines console or webmaster tools.
|
NavBar
The navigation bar configuration. NavBar is displayed by default at the top of the page.
sitename
The name displayed on the left side of the navigation bar. If left empty, it will default to the title
of the site configuration file.
|
menu
The button menu on the right side of the navigation bar, usually used for internal navigation.
|
Each button has two parameters: name
and url
. The former defines the display text of the button, and the latter defines the link where the button will take the user to.
sticky
Enabling this option will make the navigation bar always stay at the top of the screen and not move when the page is scrolled. This only takes effect when the screen width is at least 1080px.
|
Cover
The cover configuration that is displayed by default at the top of all pages except for article pages.
sitename
The title displayed on the cover. If avatar
has been set, sitename
will not be displayed. If left empty, it will default to the title
of the site configuration file.
|
avatar
Site logo (different from favicon
), displayed as a circular icon with a diameter of 96px
. If an avatar
has been set, the sitename will not be displayed. If both avatar
and sitename
are set, the avatar
will be prioritized.
|
description
A signature displayed below the sitename
/avatar
.
|
Style
Used for customizing site styles.
color
The main color style that controls the color of the navigation buttons, Table of Contents (ToC), and the underline color on the archive page when selected.
|
radius
Sets the rounding radius and controls the rounding radius of the card.
|
space
The baseline spacing that prevents the panels from being too close together.
|
highlight / hljs / prismjs
Refer to “Expansion Plugin - Code Highlighting” for more details.
Meta
The Meta settings control information such as the default article title, date format, article summary, footer copyright statement, and custom footer formats.
title
The default article title, which is automatically displayed if an article has no title.
|
author
The default author, mainly used for copyright statements. The ability to display the author of an article will be considered in the future, which will be helpful for multi-author sites.
|
This setting can be overridden in the front-matter
of an article.
date
The date the article was created, usually displayed below the article summary on the home page and under the article title on the article page.
|
title
: the text to display before the dateformat
: the date format to use, as specified in the Moment.js documentation
updated
The date the article was last updated, usually displayed at the bottom of the article section.
|
title
: the text to display before the updated dateformat
: the date format to use, as specified in the Moment.js documentation
thumbnail
The thumbnail image for the article. thumbnail
can be set in the front-matter
of an article. If no thumbnail
is set, the default
will be used.
If the asset folder has been set up, set relative
to true
to ensure that the thumbnail image can be obtained correctly on the home page and other pages.
|
expire
Automatically adds a warning message to articles that have been published for a certain period of time.
|
The duration
is in days. If an article is older than this value, a warning message will be added.
auto_excerpt
The default article summary. You can (and are recommended to) use the <!--more-->
tag to specify the portion of the article to be used as the summary.
If you do not set the <!--more-->
tag and do not specify the description, then the auto_excerpt
will determine whether intercept a summary of the specified number of words (length
).
|
toc
The table of contents for the article, displayed in the sidebar of the article page. Supports headings h2 to h5 (but not h1).
|
list_number
: automatically numbers the items in the table of contents
After turning on this global switch, you can also turn off the ToC display in specific pages in the Front-matter of those pages.
It is not recommended to have multiple h1 titles on one page for SEO or for the hierarchy of the article. The article title is already an h1 title.
copyright
Displays a copyright statement at the bottom of the article.
|
custom_text
: The text to be displayed after the author statement and permanent link. Multiple lines of text are allowed and the text supports markdown format.
To disable the copyright display for a specific page, add the following content to the front-matter
.
|
Footer
Displays the website footer at the bottom of the web page.
copyright_since
Specifies the website start time for the copyright display.
For example, if set to 2018
, the footer will display © 2018 - 2020
(2020 is the last time the page was generated).
If left empty, the footer will display © 2020
(2020 is the last time the page was generated).
If you don’t want to display any content, set this to false
.
|
statistics
Displays website statistics, and currently supports two systems: LeanCloud and Busuanzi. Choose the system using the use
.
|
- use: Choose the statistics system (currently supports LeanCloud and Busuanzi).
- leancloud: Additional configuration items required for using LeanCloud.
- site_uv/site_pv: Unique viewers and page views for the entire website.
- before_text: Text to be displayed before the data, in HTML format.
- after_text: Text to be displayed after the data, in HTML format.
- divider: Separator, in HTML format.
- page_pv: Page views for a single page.
- before_text: Text to be displayed before the data, in HTML format.
- after_text: Text to be displayed after the data, in HTML format.
custom_text
Customizes the website footer, supporting markdown format.
|