Comments (2)
Just dealt with this, try this! (Mind you Page variables like content or title are reserved by Jekyll Layouts object, maybe there should be a _templates dir?)
product.yaml
- id: Soap
template: template
data: The best Soap for Ever Lasting Life!
category: home
tags: on-sale, organic
template.md
---
title: {{ page.id }}
layout: {{ page.template }}
category: {{ page.category }}
tags: {{ page.tags }}
---
# {{ page.id }}
> {{ page.data }}
hope this works!
from jekyll-datapage_gen.
First of all thanks for the report, thanks to @jeffreydesir for the feedback, and sorry for taking ages before answering your question.
Just to add my two bits, you can also use =page_data_prefix= to prefix the variables and avoid clashes with reserved words.
config.yml
- data: product
page_data_prefix: my
product.yaml
- id: Soap
template: template
data: The best Soap for Ever Lasting Life!
category: home
tags: on-sale, organic
template.md
---
title: {{ page.my.id }}
layout: {{ page.my.template }}
category: {{ page.my.category }}
tags: {{ page.my.tags }}
---
# {{ page.my.id }}
> {{ page.my.data }}
from jekyll-datapage_gen.
Related Issues (20)
- Opinion: Layouts used Exclusively for Page Generation Should Be in _templates with Fresh Scope HOT 1
- Empty page.layout and jekyll-sitemap HOT 2
- Question on how to properly generate site based on example HOT 5
- Tag a new release? HOT 2
- Support for custom data mapping HOT 3
- Top-level generated index contains mix of two HOT 1
- From master to main
- error at blank record in data set: "no implicit conversion of nil into String (TypeError)" HOT 1
- Would it be possible to support nested collections? HOT 3
- What about an explicit license ?
- Uppercase filenames HOT 1
- Templates with liquid extension cause error
- Nested layouts treat first layout as the page
- Is it possible to iterate through all fields in a given entry? HOT 1
- filter_condition: check if contains/has/includes?
- Not generating pages HOT 2
- IDEA: Create also an index.html file on the group level, not only on the subfolders. HOT 1
- Doesn't seem to work with Jekyll 4.2.0 HOT 2
- NoMethodError: undefined method `each' for nil:NilClass HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-datapage_gen.