Skip to content

Commit

Permalink
Merge pull request #11 from XuluWarrior/package-meta
Browse files Browse the repository at this point in the history
Include theme package name and version in generated resume  meta
  • Loading branch information
XuluWarrior committed Jul 13, 2019
2 parents 87edf0e + d92a01e commit 20056a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,16 @@ function render(resume) {
// Handlebars.registerPartial(name, template);
//});

const packageJSON = require("./package");
return Handlebars.compile(tpl)({
css: css,
mainJs: mainJs,
pluginsJs: pluginsJs,
resume: resume
resume: resume,
meta: {
packageName: packageJSON.name,
version: packageJSON.version
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion resume.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<title>{{#resume.basics}}{{name}}{{/resume.basics}}</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="generator" content="https://www.npmjs.com/package/jsonresume-theme-kards"/>
<meta name="generator" content="https://www.npmjs.com/package/{{meta.packageName}}/v/{{meta.version}}"/>

<!-- mobile specific metas
================================================== -->
Expand Down

0 comments on commit 20056a1

Please sign in to comment.