Skip to content

The formatUpdated config doesn't display any thing #1573

Closed
@immortalt

Description

@immortalt

Bug Report

You can see in this page's code:
https://github.com/immortal-blog/immortal-blog.github.io/blob/main/docs/index.html
and you can see that all pages don't have update time:
https://immortal-blog.github.io/#/golang/migrate-mgo-to-qmgo
I added the config as the doc mentioned,

window.$docsify = {
                formatUpdated: '{YYYY}-{MM}-{DD}',

but I still can't see any change in my blog. There is no time.
(I'm sure that I cleaned the cache before refreshing the page)

Steps to reproduce

  1. Create a Github Page using docsify like https://immortal-blog.github.io/#/, or you can just fork this git.
  2. Add the config option: formatUpdated: '{YYYY}-{MM}-{DD}'.
  3. Clean the browser cache and refresh the Github Page.

What is current behaviour

Nothing changed.
There is no update time on the page.

What is the expected behaviour

There is an update time on the page.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Ubuntu 20.04 LTS

  • Node.js version: v14.16.1

  • npm/yarn version: 7.12.0

  • Browser version: Firefox 88.0.1 x64

  • Docsify version: 4.4.3

  • Docsify plugins: disabled all

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions