summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/content.ts
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-04-27 13:42:03 -0500
committerGravatar GitHub <noreply@github.com> 2021-04-27 13:42:03 -0500
commit73b7827b40ae33664877156850ecf04302fa668a (patch)
treebab8d916d06238bd859435c13b2c7390936a9cba /src/compiler/codegen/content.ts
parent41c64b30af7ed34c1a870b6f273a2889fa2df102 (diff)
downloadastro-73b7827b40ae33664877156850ecf04302fa668a.tar.gz
astro-73b7827b40ae33664877156850ecf04302fa668a.tar.zst
astro-73b7827b40ae33664877156850ecf04302fa668a.zip
chore: update docs to new defaults (#133)
Diffstat (limited to 'src/compiler/codegen/content.ts')
-rw-r--r--src/compiler/codegen/content.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/codegen/content.ts b/src/compiler/codegen/content.ts
index e6377eec0..fb8f9e307 100644
--- a/src/compiler/codegen/content.ts
+++ b/src/compiler/codegen/content.ts
@@ -23,8 +23,8 @@ const crawler = new fdir();
function globSearch(spec: string, { filename }: { filename: string }): string[] {
try {
// Note: fdir’s glob requires you to do some work finding the closest non-glob folder.
- // For example, this fails: .glob("./post/*.md").crawl("/…/astro/pages") ❌
- // …but this doesn’t: .glob("*.md").crawl("/…/astro/pages/post") ✅
+ // For example, this fails: .glob("./post/*.md").crawl("/…/src/pages") ❌
+ // …but this doesn’t: .glob("*.md").crawl("/…/src/pages/post") ✅
let globDir = '';
let glob = spec;
for (const part of spec.split('/')) {