mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +00:00
Fix logic glitch in {{sectionTitle}} helper.
This commit is contained in:
parent
eff9fc51cb
commit
219209c6ca
@ -54,7 +54,7 @@ Generic template helper definitions for HackMyResume / FluentCV.
|
|||||||
// If not provided by the user, stitle should default to sname. ps.
|
// If not provided by the user, stitle should default to sname. ps.
|
||||||
// Handlebars silently passes in the options object to the last param,
|
// Handlebars silently passes in the options object to the last param,
|
||||||
// where in Underscore stitle will be null/undefined, so we check both.
|
// where in Underscore stitle will be null/undefined, so we check both.
|
||||||
stitle = (stitle && String.is(stitle)) || sname;
|
stitle = (stitle && String.is(stitle) && stitle) || sname;
|
||||||
|
|
||||||
// If there's a section title override, use it.
|
// If there's a section title override, use it.
|
||||||
return ( this.opts.stitles &&
|
return ( this.opts.stitles &&
|
||||||
|
Loading…
Reference in New Issue
Block a user