feat: refine portfolio content, contact, and supporting media
This commit is contained in:
@@ -9,12 +9,11 @@ const publicMetadata = Object.freeze({
|
||||
name: 'Luca Pîslaru',
|
||||
role: 'System Administrator & Full-Stack Developer',
|
||||
title: 'Luca Pîslaru — System Administrator & Full-Stack Developer',
|
||||
description: 'Portfolio of Luca Pîslaru, a Bucharest-based System Administrator and Full-Stack Developer working across Linux infrastructure and end-to-end software delivery.',
|
||||
email: 'mailto:luca.pislaru@gmail.com',
|
||||
description: 'I’m Luca Pîslaru, a System Administrator & Full-Stack Developer based in Bucharest. Explore my work in Linux infrastructure and end-to-end application development.',
|
||||
sameAs: Object.freeze([
|
||||
'https://linkedin.com/in/luca-pisl',
|
||||
'https://github.com/LucaPisl',
|
||||
'https://gitlab.com/luca_pisl',
|
||||
'https://linkedin.com/in/luca-pisl',
|
||||
]),
|
||||
location: Object.freeze({ city: 'Bucharest', countryCode: 'RO' }),
|
||||
socialImagePath: '/assets/project-social-preview.webp',
|
||||
@@ -121,13 +120,13 @@ function verifyMetadata(html, canonicalUrl) {
|
||||
try { jsonLd = JSON.parse(jsonLdText); } catch { throw new Error('JSON-LD is not valid JSON.'); }
|
||||
exactObjectKeys(jsonLd, ['@context', '@type', 'name', 'description', 'url', 'mainEntity'], 'ProfilePage JSON-LD');
|
||||
const person = jsonLd.mainEntity;
|
||||
exactObjectKeys(person, ['@type', 'name', 'jobTitle', 'description', 'url', 'email', 'homeLocation', 'sameAs'], 'Person JSON-LD');
|
||||
exactObjectKeys(person, ['@type', 'name', 'jobTitle', 'description', 'url', 'homeLocation', 'sameAs'], 'Person JSON-LD');
|
||||
exactObjectKeys(person.homeLocation, ['@type', 'address'], 'homeLocation JSON-LD');
|
||||
exactObjectKeys(person.homeLocation.address, ['@type', 'addressLocality', 'addressCountry'], 'PostalAddress JSON-LD');
|
||||
if (jsonLd['@context'] !== 'https://schema.org' || jsonLd['@type'] !== 'ProfilePage' ||
|
||||
jsonLd.name !== publicMetadata.name || jsonLd.description !== description || jsonLd.url !== canonicalUrl ||
|
||||
person['@type'] !== 'Person' || person.name !== publicMetadata.name || person.jobTitle !== publicMetadata.role ||
|
||||
person.description !== description || person.url !== canonicalUrl || person.email !== publicMetadata.email ||
|
||||
person.description !== description || person.url !== canonicalUrl ||
|
||||
person.homeLocation['@type'] !== 'Place' || person.homeLocation.address['@type'] !== 'PostalAddress' ||
|
||||
person.homeLocation.address.addressLocality !== publicMetadata.location.city ||
|
||||
person.homeLocation.address.addressCountry !== publicMetadata.location.countryCode ||
|
||||
|
||||
Reference in New Issue
Block a user