Pagedown: html_resume issues with months

Created on 20 Jan 2019  路  4Comments  路  Source: rstudio/pagedown

Thank you very much for this fantastic package!

Using Chrome and your skeleton, there is a bug with the line when adding months.
html_resume_issue1

I tried with Month abbreviations. But sadly the date doesn't render on a single line and it doesn't look good on my own resume.
html_resume_issue2

Would it be possible to fix these issues? Or how can I add months on my resume?

All 4 comments

@lgnbhl Glad you like pagedown!
As a hotfix, I can propose you to add the following CSS rules to your Rmd file:

---
title: "Lijia Yu's resume"
author: Lijia Yu
date: "`r Sys.Date()`"
output:
  pagedown::html_resume:
    # set it to true for a self-contained HTML page but it'll take longer to render
    self_contained: false
---

```{css, echo=FALSE}
.date {
  --decorator-horizontal-margin: 0.1in;
  max-width: var(--date-block-width);
}
.date span {
  text-align: center;
}
.date span:nth-child(2)::before {
  right: 0;
}
```

Aside
================================================================================


![Lijia Yu](https://avatars1.githubusercontent.com/u/895125?s=400&v=4){width=80%}

...

Here's a screenshot I got with these rules.
capture du 2019-01-20 09-09-04

Since this is a hotfix I've done quickly, I'ld prefer that you take some time to test it.
Tell us if this is OK for you.

It works perfectly. Thank you!

@yihui I wonder whether we should modify resume.css for this.

I think we should.

Was this page helpful?
0 / 5 - 0 ratings