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

Data files pagination #1820

Closed
zlatanvasovic opened this issue Dec 12, 2013 · 6 comments
Closed

Data files pagination #1820

zlatanvasovic opened this issue Dec 12, 2013 · 6 comments

Comments

@zlatanvasovic
Copy link
Contributor

@zlatanvasovic zlatanvasovic commented Dec 12, 2013

Yup, like for posts — data file entries paginated.

@parkr
Copy link
Member

@parkr parkr commented Dec 12, 2013

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

Doesn't work for you?

@zlatanvasovic
Copy link
Contributor Author

@zlatanvasovic zlatanvasovic 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
Copy link
Member

@parkr 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
@zlatanvasovic
Copy link
Contributor Author

@zlatanvasovic zlatanvasovic 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
Copy link
Member

@parkr parkr commented Dec 14, 2013

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

@zlatanvasovic
Copy link
Contributor Author

@zlatanvasovic zlatanvasovic 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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants