-
Notifications
You must be signed in to change notification settings - Fork 0
Editing Website
These instructions are specific to editing the members page of the Voytek Lab website:
1. Make sure you have been added to the voytekresearch organization on GitHub
Ask Brad to add you if you are not currently a member of the organization
2. Get the repo onto your local device:
If this is your first time, clone it. Open a terminal, cd into wherever you keep your projects, and run:
git clone https://github.com/voytekresearch/voytekresearch.git
cd voytekresearch
If you already have a local copy, cd into it and pull the latest version so you are not editing an old file:
cd voytekresearch
git pull
3. Add your headshot:
Save your photo into voytekresearch/assets/images/members/
Use a square-ish image (it displays at 200×200) and a simple filename with no spaces — e.g. Liz.jpg.
4. Add your blurb to members.md:
Open voytekresearch/_pages/members.md in a text editor
Scroll to the bottom of the list of PhD Students
Copy the template below, paste it in under the last existing student, and fill in your details:
<div class="content">
<p class="member">
<span style="font-size: 20px; font-weight:bold">PhD Student</span><br>
<span>
First Last<br>
(<a href="mailto:yourusername@ucsd.edu">email</a> | <a href='https://github.com/yourusername/'>github</a>)<br>
<img src="{{'/assets/images/members/YourPhoto.jpg' | relative_url }}" width="200" height="200">
</span>
</p>
</div>
<div class="content">
<p style="text-align: justify; font-size: 16px">Your blurb goes here. Two to five sentences about your research interests, your background, and what brought you to the Voytek Lab.</p>
</div>
What to change:
- First Last → your name
- yourusername@ucsd.edu → your email
- https://github.com/yourusername/ → your GitHub profile
- YourPhoto.jpg → the exact filename you saved in step 3 (capitalization and extension must match)
- The blurb paragraph → your bio
Adding more links (optional): the links live inside the ( ... ) separated by |. Add or remove them following the same pattern. Common ones:
<a href="https://yourwebsite.com/">website</a>
<a href="https://scholar.google.com/citations?user=YOURID">scholar</a>
<a href="https://www.linkedin.com/in/yourhandle/">linkedin</a>
If you have no links at all, you can delete the entire (_<a ...>email</a> | ...)<br> line_ — see Blanca's and Trevor's entries for examples with no links.
5. Commit and push your changes:
git add _pages/members.md assets/images/members/YourPhoto.jpg
git commit -m "Add [Your Name] to members page"
git push
If you made a branch in step 2c, the first push will print a command to set the upstream — copy/paste and run it (git push --set-upstream origin add-yourname), then open a pull request on GitHub and merge it into main. Changes only go live once they're on main. If you committed directly to main, the plain git push is all you need.
Wait for the site to rebuild, then check your changes. The site is built by GitHub Pages, which automatically rebuilds every time main changes. You don't need to do anything to trigger it. The rebuild usually takes 1–3 minutes (occasionally up to ~10). You can watch it under the Actions tab of the voytekresearch repo — a green check means it finished.
Your entry should now appear. If the text shows but the photo is a broken-image icon, the src filename in your tag doesn't exactly match the file you added — double-check spelling, capitalization, and extension (.jpg vs .JPG vs .jpeg).