Github Websites and Quarto
Today, we learn how to make a website to showcase everything we have done.
Your website address will be username.github.io.
For this reason, you might want to give a bit of thought to what makes the most sense for a username.
It will be difficult to change the user name and how the website will look, once you have set it up.
Having of website is beneficial:
We now can create a Github account.
Github is a developer platform that allows developers to create, store, manage and share their code.
With Github, it easy to share code with the world.
It is also easy to have your Quarto website stored
Selecting the username is crucially important
Selecting the username is crucially important
This is the username. This will appear in username.github.io
Selecting the username is crucially important
This is the username. This will appear in username.github.io
In this case, it will be bgpopescu2. This will appear in bgpopescu2.github.io
Download GitHub Desktop and install it on your machine
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
After you have installed GitHub Desktop, sign in
In case this message appears, press “Not Now”
When getting this menu, chose “Clone”
When getting this menu, chose “Clone”
Choose the highlighted option
Choose the highlighted option
Choose the highlighted option
Choose the highlighted option
Choose the highlighted option
Change where you want to save the local website.
Please avoid “Documents”.
Choose either Dropbox or the Course Folder.
Change where you want to save the local website.
Please avoid “Documents”.
Choose either Dropbox or the Course Folder.
Change where you want to save the local website.
Please avoid “Documents”.
Choose either Dropbox or the Course Folder.
Notice how the path changed.
This is what “GitHub Desktop” looks like after making the changes.
Notice that you just created an empty folder on your computer.
We now move to creating the website. Open R Studio.
This is what the rendered website looks like locally (on your computer).
Close RStudio!!
We will now move everything we have just created to the empty folder that we cloned from Github.
Note that Quarto created the website somewhere in Documents
If you have touble finding it, just search for the folder.
In this case, I am searching for “bgpopescu2.github.io”
I simply select all the materials in the folder and drag and drop them in the “bgpopescu2.github.io” cloned folder
So, I select the files
And I then drag and drop them into the empty folder created by GitHub
And I then drag and drop them into the empty folder created by GitHub.
This is what the folder should look like after I dragged and dropped them.
We then go back to GitHub Desktop.
These are all updates that we made.
We then go back to GitHub Desktop.
These are all updates that we made.
We now write a short description of what we did.
We now write a short description of what we did.
And we commit the changes.
And we commit the changes.
We then push the changes to GitHub.
We then push the changes to GitHub.
We can now go and check if the files were updated.
Go to github.com
We can now go and check if the files were updated.
Go to github.com
We can see that the directory has been updated with the quarto files
Go to settings.
Go to Pages.
Go to Pages.
Make the following changes.
Make the following changes.
Make the following changes.
Make the following changes.
Make the following changes.
Make the following changes.
Make the following changes.
Make the following changes.
After about 3 mins, we should see this page updated.
Feel free to keep refreshing the page until you see: “Your site is live at.”
After about 3 mins, we should see this page updated.
Feel free to keep refreshing the page until you see: “Your site is live at.”
After about 3 mins, we should see this page updated.
Feel free to keep refreshing the page until you see: “Your site is live at.”
Our website is now live!
We can now go back and do some website improvements.
We now need to add a .nojekyll file to the root of our repository
This tells GitHub Pages not to do additional processing of your published site using Jekyll
Mac
Windows
It may take up to 5 minutes to see changes on the actual website
After that time has elapsed, you can check the updated website
You can easily create additional sections on your website
Let us create a new qmd file
We can easily remove categories by deleting the relevant .qmd
file
We then need to to update .yaml
file
Let us now get back to the portfolio
Let us update the text
You can create your html files externally (i.e. in other folders)
You can then add them to your folder on your website and link to them
We will now work on getting a more professional-lokking home page
The following index.qmd
will change from:
---
title: "Bogdan G. Popescu"
---
Hi! I am Data Analyst, recent graduate from XX University. I have a passion for public policy and data analytics. With a solid background in R programming, data analysis, visualization, and Geographic Information Systems (GIS), I’m ready to tackle the complex challenges at the intersection of data and public policy. On this website, you’ll find a showcase of my projects, demonstrating my ability to analyze societal issues, visualize data trends, and propose actionable recommendations for policy improvements. Click on relevant categories to see these projects.
You can also check out my CV.
We will now work on getting a more professional-lokking home page
We change the entire qmd file to:
---
title: "Bogdan G. Popescu"
image: images/popescu_photo.jpg
about:
template: trestles
image-width: 5cm
image-shape: round
links:
- icon: twitter
href: https://twitter.com/BogdanGPopescu1
- icon: github
href: https://github.com/bgpopescu
- icon: linkedin
href: https://www.linkedin.com/in/bogdanpopescu/
---
Hi! I am Data Analyst, recent graduate from XX University. I have a passion for public policy and data analytics. With a solid background in R programming, data analysis, visualization, and Geographic Information Systems (GIS), I’m ready to tackle the complex challenges at the intersection of data and public policy. On this website, you’ll find a showcase of my projects, demonstrating my ability to analyze societal issues, visualize data trends, and propose actionable recommendations for policy improvements. Click on relevant categories to see these projects.
You can also check out my <a href="/cv/bogdan-popescu-cv.pdf" target="_blank">CV</a>.
To get this to work, you need to create two folders
images
cv
As you may guess, each one of these folders should have items inside
The images folder should have a picture of you: this is popescu_photo.jpg
in my case
As you may guess, each one of these folders should have items inside
The cv folder should have your cv in pdf: this is bogdan-popescu-cv
in my case
Once you have done so, you should go back to the index and update your relevant links
So update your Twitter, Linkedin, and Github.
Of course, there is not need to have all of them
Then render the qmd file
The output will look like below
You can play around with different templates.
Here I use: template: trestles
---
title: "Bogdan G. Popescu"
image: images/popescu_photo.jpg
about:
template: trestles
image-width: 5cm
image-shape: round
links:
- icon: twitter
href: https://twitter.com/BogdanGPopescu1
- icon: github
href: https://github.com/bgpopescu
- icon: linkedin
href: https://www.linkedin.com/in/bogdanpopescu/
---
Hi! I am Data Analyst, recent graduate from XX University. I have a passion for public policy and data analytics. With a solid background in R programming, data analysis, visualization, and Geographic Information Systems (GIS), I’m ready to tackle the complex challenges at the intersection of data and public policy. On this website, you’ll find a showcase of my projects, demonstrating my ability to analyze societal issues, visualize data trends, and propose actionable recommendations for policy improvements. Click on relevant categories to see these projects.
You can also check out my <a href="/cv/bogdan-popescu-cv.pdf" target="_blank">CV</a>.
You can play around with different templates.
Here I use: template: trestles
Other options are:
Go to https://quarto.org/docs/websites/website-about.html to see what they look like
Let us do one final step and get rid of the bgpopescu2.github.io
We can do this by changing the yaml
file
Let us do one final step and get rid of the bgpopescu2.github.io
We can do this by changing the yaml
file
This is the final version
This is the final version
This is the final version
Rerender also the portfolio.qmd file in order to avoid bgpopescu2.github.io
being displayed there
Rerender also the portfolio.qmd file in order to avoid bgpopescu2.github.io
being displayed there
Rerender also the portfolio.qmd file in order to avoid bgpopescu2.github.io
being displayed there
We are now ready to commit and push everything to Github
If you open GitHub Desktop, it automatically sees all the changes we have made
Congratulations!
You have created the skeleton of your first website.
There are a variety of templates, changes, edits that you can make.
You can find below two Youtube Videos that I found helpful in creating this tutorial:
Popescu (JCU): Github Websites and Quarto