Sun Mar 02 2025
tucker.mcknight@gmail.com
6411a48a446b5465407c617e492e3239f4c5d461
eleventyConfig.addFilter("getFileName", (filePath) => {
const pathParts = filePath.split("/")
return pathParts[pathParts.length - 1]
})
<h3>{{fileInfo.file }}</h3>
<h3>{{fileInfo.file | getFileName}}</h3>