Skip to content

Instantly share code, notes, and snippets.

Forked from crtr0/talk.njk
Last active December 10, 2019 22:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zachleat/2da26a851a45400351d7e1fb39cde261 to your computer and use it in GitHub Desktop.
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