Editing the site
Editing the site
How to update apaudelx.github.io. The home page is one page built from a few plain text files. Change a file, push it to GitHub, and the site updates itself about a minute or two later.
Where things live
| To change… | Edit this file |
|---|---|
| Bio, role line, contact text | _pages/v8.md. The bio is the text below the --- header. Everything after <!--more--> hides behind “Read more”. |
| Projects | _data/projects.yml. Images go in images/projects/. |
| Work experience and education | _data/experience.yml. Logos go in images/orgs/. |
| Publications | _data/publications.yml |
| Certifications | _data/certifications.yml |
| Resume | Replace files/Resume.pdf with a file of the same name. |
| Headshot | images/headshot.jpg and images/headshot.webp |
| Name, email, GitHub, LinkedIn | The author: section of _config.yml |
| Colors and fonts | assets/css/v8.css. The colors are at the top. |
| Page structure | _layouts/home-v8.html (HTML). Interactions are in assets/js/v8.js. |
Each .yml file has short notes at the top explaining its fields. To add something (a project, a job, a certification), copy an existing entry and edit it.
YAML tips
- Indent with spaces, never tabs, and keep the same indentation as the entries around it.
- Put quotes around text that contains a colon or starts with a special character, for example
caption: "Top: …". - If the site stops updating after a push, a YAML mistake is the most likely cause. See “If something goes wrong” below.
Images
- Prefer
.webp(or.jpg) around 1,500–2,000 px wide. Every project image is shown in the same 16:10 frame, so images close to that shape fill it best. - In
projects.yml, setimage_width/image_height(orwidth/heightin a gallery) to the image’s real pixel size, and write a shortaltdescription.
Preview on your computer (optional)
RBENV_VERSION=3.1.4 bundle exec jekyll serve
Open http://localhost:4000. The preview refreshes when you save a file. After changing _config.yml, stop it with Ctrl+C and start it again.
Publish
git add _data/projects.yml # list the files you changed
git commit -m "Update projects"
git push
Wait a minute or two, then hard-refresh the site (Cmd+Shift+R).
Avoid git add . / git add -A while local drafts (v1–v7, /versions/) and .DS_Store files are in the folder, or they will be published too.
Quick edits without your computer
On github.com, open the file, click the pencil icon, make the change and click Commit changes. It publishes the same way.
If something goes wrong
- The site didn’t update: open the repository’s Actions tab on GitHub. A failed “pages build and deployment” run shows which file broke the build (usually a YAML indentation or quoting mistake).
- To undo the last published change: run
git revert HEADand thengit push.
