Tucker McKnight <tucker@pangolin.lan> | Tue Jan 20 2026
Fix bug with empty branchname showing up in branch list This was causing the site to be unable to generate when it tried to call git commands on a bad branch name. Also remove a couple of console.log statements that aren't needed anymore.
135 136 137 138 139 140 141 142 143 144 145
})
eleventyConfig.addFilter("lineNumbers", (code: string) => {
try {
code.split('')
}
catch (error) {
console.log(code)
}
const numLines = code.split('\n').length
const lineNumbers = []
for (let i = 1; i <= numLines; i++) {135 136 137 138 139 140
})
eleventyConfig.addFilter("lineNumbers", (code: string) => {
code.split('')
const numLines = code.split('\n').length
const lineNumbers = []
for (let i = 1; i <= numLines; i++) {316 317 318 319 320 321
// FILE.TS
const flatFilesData = flatFiles(reposData)
console.log(flatFilesData.filter(entry => entry.file.includes('njk')))
eleventyConfig.addTemplate(
'repos/file.11ty.js',
htmlPage(reposConfiguration, eleventyConfig, fileJsTemplate),316 317 318 319 320
// FILE.TS
const flatFilesData = flatFiles(reposData)
eleventyConfig.addTemplate(
'repos/file.11ty.js',
htmlPage(reposConfiguration, eleventyConfig, fileJsTemplate),8 9 10 11 12 13 14 15
const result = await exec(command)
let files = result.stdout.split("\n").filter(item => item.length > 0 && item != ".")
if (branchName === 'main') {
console.log(files)
}
// TODO: this could be better. This is adding each sub-path of a file to a set, so that
// we don't wind up with repeats, and then converting that back into an array. E.g. if
// we have two files:8 9 10 11 12
const result = await exec(command)
let files = result.stdout.split("\n").filter(item => item.length > 0 && item != ".")
// TODO: this could be better. This is adding each sub-path of a file to a set, so that
// we don't wind up with repeats, and then converting that back into an array. E.g. if
// we have two files: