fix: add checking for missing extensions (#1432)
This commit is contained in:
parent
9d1d3dac74
commit
f7c019743a
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ impl LayoutFromYamlIntermediate {
|
|||
match layout_dir {
|
||||
Some(dir) => {
|
||||
let layout_path = &dir.join(layout);
|
||||
if layout_path.exists() {
|
||||
if layout_path.with_extension("yaml").exists() {
|
||||
Self::from_path(layout_path)
|
||||
} else {
|
||||
LayoutFromYamlIntermediate::from_default_assets(layout)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue