Tucker McKnight <tucker@pangolin.lan> | Fri Jan 02 2026
Move commits page ("patches.njk") to new typescript template16 17 18 19 20
import filesJsTemplate from './js_templates/files.ts'
import fileJsTemplate from './js_templates/file.ts'
import commitJsTemplate from './js_templates/commit.ts'
import indexJsTemplate from './js_templates/index.ts'
const ajv = new Ajv()16 17 18 19 20 21
import filesJsTemplate from './js_templates/files.ts'
import fileJsTemplate from './js_templates/file.ts'
import commitJsTemplate from './js_templates/commit.ts'
import commitsJsTemplate from './js_templates/commits.ts'
import indexJsTemplate from './js_templates/index.ts'
const ajv = new Ajv()424 425 426 427 428 429 430 431 432 433 434
}
)
// PATCHES.NJK
const patchesTemplate = fsImport.readFileSync(`${import.meta.dirname}/templates/patches.njk`).toString()
const paginatedPatchesData = await paginatedPatches(reposData)
eleventyConfig.addTemplate(
`repos/patches.njk`,
topLayoutPartial + patchesTemplate + bottomLayoutPartial,
{
pagination: {
data: "paginatedPatches",424 425 426 427 428 429 430 431 432 433
}
)
// COMMITS.TS
const paginatedPatchesData = await paginatedPatches(reposData)
eleventyConfig.addTemplate(
`repos/patches.11ty.js`,
htmlPage(reposConfiguration, eleventyConfig, commitsJsTemplate),
{
pagination: {
data: "paginatedPatches",