Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Conversation

@bmpj1
Copy link
Contributor

@bmpj1 bmpj1 commented Jun 18, 2021

The people page name must be singular.

The people page name must be singular.
Copy link
Contributor

@abea abea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be a good practice to set the name property on the pieces pages module to the singular form of the directory name. That said it's not specified that way here.

If you'd like, you could add a step showing very basic config for lib/modules/people-pages/index.js including that name property. You would then also change the reference on L26.

@ecb34
Copy link

ecb34 commented Jun 21, 2021

By default the '-pages' is changed to '-page', so the example is not intuitive for the users. (they maybe dont know they can change the name of the piece-pages)

image

@abea abea self-requested a review June 25, 2021 19:42
Copy link
Contributor

@abea abea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I got confused myself because of the permissiveness of A2's page templates. Thank goodness we went all singular in A3.

name: 'home',
label: 'Home'
},
// Our new page type for displaying people
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment here on a new line: "Note that the -pages suffix is converted to the singular -page for the document type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants