Skip to main content

home_article

home_article:
date_format: auto # date format in home page article block, value: auto | relative | YYYY-MM-DD | YYYY.MM.DD HH:mm:ss | DD/MM/YYYY | and etc.
category:
enable: true # show category in home page article block
limit: 3 # max number of categories shown in home page article block
tag:
enable: true # show tags in home page article block
limit: 3 # max number of tags shown in home page article block

This configuration option is used to set the display of date formats, tags and category information at the bottom of the homepage article blocks.

  • date_format The date format for homepage articles, see below for more information.

  • category Article categories.

  • tag Article tags.

  • limit The number of tags and categories to display.

Date Format

Options: auto relative YYYY-MM-DD and more Momentjs date formats

  • auto indicates that the date will be displayed in the n days ago format for articles published within 7 days of the current date, as shown in the following image:

    Screen Shot 2023-01-02 at 12.39.39 PM

    After 7 days, the date will be displayed in the YYYY/MM/DD format, as shown in the following image:

    Screen Shot 2023-01-02 at 12.40.36 PM

  • relative indicates that the date will be displayed in the n days ago format for all articles.

  • YYYY-MM-DD and other formats allow you to arrange the date and time in the way you prefer, see Momentjs date formats for more options.

    For example:

    • DD.MM.YYYY

      Screen Shot 2023-01-02 at 12.47.12 PM

    • dddd MMM YYYY

      Screen Shot 2023-01-02 at 12.46.28 PM

    • MMM DD YYYY

      Screen Shot 2023-01-02 at 12.48.23 PM

Feel free to explore and find the combination that works best for you.