Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nested layouts via YAML front-matter in .HAML files #2

Open
infews opened this issue Jun 28, 2023 · 0 comments
Open

Support for nested layouts via YAML front-matter in .HAML files #2

infews opened this issue Jun 28, 2023 · 0 comments

Comments

@infews
Copy link

infews commented Jun 28, 2023

Given:

src/layouts/
- default.haml
- page.haml

and page.haml:

-#
  ---
   layout: default
  ---

A markdown file that references a the page layout:

---
title: a post
layout: page
---

page.haml is loaded as a layout, but default.haml is not. This does work for Liquid templates.

I'm happy to take a look at how to implement this if you have some tips. I don't know enough (yet) about how Bridgetown works to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant