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
{{ message }}
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
* set front matter under page instead of page.attributes
* replace the term "page attributes" with "page data"
* Revert "replace the term "page attributes" with "page data""
This reverts commit 022e71c.
* Revert "Revert "replace the term "page attributes" with "page data"""
This reverts commit 386c74c.
* fix BC break for page.attributes
* Update docs
* Update docs
* Update docs
Copy file name to clipboardExpand all lines: packages/saber-plugin-git-modification-time/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# saber-plugin-git-modification-time
2
2
3
-
> Use the author time of the last commit as page.attributes.updatedAt
3
+
> Use the author time of the last commit as `page.updatedAt`
4
4
5
5
Why? See [#9785](https://github.com/gatsbyjs/gatsby/issues/9785).
6
6
7
-
**tl;dr**`page.attributes.updatedAt` defaults to `file.mtime` which will change on platforms like Netlify. We restore the value to author time of the last commit instead.
7
+
**tl;dr**`page.updatedAt` defaults to `file.mtime` which will change on platforms like Netlify. We restore the value to author time of the last commit instead.
This plugin will automatically generate tag pages at `/tags/:tag` when you're using `tags` in page attributes, e.g. in a Markdown post:
64
+
This plugin will automatically generate tag pages at `/tags/:tag` when you're using `tags` in page data, e.g. in a Markdown post:
66
65
67
66
```markdown
68
67
---
@@ -109,7 +108,7 @@ You can access the tag name in the layout component via `this.page.tag`.
109
108
110
109
## Categories
111
110
112
-
This plugin will automatically generate category pages at `/categories/:tag` when you're using `categories` in page attributes, e.g. in a Markdown post:
111
+
This plugin will automatically generate category pages at `/categories/:tag` when you're using `categories` in page data, e.g. in a Markdown post:
0 commit comments