Skip to Content
HomeHome Articles

Home Articles home

image-20230402185019862

Switch

Configuration item name: home.sidebar.enable

TypeOptional valuesDefault value
Booleantrue, falsetrue

Configuration item name: home.sidebar.position

TypeOptional valuesDefault value
Stringleft, rightleft

Customize whether to display the navigation bar or the announcement first.

Configuration item name: home.sidebar.first_item

TypeOptional valuesDefault value
Stringmenu, infomenu

Announcement

image-20230402185131227

Configuration item name: home.sidebar.announcement

Leave it blank to hide.

TypeOptional valuesDefault value
StringAny string
image-20230402185255246

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

image-20230322184235442

Configuration item name: home.article_date_format

TypeOptional valuesDefault value
Stringauto, relative, YYYY-MM-DD, YYYY-MM-DD HH:mm:ss, momentjs date formatauto
  • auto: Automatic, select the date format based on the article date
  • relative: 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

TypeOptionsDefault
Number100, 200, 300, …200

Categories

image-20230322184434686

Switch

Configuration item name: home.categories.enable

TypeOptional valuesDefault value
Booleantrue, falsetrue

Display Quantity

Configuration item name: home.categories.limit

TypeOptional valuesDefault value
Number1, 2, 3, …3

Tags

image-20230322184320720

Switch

Configuration item name: home.tags.enable

TypeOptional valuesDefault value
Booleantrue, falsetrue

Display Quantity

Configuration Item: home.tags.limit

TypePossible ValuesDefault Value
Number1, 2, 3, …3
Last updated on