You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/default-theme-config/README.md
+19-1
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,7 @@ Built-in Search only builds index from the title, `h2` and `h3` headers, if you
267
267
268
268
The `themeConfig.algolia` option allows you to use [Algolia DocSearch](https://community.algolia.com/docsearch/) to replace the simple built-in search. To enable it, you need to provide at least `apiKey` and `indexName`:
269
269
270
-
```js
270
+
```js
271
271
module.exports= {
272
272
themeConfig: {
273
273
algolia: {
@@ -280,6 +280,24 @@ module.exports = {
280
280
281
281
For more options, refer to [Algolia DocSearch's documentation](https://github.com/algolia/docsearch#docsearch-options).
282
282
283
+
## Last Updated
284
+
285
+
The `themeConfig.lastUpdated` option allows you to get the UNIX timestamp(ms) of each file's last `git` commit, and it will also display at the bottom of each page with a appropriate format:
286
+
287
+
```js
288
+
module.exports= {
289
+
themeConfig: {
290
+
lastUpdated:'Last Updated', // string | boolean
291
+
}
292
+
}
293
+
```
294
+
295
+
Note that it's `off` by default. If given `string`, it will be displayed as a prefix (default value: `Last Updated`).
296
+
297
+
::: warning
298
+
Since `lastUpdated` is based on `git`, so you can only use it in a `git` repository.
299
+
:::
300
+
283
301
## Prev / Next Links
284
302
285
303
Prev and next links are automatically inferred based on the sidebar order of the active page. You can also explicitly overwrite or disable them using `YAML front matter`:
0 commit comments