Pagedown: How can I eliminate the sidebar for page 2 onwards in the resume template? (no information after page 1)

Created on 24 Oct 2019  路  4Comments  路  Source: rstudio/pagedown

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?

Most helpful comment

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;
}

All 4 comments

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
================================================================================


![Lijia Yu](https://avatars1.githubusercontent.com/u/895125?s=400&v=4){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

Screen Shot 2019-11-10 at 5 08 04 PM

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!

Was this page helpful?
0 / 5 - 0 ratings