mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +00:00
Fix theme loading glitch.
This commit is contained in:
parent
af33b6eded
commit
fbc98060ce
@ -14,7 +14,6 @@ var FS = require( 'fs' )
|
|||||||
|
|
||||||
// Default options.
|
// Default options.
|
||||||
var _defaultOpts = {
|
var _defaultOpts = {
|
||||||
themeRelative: '../../node_modules/fluent-themes/themes',
|
|
||||||
keepBreaks: true,
|
keepBreaks: true,
|
||||||
freezeBreaks: true,
|
freezeBreaks: true,
|
||||||
nSym: '&newl;', // newline entity
|
nSym: '&newl;', // newline entity
|
||||||
@ -76,7 +75,10 @@ var TemplateGenerator = module.exports = BaseGenerator.extend({
|
|||||||
this.opts = EXTEND( true, { }, _defaultOpts, opts );
|
this.opts = EXTEND( true, { }, _defaultOpts, opts );
|
||||||
|
|
||||||
// Verify the specified theme name/path
|
// Verify the specified theme name/path
|
||||||
var tFolder = PATH.resolve( __dirname, this.opts.themeRelative, this.opts.theme );
|
var tFolder = PATH.join(
|
||||||
|
PATH.parse( require.resolve('fluent-themes') ).dir,
|
||||||
|
this.opts.theme
|
||||||
|
);
|
||||||
var exists = require('../utils/file-exists');
|
var exists = require('../utils/file-exists');
|
||||||
if (!exists( tFolder )) {
|
if (!exists( tFolder )) {
|
||||||
tFolder = PATH.resolve( this.opts.theme );
|
tFolder = PATH.resolve( this.opts.theme );
|
||||||
|
Loading…
Reference in New Issue
Block a user