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

Wagon layout names convert underscores to dashes by default #363

Closed
westonganger opened this issue May 10, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@westonganger
Copy link
Contributor

commented May 10, 2019

I created a layout bootstrap_company.liquid.haml and tried to use it:

{% extends 'layouts/bootstrap_company' %}

but my project kept complaining that it couldnt find the layout. After a while of debugging I decided to try dashes instead of underscores in the extends and it worked. Ex.

{% extends 'layouts/bootstrap-company' %}

To solve this I had to manually define the layouts slug attribute:

---
title: Boostrap Company
slug: bootstrap_company
is_layout: true
---

I was not expecting this behaviour at all. I would appreciate if it didnt convert my underscores to dashes.

Also I did not find any documentation relating to this. Would appreciate mentioning the layouts slug in the documentation.

@did

This comment has been minimized.

Copy link
Member

commented May 13, 2019

Thanks! Let me add this in the documentation!

@did

This comment has been minimized.

Copy link
Member

commented May 21, 2019

See the orange callout here

@did did closed this May 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.