Files
camping-des-speakers-2022/content/team.11ty.js
Horacio Gonzalez 88765f0964 Initial commit
2021-12-03 14:05:19 +01:00

43 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// JavaScript-ified ./content/team.11ty.js
/**
* @file Defines the chained layout for the archive page
* @see {@link https://www.11ty.dev/docs/layouts/#layout-chaining Layout chaining in 11ty}
* @author Horacio Gonzalez <horacio.gonzalez@gmail.com>
*/
/**
* Acts as front matter in JavaScript templates
* @see {@link https://www.11ty.dev/docs/languages/javascript/#optional-data-method Optional `data` in JavaScript templates in 11ty}
*/
export var data = {
title: "L'équipe",
navTitle: 'Équipe',
tags: 'nav',
weight: 3,
layout: 'layouts/team',
templateEngineOverride: '11ty.js',
pagination: {
data: 'collections.team',
size: 20,
alias: 'member',
reverse: false,
},
permalink: function(data) {
return this.url(
`${data.site[data.locale].team.url }/${data.pagination.pageNumber > 0
? `page-${data.pagination.pageNumber}/`
: ''}index.html`);
}
}
/**
* The archive page content
* @method
* @name render()
* @param {Object} data 11tys data object
* @return {String} The rendered template
*/
export function render(data) {
return `<!-- ${data.page.inputPath} -->`
}