Comments (5)
这里的.Lastmod是文件中手动设置的吧?如果可以自动取文件属性的修改时间就太棒了。
from hugo-theme-next.
这里的.Lastmod是文件中手动设置的吧?如果可以自动取文件属性的修改时间就太棒了。
是的,这是 md 文件开头元数据信息,自己手动写的。每次更新完随手改个时间也还行 :)
from hugo-theme-next.
这里的.Lastmod是文件中手动设置的吧?如果可以自动取文件属性的修改时间就太棒了。
这里还是直接读取文件属性会更好一些,扫描文件的属性,后期文章量上来会增加生成网站的时长,影响到性能。
from hugo-theme-next.
@gldsly 可以将你的修改提交个PR上来
from hugo-theme-next.
这里的.Lastmod是文件中手动设置的吧?如果可以自动取文件属性的修改时间就太棒了。
这里还是直接读取文件属性会更好一些,扫描文件的属性,后期文章量上来会增加生成网站的时长,影响到性能。
读取文件属性, 好像是有问题的
- 第一次通过git log获取的时间, 进行更新是ok的
- 从第二次开始, 每次更新都会被更新为上一次git的时间, 而且接下来的每一次这些文件的最后更新时间都会被更新
from hugo-theme-next.
Related Issues (20)
- 关于algolia索引大小限制
- 没有分类(categories) icon
- 长代码块折叠和逆折叠 HOT 2
- 文章摘要&时间过期提醒功能
- 希望支持echart图表 HOT 1
- 使用 Hugo NexT.Gemini主题生产的静态网页不支持在二级目录访问
- 能不能有出个单独的导航页面 HOT 4
- giscus 在深色模式配置下没有默认为深色模式 HOT 3
- 求助:使用 next 主题后,github actions 运行报错,不知道怎么解决
- 本地搜索启用了,但是没效果 HOT 1
- 图标错误
- 图标错误
- 页面元素局部更新 HOT 8
- 希望可以更改字体,以及黑暗和白天模式切换 HOT 1
- 行内数学公式无法正常显示 HOT 4
- 选中文本时,前景色和背景色能够明显区分 HOT 1
- 希望能添加音乐、视频播放器,通过引入aplayer、dplayer实现 HOT 2
- ```mermaid 的支持 HOT 3
- 希望增加 Muse 和 Mist 主题的文章目录 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 hugo-theme-next.