Hi, sorry if this is not the place to post this, but I want to remove the sidebar from the resume after the first page (the 2nd and 3rd page have no information on the sidebar). Is this possible?
Hi,
There is a hacky way to eliminate the grey background of the sidebar. You can use this CSS rule:
.pagedjs_page:not(:first-of-type) {
background: white;
}
You can use the CSS chunk engine to insert this rule in your Rmd file:
---
title: "Lijia Yu's resume"
author: Lijia Yu
date: "`r Sys.Date()`"
output:
pagedown::html_resume:
self_contained: false
---
```{css, echo=FALSE}
.pagedjs_page:not(:first-of-type) {
background: white;
}
```
Aside
================================================================================
{width=80%}
Is there a way to extend the text on the 2nd page (without the sidebar) so that the text fits the width of the page? Without the gray bar the text looks squished

Using @RLesur's approach, I included this on my .css file, and it did the trick.
.pagedjs_page:not(:first-of-type) {
--sidebar-width: 0rem;
--sidebar-background-color: #ffffff;
--main-width: calc(var(--content-width) - var(--sidebar-width));
--decorator-horizontal-margin: 0.2in;
}
Works great, thanks!
Most helpful comment
Using @RLesur's approach, I included this on my .css file, and it did the trick.