Skip to content

Commit

Permalink
normalize.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorii Bushmanov authored and Grigorii Bushmanov committed Nov 10, 2023
1 parent 8b2312b commit 5ffb522
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ function render(resumeObject) {

resumeObject.css = fs.readFileSync(__dirname + "/style.css", "utf-8");
resumeObject.printcss = fs.readFileSync(__dirname + "/print.css", "utf-8");
resumeObject.normalizecss = fs.readFileSync(__dirname + "node_modules/normalize.css/normalize.css", "utf-8");
var theme = fs.readFileSync(__dirname + '/resume.template.html', 'utf8');
var resumeHTML = Mustache.render(theme, resumeObject);

Expand Down
15 changes: 13 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"gravatar": "^1.0.6",
"lodash": "^4.17.20",
"mustache": "^2.2.1",
"normalize.css": "^8.0.1",
"xmlhttprequest": "^1.8.0"
},
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions resume.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<style type="text/css" media="print">
{{{printcss}}}
</style>
<style type="text/css">
{{{normalizecss}}}
</style>
<!-- FAVICON -->
<link rel="icon" href="{{photo}}" type="{{photoType}}">
</head>
Expand Down

0 comments on commit 5ffb522

Please sign in to comment.