laur_a
September 11, 2019, 7:02pm
1
I’m having difficulty getting a page to build within a particular layout type, though I’ve had no trouble doing this in the past.
The template is located in layouts/case-studies/study.html
the FE markdown for the page (located in content/case-studies/client.md):
---
title : client
type : case-studies
layout : study
draft : false
aliases :
- /client
---
Currently I get a 404 error at both /case-studies/client and /client
maiki
September 11, 2019, 7:23pm
2
Please follow the advice at Requesting Help and share a complete project.
laur_a
September 11, 2019, 7:25pm
3
I can’t share the project as it’s a protected entity unfortunately.
maiki
September 11, 2019, 7:28pm
4
You’ll need to create a project that reproduces the error. We are unable to. Make sense?
laur_a
September 11, 2019, 7:36pm
5
Ah, gotcha. Duplicated here
localhost:1313/case-studies/ exists
but not /case-studies/client
or /client
laur_a:
title : client
Do you have this like this in your actual frontmatter? If so, you should have no space before the colons.
1 Like
Hi,
So you have content/case-studies/index.md
, which means that /case-studies/
is actually a Leaf-type Page Bundle . This means that you cannot have nested pages below it; page-type resources (like case-studies/client.md
) are treated as Page Resources, not stand-alone child pages.
Rename it instead to content/case-studies/_index.md
.
1 Like