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

Create pages programatically #120

Open
dvidsilva opened this issue Sep 12, 2017 · 0 comments
Open

Create pages programatically #120

dvidsilva opened this issue Sep 12, 2017 · 0 comments

Comments

@dvidsilva
Copy link
Collaborator

It would be useful to create pages from a json file, or some data element.

I imagine something like this.

---
metadata: yaml
    prefix: /pictures/
    suffix: ''
    type: template
    source: data.images
    source_type: json
---
<template source={data.images}>
    <h1>{name}</h1>
     <img src="{url}" />
</template>

And that creates a bunch of pages in the build folder, using that template.

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