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('collections') collections;
|
||||||
@feature('adminXSettings') adminXSettings;
|
@feature('adminXSettings') adminXSettings;
|
||||||
@feature('pageImprovements') pageImprovements;
|
@feature('pageImprovements') pageImprovements;
|
||||||
|
@feature('flatUrls') flatUrls;
|
||||||
@feature('mailEvents') mailEvents;
|
@feature('mailEvents') mailEvents;
|
||||||
|
|
||||||
_user = null;
|
_user = null;
|
||||||
|
@ -311,6 +311,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</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-block">
|
||||||
<div class="gh-expandable-header">
|
<div class="gh-expandable-header">
|
||||||
<div>
|
<div>
|
||||||
|
@ -40,6 +40,7 @@ const ALPHA_FEATURES = [
|
|||||||
'collections',
|
'collections',
|
||||||
'adminXSettings',
|
'adminXSettings',
|
||||||
'pageImprovements',
|
'pageImprovements',
|
||||||
|
'flatUrls',
|
||||||
'mailEvents'
|
'mailEvents'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user