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 05:39:20 +0300
committercssandstuff <github@cssandstuff.com>2018-07-10 05:39:20 +0300
commitdbc4dab9c026537d0411085caee8f39f58f85d13 (patch)
treeaccce0fba01f4c83cbf37a2ccbdbbd3791459eaa
parenta1e47ba7d4d85c25bda6ea32e1ebb0299792f2f8 (diff)
fixes to footer
-rw-r--r--exampleSite/generatepdf.js4
-rwxr-xr-xlayouts/partials/site-footer.html2
-rw-r--r--package.json29
3 files changed, 32 insertions, 3 deletions
diff --git a/exampleSite/generatepdf.js b/exampleSite/generatepdf.js
index e85e6e3..0d0ae61 100644
--- a/exampleSite/generatepdf.js
+++ b/exampleSite/generatepdf.js
@@ -1,6 +1,6 @@
var fs = require('fs');
var pdf = require('html-pdf');
-var html = fs.readFileSync('./docs/index.html', 'utf8');
+var html = fs.readFileSync('./public/index.html', 'utf8');
var options = {
"format": 'A4',
"border": {
@@ -13,5 +13,5 @@ var options = {
pdf.create(html, options).toFile('./themes/winning/static/assets/cv.pdf', function(err, res) {
if (err) return console.log(err);
- console.log(res); // { filename: '/app/businesscard.pdf' }
+ console.log(res);
}); \ No newline at end of file
diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html
index 3399972..e961658 100755
--- a/layouts/partials/site-footer.html
+++ b/layouts/partials/site-footer.html
@@ -1,6 +1,6 @@
<footer class="-m-auto -border-top -em-08 -lineheight-1-3 footer -text-left">
- <div class="-text-center -print-hidden"><a href="assets/tim-clulow-cv.pdf" class="download"><span class="download-icon"></span> Download this as a pdf <span class="-em-07 ">(generated using node-html-pdf)</span></a>
+ <div class="-text-center -print-hidden"><a href="assets/cv.pdf" class="download"><span class="download-icon"></span> Download this as a pdf <span class="-em-07 ">(generated using node-html-pdf)</span></a>
</div>
<div class="-clearfix -text-center -print-only">
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..080460e
--- /dev/null
+++ b/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "hugo-theme-winning",
+ "version": "1.0.0",
+ "description": "",
+ "main": "generatepdf.js",
+ "directories": {
+ "doc": "docs"
+ },
+ "scripts": {
+ "start": "hugo serve -d docs",
+ "minifycss": "postcss ./themes/winning/static/css/main.css > ./docs/css/main.min.css && postcss ./themes/winning/static/css/belmu.css > ./docs/css/belmu.min.css",
+ "stage": "HUGO_ENV=production npm start | npm run minifycss",
+ "build": "HUGO_ENV=production hugo -d docs && npm run minifycss"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://cssandstuff@github.com/cssandstuff/hugo-theme-winning.git"
+ },
+ "author": "",
+ "license": "ISC",
+ "bugs": {
+ "url": "https://github.com/cssandstuff/cv/issues"
+ },
+ "homepage": "https://github.com/cssandstuff/cv#readme",
+ "devDependencies": {
+ "cssnano": "^3.10.0",
+ "html-pdf": "^2.2.0"
+ }
+}