From 14cc1d12d712cfa49def7ad03b9a30a80fd484a5 Mon Sep 17 00:00:00 2001 From: Morisa Manzella Date: Wed, 5 Jun 2024 16:44:46 -0400 Subject: [PATCH] Add snippet prefix --- src/utils/getProfileData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/getProfileData.ts b/src/utils/getProfileData.ts index fb7f38a..b60973c 100644 --- a/src/utils/getProfileData.ts +++ b/src/utils/getProfileData.ts @@ -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(':');