Skip to content

Instantly share code, notes, and snippets.

@zachleat zachleat/.eleventy.js forked from crtr0/talk.njk
Last active Dec 10, 2019

What would you like to do?
module.exports = function(eleventyConfig) {
// you’ll have to get a list of all the tags in your talks.json here which is not great but pretty easy
["Web Assembly"].forEach(function(tag) {
eleventyConfig.addCollection(tag, function(collection) {
return collection.getFilteredByTag("talks").filter(item => {
// note here the use of the pagination alias `talk`
return ( || []).indexOf(tag) > -1;
data: talks
size: 1
alias: talk
addAllPagesToCollections: true
permalink: "talks/{{ talk.title | slug }}/"
tags: talks
{{ talk.title }}
"event": "cascadiajs-2019",
"speaker": "aaron-turner",
"title": "Building for Budgets",
"tags": [
"Web Assembly"
"slides": "",
"abstract": "A personal story of living in a low income family. With tips on how modern web technologies, like WebAssembly and Web Workers, can bring new experiences to the web for budget devices that struggled to run these experiences before.",
"ytID": "CYVs9hllqZY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.