+
+ buildUrl(id, slug) {
+ return `./${id}/${slug}`;
+ },
+
+ buildTitle (id, slug) {
+ const date = new Date(Number(id));
+ const shortDate = date.toISOString().split('T')[0]
+ const title = slug.split('-').join(' ');
+ return `${shortDate} ${title}`
+ },
+
+ buildLink(id, slug) {
+ return `=> ${internals.buildUrl(id,slug)} ${internals.buildTitle(id,slug)}`;
+ }