Giter Site home page Giter Site logo

Comments (5)

yihui avatar yihui commented on May 29, 2024 3

看你过了这么久还没弄明白问题的症结所在,就举手帮你修了算了(#53)。

from hongtaoh.github.io.

hongtaoh avatar hongtaoh commented on May 29, 2024 1

这个确实是我的问题。我也意识到了这个问题,但是一时半会儿解决不了。目测原因是我用的 github actions。所以呢,每篇文章底下的最后编辑时间都是最近的。好在我的本地保留了准确的信息,以后如果不用 github actions 了就没有这个问题了~

from hongtaoh.github.io.

Shitao5 avatar Shitao5 commented on May 29, 2024 1

今天尝试给自己的博客也添加「最后修改于」这样的功能,也遇到了所有文章时间一样的问题,最后参照这篇文章(https://makewithhugo.com/add-a-last-edited-date/)里 The Git way 那一节的内容解决了,方法是在 config.toml 文件里添加:

[frontmatter]
  lastmod = ["lastmod", ":git", "date", "publishDate"]

贴在这里,看看是否可以有帮助😀

from hongtaoh.github.io.

hongtaoh avatar hongtaoh commented on May 29, 2024 1

@Shitao5 试了一次,无法解决问题。这个问题的根本在于我用的是 github actions。换成 netlify 或者 vercel 就可以了,但是我目前还不想换~谢谢你!

from hongtaoh.github.io.

hongtaoh avatar hongtaoh commented on May 29, 2024

@yihui 哇噻,看到益辉帮我,我开心了老半天,哈哈哈。超级感谢!一直没去管这个,但能解决心里放松不少。

from hongtaoh.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.