Skip to content

Instantly share code, notes, and snippets.

@alexsingleton
Created August 17, 2016 20:31
Show Gist options
  • Save alexsingleton/a1dc474cc9e050ec96dc65848a659406 to your computer and use it in GitHub Desktop.
Save alexsingleton/a1dc474cc9e050ec96dc65848a659406 to your computer and use it in GitHub Desktop.
#Inserts a download link to the PDF CV
conn<-file("./_site/cv.html")
text <- readLines(conn)
close(conn)
d_link <- "<li><i class='fa fa-download' aria-hidden='true'></i><a href='cv_Alex_Singleton.pdf'> Download CV (pdf)</a></li>"
text_new <- c(text[1:290],d_link,text[291:length(text)])
write(text_new, file = "./_site/cv.html")
@sanmath
Copy link

sanmath commented Feb 25, 2017

Could you explain me how to add a pdf link in my website? I am working in my personal website, and I want to add some pdf lecture notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment