mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Use "src" subfolder instead of "templates".
This commit is contained in:
parent
3b8d100f39
commit
307c37dc44
@ -41,7 +41,7 @@ Abstract theme representation.
|
|||||||
|
|
||||||
// Iterate over all files in the theme folder, producing an array, fmts,
|
// Iterate over all files in the theme folder, producing an array, fmts,
|
||||||
// containing info for each file.
|
// containing info for each file.
|
||||||
var tplFolder = PATH.join( themeFolder, 'templates' );
|
var tplFolder = PATH.join( themeFolder, 'src' );
|
||||||
var fmts = FS.readdirSync( tplFolder ).map( function( file ) {
|
var fmts = FS.readdirSync( tplFolder ).map( function( file ) {
|
||||||
var absPath = PATH.join( tplFolder, file );
|
var absPath = PATH.join( tplFolder, file );
|
||||||
var pathInfo = PATH.parse(absPath);
|
var pathInfo = PATH.parse(absPath);
|
||||||
|
@ -21,7 +21,7 @@ HTML resume generator for FluentCV.
|
|||||||
the HTML resume prior to saving.
|
the HTML resume prior to saving.
|
||||||
*/
|
*/
|
||||||
onBeforeSave: function( info ) {
|
onBeforeSave: function( info ) {
|
||||||
var cssSrc = PATH.join( info.theme.folder, 'templates', '*.css' )
|
var cssSrc = PATH.join( info.theme.folder, 'src', '*.css' )
|
||||||
, outFolder = PATH.parse( info.outputFile ).dir, that = this;
|
, outFolder = PATH.parse( info.outputFile ).dir, that = this;
|
||||||
|
|
||||||
info.theme.cssFiles.forEach( function( f ) {
|
info.theme.cssFiles.forEach( function( f ) {
|
||||||
|
@ -94,7 +94,7 @@ Template-based resume generator base for FluentCV.
|
|||||||
var theme = opts.themeObj || new Theme().open( tFolder );
|
var theme = opts.themeObj || new Theme().open( tFolder );
|
||||||
|
|
||||||
// Load theme and CSS data
|
// Load theme and CSS data
|
||||||
var tplFolder = PATH.join( tFolder, 'templates' );
|
var tplFolder = PATH.join( tFolder, 'src' );
|
||||||
var curFmt = theme.getFormat( this.format );
|
var curFmt = theme.getFormat( this.format );
|
||||||
var cssInfo = { file: curFmt.css ? curFmt.cssPath : null, data: curFmt.css || null };
|
var cssInfo = { file: curFmt.css ? curFmt.cssPath : null, data: curFmt.css || null };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user