irongit

content: Dubai is only where the photo was taken

huncholanehuncholaneauthored
parent e752abacommit 224f4854e348a5b146ee659d8dceba6ffa54242fBrowse files

1 file changed, +11 -3

+11-3src/data/profile.ts
@@ -12,14 +12,15 @@ export const intro = [
1212 ];
1313
1414 // Places on the locations globe. `short` labels the pin; `name` is used by the console.
15-// Records below reference these ids in `places`.
15+// Records below reference these ids in `places`. `photoOnly` marks a pin that is
16+// only there because the portfolio photo was taken there, not a place Lane lived or worked.
1617 export const places = [
1718 { id: 'knoxville', name: 'Knoxville, TN', short: 'Knoxville', lat: 35.9606, lon: -83.9207 },
1819 { id: 'austin', name: 'Austin, TX', short: 'Austin', lat: 30.2672, lon: -97.7431 },
1920 { id: 'reno', name: 'Reno, NV', short: 'Reno', lat: 39.5296, lon: -119.8138 },
2021 { id: 'grassvalley', name: 'Grass Valley, CA', short: 'Grass Valley', lat: 39.2191, lon: -121.0611 },
2122 { id: 'petaluma', name: 'Petaluma, CA', short: 'Petaluma', lat: 38.2324, lon: -122.6367 },
22- { id: 'dubai', name: 'Dubai, UAE', short: 'Dubai', lat: 25.1972, lon: 55.2744 },
23+ { id: 'dubai', name: 'Dubai, UAE', short: 'Dubai', lat: 25.1972, lon: 55.2744, photoOnly: true },
2324 ] as const;
2425 export type PlaceId = (typeof places)[number]['id'];
2526
@@ -441,6 +442,13 @@ export function profileText(): string {
441442 lines.push('## Education');
442443 lines.push(`- ${orgs.utk.title}, ${orgs.utk.org}, graduated ${orgs.utk.end ? orgs.utk.end[0] : orgs.utk.dates}.`);
443444 lines.push('');
444- lines.push(`## Places\n${places.map((p) => p.name).join('; ')}`);
445+ const lived = places.filter((p) => !('photoOnly' in p));
446+ const photo = places.filter((p) => 'photoOnly' in p);
447+ lines.push(`## Places\nLived and worked: ${lived.map((p) => p.name).join('; ')}`);
448+ for (const p of photo) {
449+ lines.push(
450+ `${p.name} is on the globe only because the portfolio photo (downtown Dubai) was taken there. Lane has never lived or worked in ${p.short}, and no work was done from there.`,
451+ );
452+ }
445453 return lines.join('\n') + '\n';
446454 }