From 2edf556a7e46d72e1777708e78faf36e8a371b95 Mon Sep 17 00:00:00 2001 From: Rafael Bardini Date: Tue, 9 Mar 2021 12:40:08 +0100 Subject: [PATCH] fix(meta): only add description if summary exists Closes #10 --- partials/meta.hbs | 2 ++ resume.hbs | 5 +++-- tap-snapshots/test-render.js-TAP.test.js | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 partials/meta.hbs diff --git a/partials/meta.hbs b/partials/meta.hbs new file mode 100644 index 0000000..7c82935 --- /dev/null +++ b/partials/meta.hbs @@ -0,0 +1,2 @@ +{{#name}}{{.}}{{/name}} +{{#summary}}{{/summary}} diff --git a/resume.hbs b/resume.hbs index 9247a2b..87e2ec4 100644 --- a/resume.hbs +++ b/resume.hbs @@ -2,8 +2,9 @@ - {{resume.basics.name}} - + {{#resume.basics}} + {{> meta}} + {{/resume.basics}} diff --git a/tap-snapshots/test-render.js-TAP.test.js b/tap-snapshots/test-render.js-TAP.test.js index a992173..bf96bbc 100644 --- a/tap-snapshots/test-render.js-TAP.test.js +++ b/tap-snapshots/test-render.js-TAP.test.js @@ -10,8 +10,8 @@ exports[`test/render.js TAP renders a resume > must match snapshot 1`] = ` - Richard Hendriks - + Richard Hendriks +