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

Data files pagination #1820

Closed
zdroid opened this Issue Dec 12, 2013 · 6 comments

Comments

Projects
None yet
3 participants
@zdroid
Member

zdroid commented Dec 12, 2013

Yup, like for posts — data file entries paginated.

@parkr

This comment has been minimized.

Member

parkr commented Dec 12, 2013

{% for datafile in site.data %}
{% endfir %}

Doesn't work for you?

@zdroid

This comment has been minimized.

Member

zdroid commented Dec 12, 2013

Not that. Look at http://expo.getbootstrap.com/. It has entries, but like posts. Why not use data files instead?

So, I want to paginate entries.

@parkr

This comment has been minimized.

Member

parkr commented Dec 12, 2013

I'm really not sure what you're talking about specifically. You can iterate over the entries in a YAML data file:

{% for expo in site.data.expos %}
  {% include expo.html %} <!-- use {{ expo }} in your include -->
{% endfor %}

Your _data/expos.yml would then be an array of expos.

@parkr parkr closed this Dec 12, 2013

@zdroid

This comment has been minimized.

Member

zdroid commented Dec 13, 2013

Like post pagination. If I make gallery, I want to make pages for that gallery, not to be on one page.

@parkr

This comment has been minimized.

Member

parkr commented Dec 14, 2013

That can't be done with _data -- they're not meant to generate individual pages.

@zdroid

This comment has been minimized.

Member

zdroid commented Dec 14, 2013

:(

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.