mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
Added feature flag for flatUrls
refs https://github.com/TryGhost/Arch/issues/24 - Enables generating Post and Page URLs in a flat `{slug}-{id}` format
This commit is contained in:
parent
289e459283
commit
4372a7e1a8
@ -74,6 +74,7 @@ export default class FeatureService extends Service {
|
||||
@feature('collections') collections;
|
||||
@feature('adminXSettings') adminXSettings;
|
||||
@feature('pageImprovements') pageImprovements;
|
||||
@feature('flatUrls') flatUrls;
|
||||
@feature('mailEvents') mailEvents;
|
||||
|
||||
_user = null;
|
||||
|
@ -311,6 +311,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
<h4 class="gh-expandable-title">Flat URLs</h4>
|
||||
<p class="gh-expandable-description">
|
||||
Enables generating flat Post and Page URLs in `{slug}-{id}` format
|
||||
</p>
|
||||
</div>
|
||||
<div class="for-switch">
|
||||
<GhFeatureFlag @flag="flatUrls" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
|
@ -40,6 +40,7 @@ const ALPHA_FEATURES = [
|
||||
'collections',
|
||||
'adminXSettings',
|
||||
'pageImprovements',
|
||||
'flatUrls',
|
||||
'mailEvents'
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user