jsonresume-theme-timeline
Advanced tools
Comparing version 0.0.5 to 0.0.6
22
index.js
@@ -11,7 +11,6 @@ | ||
var cssbootstrap = fs.readFileSync(path.resolve(__dirname, 'css','bootstrap.css'), 'utf8'); | ||
var csstheme = fs.readFileSync(path.resolve(__dirname, 'css','theme.css'), 'utf8'); | ||
var csscustom = fs.readFileSync(path.resolve(__dirname, 'css','custom.css'), 'utf8'); | ||
/* | ||
var files = {}; | ||
@@ -54,19 +53,18 @@ csscustom = csscustom.replace(/url\(["']?(\S*)\.(png|jpg|jpeg|gif)["']?\)/g, function(match, file, type) | ||
}); | ||
fs.writeFileSync('theme.css', cssbootstrap + csscustom); | ||
*/ | ||
var cssdark = fs.readFileSync(path.resolve(__dirname, 'css','dark.css'), 'utf8'); | ||
var template = fs.readFileSync(path.resolve(__dirname, 'index.html'), 'utf8'); | ||
if(resume.bio && resume.bio.email && resume.bio.email.personal) { | ||
resume.bio.gravatar = gravatar.url(resume.bio.email.personal, { | ||
s: '200', | ||
r: 'pg', | ||
d: 'mm' | ||
}); | ||
resume.bio.gravatar = gravatar.url(resume.bio.email.personal, { | ||
s: '200', | ||
r: 'pg', | ||
d: 'mm' | ||
}); | ||
} | ||
var html = Mustache.render(template, {resume:resume, csscustom:csscustom, cssbootstrap: cssbootstrap, cssdark:cssdark} ); | ||
var html = Mustache.render(template, {resume:resume, csstheme:csstheme} ); | ||
return html; | ||
} | ||
module.exports = { render: render }; |
{ | ||
"name": "jsonresume-theme-timeline", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2733015
104
28555