Using old blog slug format
This commit is contained in:
parent
1204a70cb5
commit
40fce65931
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ hidden = yes
|
||||||
[children]
|
[children]
|
||||||
model = blog-post
|
model = blog-post
|
||||||
order_by = -pub_date, title
|
order_by = -pub_date, title
|
||||||
slug_format = {{ (this.pub_date|dateformat('YYYY/MM/dd/') if this.pub_date) ~ this._id }}
|
;slug_format = {{ (this.pub_date|dateformat('YYYY/MM/dd/') if this.pub_date) ~ this._id }}
|
||||||
|
slug_format = {{ (this.pub_date|dateformat('YYYY/MM/dd/') if this.pub_date) ~ "-".join(this._id.split('-')[3:]) }}
|
||||||
|
|
||||||
[pagination]
|
[pagination]
|
||||||
enabled = yes
|
enabled = yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue