Add guardrail against duplicate slugs
This commit is contained in:
parent
3f59c75523
commit
b067f79e1c
2 changed files with 8 additions and 1 deletions
|
@ -63,7 +63,8 @@ method all-slugs(--> Array[Str:D]) {
|
|||
my Str:D @slugs = @!slugs.clone;
|
||||
@slugs.push($long-title-slug);
|
||||
@slugs.push($six-word-slug);
|
||||
@slugs;
|
||||
@slugs.=unique;
|
||||
@slugs
|
||||
}
|
||||
|
||||
#| Render this post to an html body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue