Comments (4)
文章的更新时间需要你手动维护,需要你看一下你的主题是否支持【修改时间】的front-matter,在文章中新增【修改时间】的字段。这样你的文章就会展示修改时间了。如果不支持的话可以考虑对主题进行适当的修改已支持。
比如我的主题就有这字段:
第五章 Diff算法
from yuque-hexo.
文章的更新时间需要你手动维护,需要你看一下你的主题是否支持【修改时间】的front-matter,在文章中新增【修改时间】的字段。这样你的文章就会展示修改时间了。如果不支持的话可以考虑对主题进行适当的修改已支持。
比如我的主题就有这字段: 第五章 Diff算法
感谢解答。你说的是手动的方式吗?我的主题是支持的,但是我看到语雀api拿到的数据是有最后更新时间的字段的,对于语雀编辑而言,这个字段是最契合hexo上文章的更新时间的,是否可以同步一下?不然在语雀的文章头部手动加上front-matter的更新时间,感觉很不智能~
from yuque-hexo.
是个好想法,看了下大部分主题的front-matter字段都是一样的,但是需要考虑是否自定义映射字段,来将其准确对应上去。
目前有一个思路是新增两个字段用于【发布时间】和【更新时间】的映射,然在拿到文章的【发布时间】和【更新时间】后,将这两个字段追加到文章的头部front-matter中。
需要考虑的点:
- 如果要增加front-matter的字段映射,需要考虑拓展性。最好是新增一个映射配置字段。看能不能通过语雀返回的api信息,自动生成更多的front-matter字段
- 追加front-matter时,需要对原本文章的html分析和插入,不过我看已经是有相关逻辑的代码存在了,可以在这个基础上拓展一下
我最近会抽点时间分析一下,当然,如果您有兴趣,欢迎进行PR
from yuque-hexo.
是个好想法,看了下大部分主题的front-matter字段都是一样的,但是需要考虑是否自定义映射字段,来将其准确对应上去。
目前有一个思路是新增两个字段用于【发布时间】和【更新时间】的映射,然在拿到文章的【发布时间】和【更新时间】后,将这两个字段追加到文章的头部front-matter中。
需要考虑的点:
- 如果要增加front-matter的字段映射,需要考虑拓展性。最好是新增一个映射配置字段。看能不能通过语雀返回的api信息,自动生成更多的front-matter字段
- 追加front-matter时,需要对原本文章的html分析和插入,不过我看已经是有相关逻辑的代码存在了,可以在这个基础上拓展一下
我最近会抽点时间分析一下,当然,如果您有兴趣,欢迎进行PR
我有兴趣但不怎么会coding,产品🐶。加油,等你~
from yuque-hexo.
Related Issues (20)
- 上传七牛云图床部分图片上次失败,无法准确定位到具体问题 HOT 1
- 用七牛云上传图片,但是图片损坏了,不知道那里出问题了 HOT 7
- 可以自动上传到又拍云 图床么 HOT 2
- 语雀图片转换失败 HOT 3
- 教程描述有待提升 HOT 5
- 请求添加自动分组功能 HOT 2
- github actions的lastGeneratePath.log问题 HOT 6
- 最近发现自动上传到图床的图片大小都不正确,无法正常显示怎么排查? HOT 4
- 发现隔一段时间(一到两周)就部署失败,重置了yuque_token后正常 HOT 3
- 关于 adpater (hexo) is invalid. 的问题 HOT 11
- 自定义 front-matter 异常
- 语雀分享要会员了,可以出一个飞书的吗
- 是否可以保留hexo写博客的能力? HOT 2
- 图片替换失败
- yuque-hexo相关逻辑 HOT 1
- [WARNING] 检查图片信息时出错
- 现在没有会员咋设置token HOT 2
- 增加下载文件到 source/images 目录的支持 HOT 4
- use slug as permant_link title 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 yuque-hexo.