Comments (5)
看你过了这么久还没弄明白问题的症结所在,就举手帮你修了算了(#53)。
from hongtaoh.github.io.
这个确实是我的问题。我也意识到了这个问题,但是一时半会儿解决不了。目测原因是我用的 github actions。所以呢,每篇文章底下的最后编辑时间都是最近的。好在我的本地保留了准确的信息,以后如果不用 github actions 了就没有这个问题了~
from hongtaoh.github.io.
今天尝试给自己的博客也添加「最后修改于」这样的功能,也遇到了所有文章时间一样的问题,最后参照这篇文章(https://makewithhugo.com/add-a-last-edited-date/)里 The Git way 那一节的内容解决了,方法是在 config.toml
文件里添加:
[frontmatter]
lastmod = ["lastmod", ":git", "date", "publishDate"]
贴在这里,看看是否可以有帮助😀
from hongtaoh.github.io.
@Shitao5 试了一次,无法解决问题。这个问题的根本在于我用的是 github actions。换成 netlify 或者 vercel 就可以了,但是我目前还不想换~谢谢你!
from hongtaoh.github.io.
@yihui 哇噻,看到益辉帮我,我开心了老半天,哈哈哈。超级感谢!一直没去管这个,但能解决心里放松不少。
from hongtaoh.github.io.
Related Issues (20)
- cn/2023/05/22/grandma/ HOT 7
- cn/2023/05/30/destiny/ HOT 3
- cn/2023/06/06/conviction/ HOT 4
- cn/2023/06/26/j/ HOT 22
- cn/2023/06/15/scifi/ HOT 21
- cn/2021/06/17/homepage/ HOT 1
- en/2022/08/20/zscore/ HOT 2
- cn/2023/08/11/stigma/ HOT 6
- cn/2023/08/24/live-in-others-eyes/ HOT 10
- en/2020/12/16/l3/ HOT 3
- cn/2023/09/12/internship/ HOT 2
- cn/2023/10/03/zsh/ HOT 5
- cn/2020/10/25/iq/ HOT 1
- cn/2023/10/22/blind/ HOT 10
- cn/2023/10/28/no-friends/ HOT 6
- cn/2021/05/18/social-comparison/ HOT 1
- tags/%E7%95%99%E5%AD%A6/ HOT 1
- cn/2020/01/18/underbrag-cn-and-usa/ HOT 2
- cn/2021/07/27/no-songs/ HOT 1
- cn/2020/01/06/fltrp-reading-contest/ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hongtaoh.github.io.