usebedrock / bedrock

Bedrock is a static site generator to create large-scale HTML prototypes and document design systems
https://bedrockapp.org
Other
206 stars 28 forks source link

Page states don't work when template file is called index.pug #178

Open simonwuyts opened 7 years ago

simonwuyts commented 7 years ago

I tried generating two page states from the following files:

The index item in the navigation shows a count bubble, but the states list is nowhere to be found. The project has Bedrock 1.2.1 installed.

screenshot-2017-9-5 statements of work - bedrock demo

When I rename the files to overview.pug and overview--empty.pug everything works fine.

Wolfr commented 7 years ago

I recreated the situation in Bedrock core.

xavez commented 6 years ago

Some extra info: if you remove the root index.pug file in /templates/, page states do work for pages that are called index.pug and index--state.pug.

Wolfr commented 6 years ago

Interesting, I used that workaround now in [client project].

I can make it part of Bedrock core for now to circumvent this bug.

Wolfr commented 6 years ago

Update: the problem if I use that approach is that when I deploy the prototype, the pages called "index" are not accessible on the web version (they are in the local version).