Using old blog slug format

This commit is contained in:
Felipe M 2016-12-19 11:00:47 +01:00
parent 1204a70cb5
commit 40fce65931

View file

@ -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