Move commits page ("patches.njk") to new typescript template

913bffe4a578e4ab49480bab7bb333445694aec9

Tucker McKnight <tucker@pangolin.lan> | Fri Jan 02 2026

Move commits page ("patches.njk") to new typescript template
main.ts:17
Before
16
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()
After
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()
main.ts:425
Before
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",
After
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",