Moving new twitter page into /tweets/

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-05 19:42:57 -08:00
parent deed26c2d9
commit 01acc1439a
6 changed files with 80 additions and 59 deletions

View File

@@ -16,12 +16,12 @@ module.exports = exports = class Post extends Page {
const match = this.name.match(postmatch);
if (match) {
return [ 'p', match[2] ];
return [ 'tweets', match[2] ];
}
dir = dir.replace(postmatch, '$2').split('/');
dir = without(dir, 'posts', '_images');
dir.unshift('p');
dir.unshift('tweets');
return dir;
}