Skip to content

Accessing Global Data File #3767

Discussion options

You must be logged in to vote

Turns out that the 11ty pagination returns keys by default. I'm not sure why I can't access the authors global data item, but this seems to at least give me the full author object, which is what I need...

In /src/author.njk, changed the frontmatter like so:

---
layout: base
pagination:
  data: authors
  size: 1
  alias: author
  resolve: values
permalink: blog/authors/{{ author.full_name | slugify }}/
---

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gabidombrowski
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gabidombrowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants