Skip to content

Commit 1f258e0

Browse files
committed
Fix bugs in pdf exporter
1 parent d32e151 commit 1f258e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_sass/_main.scss

+4
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ footer a:hover {
159159
font-size: 11pt;
160160
}
161161

162+
footer {
163+
display: none;
164+
}
165+
162166
#container {
163167
max-width: none;
164168
margin: 0;

utils/convert_to_pdf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var links = {{ site.data.links_en | jsonify }};
3333
// page.pdf() is currently supported only in headless mode.
3434
// @see https://bugs.chromium.org/p/chromium/issues/detail?id=753118
3535
const margin = "0.2in"
36-
const file_seg = link.num ? link.num.pad() : ("0_" + link.title.replace(".", "_"))
36+
const file_seg = link.num ? link.num.pad() : ("00_" + link.title.replace(".", "_"))
3737
await page.pdf({
3838
path: "tmp/page_" + file_seg + ".pdf",
3939
format: "A5",

0 commit comments

Comments
 (0)