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

Custom From-matter doesn't work on layout pages #32

Open
enzolutions opened this issue Jan 20, 2015 · 5 comments
Open

Custom From-matter doesn't work on layout pages #32

enzolutions opened this issue Jan 20, 2015 · 5 comments

Comments

@enzolutions
Copy link

I tried the instructions provided in blog http://spress.yosymfony.com/docs/front-matter/

but using a from-matter like this


---
layout: default
image:
  feature: "assets/images/enzolutions_image_header.png"
  creditlink: "http://cr.linkedin.com/pub/werner-gomez/31/ba8/9b6"
  credit: "Yersika Ferreira"

---

The element page.image is null using twig debug.

@enzolutions
Copy link
Author

This is a feature request for next version, I confirm to @victorpuertas is not possible to set custom from-matter in layouts

@lury
Copy link
Contributor

lury commented Aug 29, 2015

this isn't working? afaik that's exactly how frontmatter variables are used in https://github.com/spress-add-ons/Clean-blog-theme and it's working fine.

@yosymfony
Copy link
Member

@enzolutions refers to custom attributes inside layouts

@lury
Copy link
Contributor

lury commented Aug 29, 2015

well, in that case i think you should rename this ticket to refer to page layouts.

@yosymfony yosymfony changed the title Custom From-matter doesn't work Custom From-matter doesn't work on layout pages Aug 29, 2015
@yosymfony
Copy link
Member

@lury done

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

No branches or pull requests

3 participants