Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Aug 30, 2024
1 parent 3691277 commit cd723de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/tags/tags.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
permalink: data => `/tags/${data.page.fileSlug}/index.html`,
title: data => data.title || toTitleCase(data.page.fileSlug),
tag: data => data.page.fileSlug,

// Remove /tags/, /{fileSlug}..., and convert the remaining folders into dotty notation.
group: data => data.page.filePathStem.replace(/^\/tags\//, '').replace(/\/[\w-]+$/, '').replace('/', '.'),
},
};

0 comments on commit cd723de

Please sign in to comment.