Home Articles home
Sidebar
Switch
Configuration item name: home.sidebar.enable
Type | Optional values | Default value |
---|---|---|
Boolean | true, false | true |
Sidebar Position
Configuration item name: home.sidebar.position
Type | Optional values | Default value |
---|---|---|
String | left , right | left |
Sidebar Display Order
Customize whether to display the navigation bar or the announcement first.
Configuration item name: home.sidebar.first_item
Type | Optional values | Default value |
---|---|---|
String | menu , info | menu |
Announcement
Configuration item name: home.sidebar.announcement
Leave it blank to hide.
Type | Optional values | Default value |
---|---|---|
String | Any string | “ |
Sidebar Navigation
Configuration item name: home.sidebar.links
Refer to the Navigation Bar for the writing format.
Leave it blank to hide.
Example configuration:
home:
sidebar:
links:
Archives: # Display name
path: /archives # Path
icon: fa-regular fa-archive # Icon, can be empty
Tags: # Display name
path: /tags # Path
icon: fa-regular fa-tags # Icon, can be empty
Test1:
path: /test1
icon: fa-regular fa-folder #
Article Date Format
Configuration item name: home.article_date_format
Type | Optional values | Default value |
---|---|---|
String | auto , relative , YYYY-MM-DD , YYYY-MM-DD HH:mm:ss , momentjs date format | auto |
auto
: Automatic, select the date format based on the article daterelative
: Relative time, e.g.,1 hour ago
YYYY-MM-DD
: Year-month-day, e.g.,2023-03-22
YYYY-MM-DD HH:mm:ss
: Year-month-day hour:minute:second, e.g.,2023-03-22 12:00:00
MMM D, YYYY
: Month day, year, e.g.,Mar 22, 2023
- For more formats, please refer to Moment.js
Custom Length for Article Excerpts
Configuration Item: home.excerpt_length
Type | Options | Default |
---|---|---|
Number | 100, 200, 300, … | 200 |
Categories
Switch
Configuration item name: home.categories.enable
Type | Optional values | Default value |
---|---|---|
Boolean | true, false | true |
Display Quantity
Configuration item name: home.categories.limit
Type | Optional values | Default value |
---|---|---|
Number | 1, 2, 3, … | 3 |
Tags
Switch
Configuration item name: home.tags.enable
Type | Optional values | Default value |
---|---|---|
Boolean | true, false | true |
Display Quantity
Configuration Item: home.tags.limit
Type | Possible Values | Default Value |
---|---|---|
Number | 1, 2, 3, … | 3 |
Last updated on