Vuepress: lastUpdated选项

Created on 11 May 2018  ·  10Comments  ·  Source: vuejs/vuepress


这个参数是只要设置为true或者一个字符串就可以了还是还需要怎么样?我怎么弄都显示不出来更新时间。求助~我的config.js

Most helpful comment

Thank you for waiting, No accident, we will release 0.9.0 tomorrow !
谢谢你的等待,不出意外,我们明天会 release 0.9.0!

All 10 comments

这个要显示出来时间,需要:

  1. 项目已经通过git init初始化为一个git repo
  2. 想要显示时间的.md至少commit过一次

其实个lastUpdate选项就是显示当前页面的md文件最后一次在commit中修改的时间。

哦对了,不能用0.8.4版本,这个新功能还没在新版本发布

您好,我是这样做的:
首先在项目根目录(package.json所在目录)执行 git init;
然后将lastUpdated参数写入config.js文件;
然后将docs中的所有.md文件git add然后git commit;
然后重新build;
但是仍然没有显示更新时间。

请问我是哪里遗漏了或操作错了吗?

在 2018年5月11日 下午3:38,Liu Xinyu notifications@github.com写道:

这个要显示出来时间,需要:

  1. 项目已经通过git init初始化为一个git repo
  2. 想要显示时间的.md至少commit过一次

其实个lastUpdate选项就是显示当前页面的md文件最后一次在commit中修改的时间


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vuepress/issues/407#issuecomment-388286470, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATBcgK7Hxld_gdAdBbRKHxpnlZ9Jx28yks5txT_kgaJpZM4T65Fu
.

你的项目根目录就是你提供的那个地址吗?那你是用global vuepress来build?

如果是的话,我猜你用的是vuepress的0.8.4版本

目前Evan大大顾不上这个项目,我们也暂时没有发布新的npm package的权限,所以很多新功能都没有更新到npm上面。想用的话可以暂时clone官方仓库,用link的方式在自己的项目中引入。

我的文件结构是这样的:
然后我是在VuePressBlog目录下执行git init的,不是global vuepress,是通过在VuePressBlog目录中执行npm
install -D vuepress安装的。

2018-05-11 17:23 GMT+08:00 Liu Xinyu notifications@github.com:

你的项目根目录就是你提供的那个地址吗?那你是用global vuepress来build?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vuepress/issues/407#issuecomment-388311079, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATBcgATBHUNckgb3ZqsMaDeUbc1nCbmwks5txVingaJpZM4T65Fu
.

你直接npm安装的0.8.4版本,没有这个功能

@RonaldZhao 你不要只用邮件回了,改了很多东西你都没看到

Thank you for waiting, No accident, we will release 0.9.0 tomorrow !
谢谢你的等待,不出意外,我们明天会 release 0.9.0!

所以明天这个功能就官方支持了?期待~~

Closing it since I have open a pre-release issue at #419

@ulivz @RonaldZhao @meteorlxy I have been update the 0.9.0, but it still doesn't work. it's my config.js and my page

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cfjedimaster picture cfjedimaster  ·  3Comments

genedronek picture genedronek  ·  3Comments

higuoxing picture higuoxing  ·  3Comments

FadySamirSadek picture FadySamirSadek  ·  3Comments

ynnelson picture ynnelson  ·  3Comments