Resume data is loaded from resume/<slug>.yml via RESUME_NAME (default dobkin), with per-slug profile photos and webpack alias wiring. Export and preview honor the slug; package scripts add convenience dev/export targets. Add ai-bw layout and preview asset, cherepaha profile, and experience legend metadata on green and purple. When birth year is omitted, cool and material-dark themes show "Based in" instead of "Born" so birth.location can mean current location. README documents the new workflow and fixes export wording. Made-with: Cursor
16 lines
409 B
JavaScript
16 lines
409 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Sanitized slug for resume data file (resume/<slug>.yml) and PDF/PNG naming.
|
|
* Set RESUME_NAME when building, exporting, or previewing (default: dobkin).
|
|
*/
|
|
function getResumeSlug () {
|
|
const s = String(process.env.RESUME_NAME || 'dobkin')
|
|
.trim()
|
|
.toLowerCase()
|
|
.replace(/[^a-z0-9_-]+/g, '');
|
|
return s || 'dobkin';
|
|
}
|
|
|
|
module.exports = { getResumeSlug };
|