Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
www
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
www
Commits
a0ad636f
Commit
a0ad636f
authored
Oct 07, 2026
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cms: optional per-language slug on the FR/EN post collections
parent
cc45d518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
config.yml
public/admin/config.yml
+2
-0
No files found.
public/admin/config.yml
View file @
a0ad636f
...
...
@@ -67,6 +67,7 @@ collections:
fields
:
-
{
label
:
Title
,
name
:
title
,
widget
:
string
}
-
{
label
:
Description
,
name
:
description
,
widget
:
string
,
required
:
false
}
-
{
label
:
Per-language slug
,
name
:
slug
,
widget
:
string
,
required
:
false
,
pattern
:
[
'
^[a-z0-9]+(-[a-z0-9]+)*$'
,
'
Kebab-case:
lowercase
letters,
digits,
hyphens'
],
hint
:
'
per-language
slug;
makes
/<slug>
+
/<slug-en>
work
directly'
}
-
{
label
:
Body
,
name
:
body
,
widget
:
markdown
}
# `{{slug}}` on creation comes from the entry slug editor — type the post's
# folder name there; opening an existing file always resolves it correctly.
...
...
@@ -83,4 +84,5 @@ collections:
fields
:
-
{
label
:
Title
,
name
:
title
,
widget
:
string
}
-
{
label
:
Description
,
name
:
description
,
widget
:
string
,
required
:
false
}
-
{
label
:
Per-language slug
,
name
:
slug
,
widget
:
string
,
required
:
false
,
pattern
:
[
'
^[a-z0-9]+(-[a-z0-9]+)*$'
,
'
Kebab-case:
lowercase
letters,
digits,
hyphens'
],
hint
:
'
per-language
slug;
makes
/<slug>
+
/<slug-en>
work
directly'
}
-
{
label
:
Body
,
name
:
body
,
widget
:
markdown
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment