avillafiorita / jekyll-datapage_gen

Generate one page per yaml record in Jekyll sites.
369 stars 80 forks source link

I want to get data in _includes/hero.html from _data/member.yml #33

Closed SanjayJadon closed 6 years ago

SanjayJadon commented 6 years ago

Hello, Firstly thanks for share nice plugin...

According to your example I want to include file in your profile.html from _includes/hero.html like - {% include hero.html %}

in hero.html - How I get data from _data/member.yml I try this in my _includes/hero.html

{{ site.data.member[full_name] }}

but its not working so please help me out.

Thanks in advance !!!

avillafiorita commented 6 years ago

sorry fot taking so long to get back to you.

I think you should be using:

{{ page.member.full_name }}

let me know if it solves your problem!