From 21de6997a391fd20678a005f314dbf8814651235 Mon Sep 17 00:00:00 2001 From: Jonathon Lui Date: Tue, 31 May 2016 17:41:54 -0700 Subject: [PATCH 1/3] Fixed {{#has }} usage --- themes/modern/src/modern-html.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/modern/src/modern-html.html b/themes/modern/src/modern-html.html index d5efab7..6a6a7a3 100644 --- a/themes/modern/src/modern-html.html +++ b/themes/modern/src/modern-html.html @@ -90,9 +90,9 @@ engine settings, but ((#has 'contact.email')) never will. --> }}
- {{#has r.contact.email}}{{/has}} - {{#has r.contact.phone}}
{{ RAW.contact.phone }}
{{/has}} - {{#has r.contact.website}}{{/has}} + {{#has 'contact.email'}}{{/has}} + {{#has 'contact.phone'}}
{{ RAW.contact.phone }}
{{/has}} + {{#has 'contact.website'}}{{/has}}
From a9989d94b62abe6ed6d0c5c0db1ec3058cbd0af3 Mon Sep 17 00:00:00 2001 From: Jonathon Lui Date: Tue, 31 May 2016 17:46:45 -0700 Subject: [PATCH 2/3] Fixed #has in modern-pdf.html --- themes/modern/src/modern-pdf.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/modern/src/modern-pdf.html b/themes/modern/src/modern-pdf.html index 41f1586..0d16904 100644 --- a/themes/modern/src/modern-pdf.html +++ b/themes/modern/src/modern-pdf.html @@ -90,9 +90,9 @@ engine settings, but ((#has 'contact.email')) never will. --> }}
- {{#has r.contact.email}}{{/has}} - {{#has r.contact.phone}}
{{ RAW.contact.phone }}
{{/has}} - {{#has r.contact.website}}{{/has}} + {{#has 'contact.email'}}{{/has}} + {{#has 'contact.phone'}}
{{ RAW.contact.phone }}
{{/has}} + {{#has 'contact.website'}}{{/has}}
From 57e4f26d200985559b7f349653e6f8a9310041d6 Mon Sep 17 00:00:00 2001 From: Ben Whitney Date: Wed, 3 Jan 2018 12:20:43 -0500 Subject: [PATCH 3/3] Awesome: avoid LaTeX error with undefined label. --- themes/awesome/src/latex/examples/cv.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/awesome/src/latex/examples/cv.tex b/themes/awesome/src/latex/examples/cv.tex index 74a84ce..f7e33fe 100644 --- a/themes/awesome/src/latex/examples/cv.tex +++ b/themes/awesome/src/latex/examples/cv.tex @@ -52,7 +52,7 @@ % Comment any of the lines below if they are not required %------------------------------------------------------------------------------- \name{[~ print(h.initialWords( r.name )) ~]}{[[ h.lastWord( r.name ) ]]} -\position{[[ r.info.label ]]} +[~ if (r.info.label) { ~]\position{[[ r.info.label ]]}[~ } ~] \address{[[ r.location.address ]]} \mobile{[[ r.contact.phone ]]}