From: Nick Downing Date: Tue, 11 Jan 2022 00:53:35 +0000 (+1100) Subject: Fix directory bug in rotating /database.logjson X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?p=ndcode_site.git;a=commitdiff_plain;h=e9e39940da6e749a699fa8c624a8856b71e37dec Fix directory bug in rotating /database.logjson --- diff --git a/_config/site.jst b/_config/site.jst index 8944a3f..27a7a5f 100644 --- a/_config/site.jst +++ b/_config/site.jst @@ -74,7 +74,9 @@ return async (resources, root, prev_site) => { '->', new_database_date ) - await this.database.rotate('database.logjson.' + this.database_date) + await this.database.rotate( + `${this.root}/database.logjson.${this.database_date}` + ) this.database_date = new_database_date }