index.md orphaned #72

Closed
opened 2021-11-28 02:17:55 +01:00 by are0h · 2 comments
are0h commented 2021-11-28 02:17:55 +01:00 (Migrated from koodu.ubiqueros.com)

I did a few edits to the Index file, messed with the Layouts drop-down, saved and rendered, and now Dashboard will not recognise or render index.md. Edits done to it will not render, and renaming index.html and rendering will not result in a new one being generated.

Instead Fipamo will think it's just another article. I checked the MD files and the only difference between them is that the "article" has these tags:

layout: page-custom
deleted: false

where the index.md file has these:

layout: index
deleted: 

Edit: As a workaround I've managed to avoid orphaning the index file by using another editor, then having Fipamo render it.

I did a few edits to the Index file, messed with the Layouts drop-down, saved and rendered, and now Dashboard will not recognise or render index.md. Edits done to it will not render, and renaming index.html and rendering will not result in a new one being generated. Instead Fipamo will think it's just another article. I checked the MD files and the only difference between them is that the "article" has these tags: ``` layout: page-custom deleted: false ``` where the index.md file has these: ``` layout: index deleted: ``` Edit: As a workaround I've managed to avoid orphaning the index file by using another editor, then having Fipamo render it.
are0h commented 2021-12-01 01:45:25 +01:00 (Migrated from koodu.ubiqueros.com)

Hm, yeah. There should be a method that's specific for rendering index pages. As you discovered, custom layouts are just intended for pages.

Hm, yeah. There should be a method that's specific for rendering index pages. As you discovered, custom layouts are just intended for pages.
are0h commented 2021-12-18 21:07:23 +01:00 (Migrated from koodu.ubiqueros.com)

Added a method that collects the correct template files based on the layout of the page. Index will look at index templates, and pages will look at page templates. This will be closed when it's confirmed in the beta branch.

Added a method that collects the correct template files based on the layout of the page. Index will look at index templates, and pages will look at page templates. This will be closed when it's confirmed in the `beta` branch.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: projects/fipamo#72
No description provided.