Menu icon Foundation
How to work with different layouts in Panini?

Hello, I have Problems with setting up different layouts in panini. Don't know what is wrong and why it is not working.

 

I created a new layout in layouts:

layouts/special.html

 

I used the Front Matter code on my page

---
layout: special.html
---

 

but:

"Panini: rendering error ocurred.

 [Error: Panini error: no layout named "special.html" exists.]"

foundation 6paniniLayouts

Hello, I have Problems with setting up different layouts in panini. Don't know what is wrong and why it is not working.

 

I created a new layout in layouts:

layouts/special.html

 

I used the Front Matter code on my page

---
layout: special.html
---

 

but:

"Panini: rendering error ocurred.

 [Error: Panini error: no layout named "special.html" exists.]"

James Stone about 1 year ago

Assuming you have a special.html file that is properly formatted in ~/src/layouts then you need to use the following format:

 

 

---

layout: special

---

 

So omit the .html form the layout name. Make sure your YML Frontmatter is at the top of your html file in ~/src/pages