File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ Set permalink pattern for pages in `_posts` directory:
155
155
156
156
``` js
157
157
module .exports = {
158
- extendsPageOptions : ({ filePath }) => {
159
- if (filePath? .startsWith (' _posts/' )) {
158
+ extendsPageOptions : ({ filePath }, app ) => {
159
+ if (filePath? .startsWith (app . dir . source ( ' _posts/' ) )) {
160
160
return {
161
161
frontmatter: {
162
162
permalinkPattern: ' /:year/:month/:day/:slug.html' ,
Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ module.exports = {
156
156
157
157
``` js
158
158
module .exports = {
159
- extendsPageOptions : ({ filePath }) => {
160
- if (filePath? .startsWith (' _posts/' )) {
159
+ extendsPageOptions : ({ filePath }, app ) => {
160
+ if (filePath? .startsWith (app . dir . source ( ' _posts/' ) )) {
161
161
return {
162
162
frontmatter: {
163
163
permalinkPattern: ' /:year/:month/:day/:slug.html' ,
You can’t perform that action at this time.
0 commit comments