Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing div.date to allow for hyperlinked image #312

Open
alapo opened this issue Apr 24, 2023 · 0 comments
Open

Editing div.date to allow for hyperlinked image #312

alapo opened this issue Apr 24, 2023 · 0 comments

Comments

@alapo
Copy link

alapo commented Apr 24, 2023

I am trying to edit the pagedown resume template to allow for a clickable PDF icon that brings the user to a PDF of a published article. I am able to accomplish this using the following code

CV$pubs %<>% # trying to add the PDF icon below the year
  dplyr::mutate(
    PDF = case_when(
        # If there is a PDF link present
    is.na(PDF) == FALSE ~ paste0("[![PDF](raw/pdf-icon.svg){width=3%}](", PDF, ")"),
    # If there isnt don't paste anything
    is.na(PDF) == TRUE ~ " "
  ))
  
  glue_template_pubs <- "
### {Title}

{Authors} \n  *{Journal}*. \n {DOI}. {PDF}

N/A

{Year}

\n\n\n"

This results in a small PDF icon being placed at the end of article text.

My Remote Image

My question is how can I modify the div.date css code in order for this figure to show up below the year. An example is shown below

My Remote Image
pdf-icon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant