mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-10-12 21:49:01 +01:00
Improve theme/format inheritance (interim).
This commit is contained in:
1 parent
d205e882f6
commit
2819faeb6f
3 files changed
+24
-4
No files matched your search
@@ -215,9 +215,17 @@ Generic template helper definitions for HackMyResume / FluentCV.
|
||||
via <style></style> tag.
|
||||
*/
|
||||
styleSheet: function( file, options ) {
|
||||
return ( this.opts.css === 'link') ?
|
||||
var styles = ( this.opts.css === 'link') ?
|
||||
'<link href="' + file + '" rel="stylesheet" type="text/css">' :
|
||||
'<style>' + this.cssInfo.data + '</style>';
|
||||
if( this.opts.themeObj.inherits &&
|
||||
this.opts.themeObj.inherits.html &&
|
||||
this.format === 'html' ) {
|
||||
styles += (this.opts.css === 'link') ?
|
||||
'<link href="' + this.opts.themeObj.overrides.path + '" rel="stylesheet" type="text/css">' :
|
||||
'<style>' + this.opts.themeObj.overrides.data + '</style>';
|
||||
}
|
||||
return styles;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,6 +45,7 @@ Definition of the HandlebarsGenerator class.
|
||||
RAW: json,
|
||||
filt: opts.filters,
|
||||
cssInfo: cssInfo,
|
||||
format: format,
|
||||
opts: opts,
|
||||
headFragment: opts.headFragment || ''
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user