Trying to setup pagination with data, where {{ title }}
in <head><title>{{ title }}</title></head>
is the title of the current page as defined in projects.json
Assumed this could be done:
# main.njk
<head>
<title>{{ title }}</title>
</head>
# page.njk
---
layout: main.njk
pagination:
data: projects
size: 1
alias: project
permalink: "work/{{ project.title | slug }}/"
title: {{ project.title }}
---
Might have misunderstood some fundamentals but {{ title }}
renders out as [object, object]
instead. Permalink works fine...
renderData
instead ofeleventyComputed
worked for me but this appears to be a deprecated feature according to this: 11ty.dev/docs/advanced-order. Time to upgrade. – Augustaugusta