Skip to content

Lionad-Morotar/blog

Repository files navigation

Blog LICENSE HEART CI Status

Lionad's Blog

My personal knowledge base,also a blog,build with Nuxt,online url: https://www.lionad.art

Homepage

Homepage

thanks cmykpixels@codepen for beautiful backgrounds

Features

Git 时间戳 (nuxt-content-git)

使用 nuxt-content-git 模块自动从 Git 历史中提取文章的创建和更新时间:

  • 创建时间 (createdAt):首次提交的时间
  • 更新时间 (updatedAt):最后修改的时间

文章底部会自动显示时间戳组件,如果更新时间与创建时间相同,则只显示创建时间。

相关文件

  • content.config.ts - 定义 createdAtupdatedAt 字段
  • app/components/content/ArticleTimestamp.vue - 时间戳显示组件
  • app/pages/[...slug].vue - 集成时间戳到文章页面

License

知识共享许可协议
本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。
如需转载部分内容,请邮件联系作者。

About

仿生狮子的个人博客,写点代码以及,胡说八道

Topics

Resources

Stars

Watchers

Forks

Contributors