diff --git a/build.js b/build.js index b3e7037..d1fd706 100644 --- a/build.js +++ b/build.js @@ -107,6 +107,8 @@ async function build() { // Hide sections that should not appear in the PDF await page.evaluate(() => { document.querySelectorAll('.no-pdf').forEach(el => { el.style.display = 'none'; }); + const headshot = document.getElementById('me'); + if (headshot) headshot.style.display = 'none'; }); // Inject compact styles to keep the PDF to ≤2 pages await page.addStyleTag({ content: ` diff --git a/styles.css b/styles.css index 08b0f9e..23cebf0 100644 --- a/styles.css +++ b/styles.css @@ -256,7 +256,8 @@ td.bibtexitem { #ref-dialog, #publications-section, .no-pdf, - .ui-dialog { + .ui-dialog, + img#me { display: none !important; } /* Remove hover transitions */