-
Notifications
You must be signed in to change notification settings - Fork 18
Add or remove a subpage
Brian Hurst edited this page May 2, 2019
·
8 revisions
To add a subpage to an existing section, create a new file within the section's folder.
For example, if a new page needs to be added to the "Additional resources" section, start by navigating to /_pages/additional-resources/
in GitHub and once in the proper folder, follow these steps:
- Click the
Create new file
button in the top right corner - Name the new file, ensuring that there are no space or special characters in the filename and that it ends with the
/.md
file extension. The filename chosen here will also be what is reflecting the the url (pra.digital.gov/additional-resources/new-page/) - Add the following front matter to the top of the page:
This title will be used for the main page heading, as well as the link in the section's side navigation.
--- title: My new page ---
- Continue adding content to the page beneath the front matter. Once completed, commit the file on a new branch in order to start the pull request process.
- To remove a subpage from an existing section, start by navigating to the proper folder in GitHub
- Once on the page to be removed, click the trash can icon in the top right corner of the screen
- Once completed, commit the file on a new branch in order to start the pull request process.