Replies: 1 comment
-
Editing page titles doesn't necessarily change the slug, and I would prefer it to not by default; fewer redirects is better for maintenance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, moving contents around requires using
yarn content move <from-slug> <to-slug> [locale]
, and there are mainly two types of PRs need to do this:However, it's unnecessary to require contributors to run the command manually for type 2 PRs since all the command parameters, i.e.
from-slug
,<to-slug>
, andlocale
, can be easily deduced from the front matter and the file paths. Thus it's more ergonomic to incorporate this command into workflows for PRs that edit titles but don't really[1] move pages around.A side gain is that contributors can even edit titles through the GitHub UI without having to install all the toolchains.
[1] The
pr-test
workflow already can tell which files are renamed.Beta Was this translation helpful? Give feedback.
All reactions