![]() If you want to use a different image for your social media links, make sure to upload that image to your site in the root directory. The meta_social() function contains all the necessary customizations for how you want your link to appear on social media. I’ve customized the image and the text that is shared in the link. For example, look how my site appears when I share it here. If we add social media metadata to index.html we can customize the way that the link to our site appears when shared. Often we will want to share the link to our website on social media. Optional recipe: Add Social Media Metadata Now, whenever you make changes to your website, commit and push, a few minutes later those changes should take effect at your new website address.It may take a few minutes for the site to go live, but you should eventually get a green box giving you your new website address.Select Master branch and root directory, then save.With your website files pushed to Github, go back to your Github repo and select Settings and then Pages.saving you the hassle of having to managing a different hosting platform. This means that whenever you change it and push those changes, the website will automatically update. We are going to host the website on Github. When you are done, commit your new files and push them to the github repo.If you’d like to try another design, just change the name in the output field to another postcards format like postcards::trestles or something. This will create the webpage and save it as index.html. When you are done, save the file as index.Rmd (make sure this is in the root directory of the project) and proceed to knit it.If you have a lot of onward links then I would recommend keeping it to a simple bio like mine. You can even code in raw HTML if you want to in this section. You can use standard RMarkdown format here including headers using # or # or # or you can include bullet points or links to other resources or photos. In the text at the bottom you can write whatever you want to tell people about you. ![]() The label field will be what is displayed in the link box and the url field will be the onward click address. You can basically put as many links onwards as you want. Now you need to just make the required edits to your name, your photo file, and any links you want to provide onwards from your profile.You’ll see the following in the template file that pops up: You can always change later if you want to. Select one of the postcards templates that pop up as options. Start a new R Markdown document from a Template (New File > R Markdown > From Template).If you have not, install them now and restart R. Make sure you have installed the RMarkdown and postcards package.Add a photo of you which you’d like to use in your website to the project (jpg or png formats are just fine).Start a new project in RStudio from this github repo (New project > Version Control). ![]() Create a new public github repo for your website.It’s a fairly simple process really and you should be able to do it all really quickly if you follow this recipe. An AWS account if you want to buy and use a personal web domain.The RMarkdown, postcards and metathis R packages installed. ![]() I’ve also added some optional extra instructions in case you use your own personal web domain that you’d like to use to host your site (eg like mine at ), and if you’d like to add social media metadata so that links to your site on social media have a professional appearance.īefore I start, you can see all of the code from my website on its github repo here, so you may wish to just fork this as a starting point. Here are the ingredients and the recipe to follow. The good news is that you can do this in less than an hour and for free. It’s up to you how much you want to tell people about yourself. So your personal webpage just needs to provide a central point which links to these and just provides some basic information about who you are and what you do. ![]() We all have LinkedIn profiles, and some of us have other online presences like Medium blogs, YouTube videos or Twitter accounts. So I believe that every data scientist should have their own personal webpage that tells the world a little about themselves and their work. Increasingly, Data Scientists and other technical professionals are being recognised as much for their online presence and open source activities as they are for their career history. Example of my simple site created using R and the postcards package at ![]()
0 Comments
Leave a Reply. |