diff --git a/src/jarek/jarek.11tydata.js b/src/jarek/jarek.11tydata.js index 038344d..f26149b 100644 --- a/src/jarek/jarek.11tydata.js +++ b/src/jarek/jarek.11tydata.js @@ -22,15 +22,20 @@ const firstName = 'Jarek', size: 18, girth: 4 }, - description = "Don't encroach on his turf, or you'll be sorry!"; + description = "Don't encroach on his turf, or you'll be sorry!", + profile = [ + { icon: 'fa7-solid:mars', type: 'Sex/Gender', text: gender }, + { icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) }, + { icon: 'fa7-solid:weight-hanging', type: 'Weight', text: getWeight(weight) }, + { icon: 'fa7-solid:ruler', type: 'Tail Length', text: getTailLength(tailLength) } + ]; -const getTraits = () => [ - // { icon: 'fa7-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth() }, - { icon: 'fa7-solid:mars', type: 'Sex/Gender', text: gender }, - { icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) }, - { icon: 'fa7-solid:weight-hanging', type: 'Weight', text: getWeight(weight) }, - { icon: 'fa7-solid:ruler', type: 'Tail Length', text: getTailLength(tailLength) } -]; +const getTraits = (type) => { + switch (type) { + default: + return profile; + } +}; export default { firstName, diff --git a/src/viktor/viktor.11tydata.js b/src/viktor/viktor.11tydata.js index acb5a94..5bae1c6 100644 --- a/src/viktor/viktor.11tydata.js +++ b/src/viktor/viktor.11tydata.js @@ -26,7 +26,7 @@ const firstName = 'Viktor', { icon: 'fa7-solid:heart', type: 'Orientation', text: orientation }, { icon: 'fa7-solid:arrows-up-down', type: 'Role', text: role } ], - anatomy = [ + profile = [ { icon: 'fa7-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth(dateOfBirth) }, { icon: 'fa7-solid:mars', type: 'Sex/Gender', text: `${gender} (${pronouns})` }, { icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) }, @@ -37,9 +37,8 @@ const getTraits = (type) => { switch (type) { case 'sexuality': return sexuality; - default: - return anatomy; + return profile; } };