This article will start from scratch to display your resume pdf file on the GitHub Pages site. We can split the approach into 3 main steps. The third step is optional and will go through how to update DNS, enable HTTPS, verify the custom domain, and use a custom domain for GitHub Pages. The codes and files for this article are available at this GitHub Repo.
DOCTYPE html> html lang="en"> head> meta http-equiv="content-type" content="text/html; charset=utf-8"> meta http-equiv="X-UA-Compatible" content="IE=edge"> meta name="viewport" content="width=device-width, initial-scale=1.0"> title>Resume - Chin-Ho Lintitle> style type="text/css"> * border:0; margin:0; > style> head> body> div style="height: 100vh;"> iframe src="https://tainvecs.github.io/chinholin/about/resume.pdf" width="100%" height="100%">iframe> div> body> html>
In this article, I will use chinholin.com as the custom domain. If you are using a subdomain blog.example.com , you can reference the instruction here Configuring a subdomain.
Note: DNS changes can take up to 24 hours to propagate.
dig chinholin.com +noall +answer -t A
; > DiG 9.10.6 > chinholin.com +noall +answer -t A ;; global options: +cmd chinholin.com. 3600 IN A 185.199.109.153 chinholin.com. 3600 IN A 185.199.111.153 chinholin.com. 3600 IN A 185.199.108.153 chinholin.com. 3600 IN A 185.199.110.153
dig [www.chinholin.com](http://www.chinholin.com/) +nostats +nocomments +nocmd
; > DiG 9.10.6 > www.chinholin.com +nostats +nocomments +nocmd ;; global options: +cmd ;www.chinholin.com. IN A www.chinholin.com. 3600 IN CNAME tainvecs.github.io. tainvecs.github.io. 3600 IN A 185.199.109.153 tainvecs.github.io. 3600 IN A 185.199.111.153 tainvecs.github.io. 3600 IN A 185.199.110.153 tainvecs.github.io. 3600 IN A 185.199.108.153
Verifying your domain stops other GitHub users from taking over your custom domain and using it to publish their own GitHub Pages site.