Skip to content

Commit

Permalink
Add snippet prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmanzella committed Jun 5, 2024
1 parent 2ee7f33 commit 14cc1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/getProfileData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function formatLiquidProfileData(
name = `section:${nameParts[1].replace(/\.liquid$/, '')}`;
filepath = entry.partial;
} else if (nameParts[0] === 'snippets') {
name = entry.partial
filepath = `${entry.partial}.liquid`;
name = `snippet:${entry.partial}`;
filepath = `snippets/${entry.partial}.liquid`;
} else {
name = entry.partial;
const partialParts = entry.partial.split(':');
Expand Down

0 comments on commit 14cc1d1

Please sign in to comment.