From df74314963211ba3543320f446f4afc66fb873c7 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Tue, 30 May 2023 18:47:15 -0500 Subject: [PATCH] fixed: base path not being added --- src/metafile/file.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/metafile/file.rs b/src/metafile/file.rs index b664b09..c89c277 100644 --- a/src/metafile/file.rs +++ b/src/metafile/file.rs @@ -73,6 +73,14 @@ impl<'a> MetaFile<'a> { base.merge(self); base.patterns.insert(Scope::into_global("SOURCE"), html); + let mut base_path = self.opts.pattern.join("base").join( + self.patterns + .get(&Scope::into_global("base")) + .unwrap_or(&"default".into()), + ); + + base_path.set_extension("meta"); + base.path = base_path; let output = base.get_source().map_err(MetaError::from)?; -- 2.45.2