diff --git a/make.sh b/make.sh index 55dee4a..e2db900 100755 --- a/make.sh +++ b/make.sh @@ -1,9 +1,8 @@ #!/bin/bash -rm -rf public/ -hugo -rm -rf pdf +rm -rf public/ pdf/ mkdir pdf +hugo for dir in public/print/* do chromium --temp-profile --headless --disable-gpu --run-all-compositor-stages-before-draw --allow-file-access-from-files --allow-running-insecure-content --print-to-pdf-no-header --print-to-pdf="pdf/$(basename $dir).pdf" "${dir}/print.html" diff --git a/themes/cookbook/layouts/_default/baseof.print.html b/themes/cookbook/layouts/_default/baseof.print.html index 15117af..eedecee 100644 --- a/themes/cookbook/layouts/_default/baseof.print.html +++ b/themes/cookbook/layouts/_default/baseof.print.html @@ -139,7 +139,7 @@ -
+