timvink / mkdocs-git-revision-date-localized-plugin

MkDocs plugin to add a last updated date to your site pages
https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html
MIT License
193 stars 39 forks source link

Create date not correct on Github pages #118

Closed mendax1234 closed 11 months ago

mendax1234 commented 11 months ago

Hi, I am trying to use this plugin on my mkdocs material site. When l am doing the local test, l find that everything is Ok. But after l push my changes to the GitHub, and see my website online. I find that the creation date is wrong, it will always be the date l have the last commit on the post.

This is all my mkdocs material plugin config:

plugins:
  - blog
  - search
  - git-revision-date-localized:
      enable_creation_date: true

Since in the local test environment, everything is good. So, l wonder if that problem lies in the .git folder. Since it isn't uploaded to the cloud on Github. But l think Github should have its own .git folder to store the changes of the file. l am so confused about this problem.

Thanks so much!

timvink commented 11 months ago

Did you see the note on CI build environments in the Readme?

https://github.com/timvink/mkdocs-git-revision-date-localized-plugin#note-when-using-build-environments

mendax1234 commented 11 months ago

Did you see the note on CI build environments in the Readme?

https://github.com/timvink/mkdocs-git-revision-date-localized-plugin#note-when-using-build-environments

Ohhh, sorry. I didn't see it. I will try it later. Thank you very much!

timvink commented 11 months ago

Sure, let me know if that fixes it

mendax1234 commented 11 months ago

Sure, let me know if that fixes it

Ohhhh, it is the problem of the CI. l have fixed it. Thank you very much!