From a453543b71cf8a50c3bfa589e724f3ca2b01e28f Mon Sep 17 00:00:00 2001 From: Songpol Siengvisuth Date: Mon, 8 Jan 2024 16:27:53 -0800 Subject: [PATCH] Change title to desiredrole. --- public/template.yaml | 2 +- src/pptx/profile.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/template.yaml b/public/template.yaml index c5de13f..f4fa4b9 100644 --- a/public/template.yaml +++ b/public/template.yaml @@ -1,7 +1,7 @@ --- firstname: John lastname: Doe -title: Software/DevOps Engineer +desiredrole: Software/DevOps Engineer skills: - Java / JavaScript / Python - DevOps & CI/CD best practices diff --git a/src/pptx/profile.js b/src/pptx/profile.js index f65cd47..2f93b2e 100644 --- a/src/pptx/profile.js +++ b/src/pptx/profile.js @@ -19,9 +19,9 @@ export default class Profile { { text: '\n' } ]; - if (profile.title) { + if (profile.desiredrole) { introText.push( - { text: `${profile.title}`, options: { fontSize: 14, bold: true, breakLine: true } }, + { text: `${profile.desiredrole}`, options: { fontSize: 14, bold: true, breakLine: true } }, { text: '\n' } ) }