Created
August 17, 2016 20:31
-
-
Save alexsingleton/a1dc474cc9e050ec96dc65848a659406 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.