-
Notifications
You must be signed in to change notification settings - Fork 177
How to Rename Categories
Let's say we want to rename the category "Rules to Better ChatGPT Prompt Engineering" to "Rules to Better ChatGPT Prompting". This is how you would do so:
-
Open the category in GitHub and click the 'Edit' button Figure: Open the Editor in GitHub
-
Change the
title:
field in the frontmatter -
Change the
uri:
field in the frontmatter -
Add the old URI to the
redirects:
list
For example, change from:
---
type: category
title: Rules to Better ChatGPT Prompt Engineering
guid: 91b60efc-2b8e-4ff1-a373-ac4cab576483
uri: rules-to-better-chatgpt-prompt-engineering
index:
---
To:
---
type: category
title: Rules to Better ChatGPT Prompting
guid: 91b60efc-2b8e-4ff1-a373-ac4cab576483
uri: rules-to-better-chatgpt-prompting
redirects:
- rules-to-better-chatgpt-prompt-engineering
index:
---
-
Click and change the file name at the top of the editor Figure: Pressing 'backspace' will move the editor field to the folder
For example, change from path:
categories/artificial-intelligence/rules-to-better-chatgpt-prompt-engineering.md
To:
categories/artificial-intelligence/rules-to-better-chatgpt-prompting.md
-
Once done, commit your changes as a normal PR Figure: Pressing 'Commit changes...' to save the changes
To find the top category (E.g. Artificial Intelligence) the rule is in, then follow these steps:
- Navigate to the
index.md
file within the categories folder - Click the edit pencil
- Find the old URI in the
index
and change it to the new one