-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
2,176 additions
and
840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import fs from 'fs/promises'; | ||
import path from 'path'; | ||
|
||
const FREELANCERS_CONTENT_DIR = 'src/content/freelancers'; | ||
|
||
async function checkPaths() { | ||
try { | ||
// Get all freelancer YAML files | ||
const files = await fs.readdir(FREELANCERS_CONTENT_DIR); | ||
const yamlFiles = files.filter(file => file.endsWith('.yaml')); | ||
|
||
for (const yamlFile of yamlFiles) { | ||
// Read YAML content | ||
const yamlPath = path.join(FREELANCERS_CONTENT_DIR, yamlFile); | ||
const content = await fs.readFile(yamlPath, 'utf8'); | ||
|
||
// Find the photo line | ||
const photoLine = content.split('\n').find(line => line.startsWith('photo:')); | ||
|
||
// Log the exact photo line with character codes | ||
if (photoLine) { | ||
console.log(`${yamlFile}:`); | ||
console.log('Raw:', photoLine); | ||
console.log('Chars:', [...photoLine].map(c => c.charCodeAt(0))); | ||
console.log('---'); | ||
} | ||
} | ||
} catch (error) { | ||
console.error('Check failed:', error); | ||
} | ||
} | ||
|
||
checkPaths(); |
Oops, something went wrong.