Skip to content

How to Rename Categories

Brook Jeynes [SSW] edited this page Jul 10, 2023 · 14 revisions

Renaming SSW Categories and their URLs

Step 1: Update the title text

  1. Change the title: field in the frontmatter

Step 2: Update the URI

When you change a categories URI, there are 4 important steps:

  1. Change the uri: field in the frontmatter
  2. Add the old URI to the redirects list in the category
  3. Rename the categories file to be the same as the new URI
  4. Find the URI in the categories top category filed and update it

For example, this category was changed from

Path: categories/artificial-intelligence/rules-to-better-chatgpt-prompt-engineering.md

---
type: category
title: Rules to Better ChatGPT Prompt Engineering
guid: 91b60efc-2b8e-4ff1-a373-ac4cab576483
uri: rules-to-better-chatgpt-prompt-engineering
index:
---

To:

Path: categories/artificial-intelligence/rules-to-better-chatgpt-prompting.md

---
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:
---

Step 3: Rename the file in GitHub

  1. Open the category in GitHub
  2. Click the 'Edit' button

Edit button in GitHub Figure: Open the Editor in GitHub

  1. Click the file name at the top of the editor
  2. Change the file name

Folder name editor Figure: Pressing 'backspace' will move the editor field to the folder

  1. Save your changes at the bottom of the page as you would with any other change

Step 4: Find and update the top categories file

To find all the categories that this rule is in, follow these steps:

  1. Navigate to the index.md file within the categories folder
  2. Click the edit pencil
  3. Find the old URI in the index and change it to the new one

Clone this wiki locally