See workshop.pdf for the presentation
Having a personal website makes you stand out in the sea of other online applications. It’s a way to introduce yourself and control your image to employers online. It’s a convenient way to host a blog, your résumé, and a portfolio.
GitHub Pages?
Hugo?
Our SASE Labs site was generated with Hugo and hosted on GitHub Pages.
Hugo
and Hugo/bin
folders in your C driveHugo/bin
folderhugo
or hugo.exe
C:\Hugo\bin\
to the Path
environment variablehugo
command in the Windows terminalhugo new site <your-site-name>
. This will create a directory called <your-sitename>
with subdirectories including content
, static
, and themes
.exampleSite
folder for guidance. Copy the link to the repository and run the command git clone https://github.com/<your-theme-repo-link> themes/<your-hugo-theme-name>
. This copies the repository into the themes
folder.config.toml
filehugo new <title>.md
creates a new page <title>.md
in the content
folder. It will autogenerate a Markdown front matter for you, including the date, title, and other details of the page.hugo serve
or hugo server
to run the webpage locally. Type ‘localhost:1313’ in the address bar to see your working version.Use this guide as a reference.
./deploy.sh
in the final step, you should run bash -c './deploy.sh'
insteadThis will host your site at <your-github-username>.github.io
. If you’d like yourself to stand out even more, you could purchase a domain name and use that name with GitHub Pages.
Toha is a Hugo theme for a portfolio site.
# the theme is a submodule which refers to another repository
git clone --recurse-submodules https:///github.com/hugo-toha/hugo-toha.github.io
# change directories to the code we just cloned
cd hugo-toha.github.io
# run the development build
hugo server -D
# now type localhost:1313 in your browser's address bar
data/
directory has the content for the main page while the content/
directory has the content for the blog posts. Edit and customize to your desire!<your-github-username>.github.io
# link the public/ subdirectory to the repo for your website
git submodule add -b main https://github.com/<USERNAME>/<USERNAME>.github.io.git public
# generate the public/ subdirectory
hugo
cd public
# log your changes to git
git add .
git commit -m ‘a helpful message about your website changes’
# push your local changes to GitHub
git push -u origin master
<your-github-username>.github.io
!