From 40fce659316f4c44ec68df00f9a54e05fbdb2959 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Mon, 19 Dec 2016 11:00:47 +0100 Subject: [PATCH] Using old blog slug format --- models/blog.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/blog.ini b/models/blog.ini index f0103e8..c44b28b 100644 --- a/models/blog.ini +++ b/models/blog.ini @@ -6,7 +6,8 @@ hidden = yes [children] model = blog-post 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] enabled = yes