Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cssandstuff/hugo-theme-winning.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcssandstuff <github@cssandstuff.com>2018-07-10 07:42:38 +0300
committercssandstuff <github@cssandstuff.com>2018-07-10 07:42:38 +0300
commitb5066db74bdddaea4e25900f2e2abac92849963f (patch)
tree61b1930e8e29a8cf8030d7c261d0f7d95c499e20
parentb4aec9cc5e5b2fb518db96841652b25d59c8b3a2 (diff)
updated generatepdf
-rw-r--r--README.md8
-rw-r--r--exampleSite/generatepdf.js2
2 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index d13ed3e..1bb6f41 100644
--- a/README.md
+++ b/README.md
@@ -23,4 +23,10 @@ This is a Simple one page CV template.
```HUGO_THEME=winning hugo server -c themes/winning/exampleSite/content/```
## PDF Generation
-you need to run node ./generatepdf.js \ No newline at end of file
+```
+npm i html-pdf -g
+```
+Copy ./generatepdf.js to the root of your hugo project.
+```
+node ./generatepdf.js
+``` \ No newline at end of file
diff --git a/exampleSite/generatepdf.js b/exampleSite/generatepdf.js
index 0d0ae61..d5fa582 100644
--- a/exampleSite/generatepdf.js
+++ b/exampleSite/generatepdf.js
@@ -11,7 +11,7 @@ var options = {
}
};
-pdf.create(html, options).toFile('./themes/winning/static/assets/cv.pdf', function(err, res) {
+pdf.create(html, options).toFile('./static/cv.pdf', function(err, res) {
if (err) return console.log(err);
console.log(res);
}); \ No newline at end of file