Skip to content

Commit

Permalink
More work on randomAvatars
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-r-bigelow committed Feb 23, 2024
1 parent 8cf860c commit 069bd5f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
}
}
}
' > _site/static/json/people.json
' > _site/_data/people.json
env:
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_READER }}

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ node_modules/
.vscode/
*git/
.env
src/static/json/people.json
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ TODO: Alpine, Tailwind stuff

TODO: `build.yml`

Be advised that `src/_data/people.json` in your local respository is just an example file, that will be overwritten by the latest ResBazAZ teams on Github—so to update who is shown, and what teams are shown, you should edit the Github teams, not the JSON file.

### Reconfiguring the site's infrastructure

TODO: `.eleventy.js`
2 changes: 2 additions & 0 deletions src/_includes/partials/randomAvatars.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div>
<div data-team="{{ teamName }}" class="randomAvatars"></div>

<script type="application/javascript">
const teamName = '{{ teamName }}';
console.log(teamName);
const container = document.querySelector(`[data-team="${teamName}"]`);
// TODO: should probably put people.json into src/_data and pre-load the data instead of using fetch
// AND generate people.json on local build, not just github; see also: https://www.11ty.dev/docs/quicktips/eliminate-js/
Expand Down
5 changes: 4 additions & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _(Optionally) RSVP for our events at Meetup: [Our MeetUp](https://www.meetup.com
**What**: Whether you're debugging code or need ideas for how to introduce programming into your research, Coffee and Code is a great place to receive help and share knowledge! No specific problem? No worries -- join us at Coffee and Code to chit chat with other researchers in the morning. Coffee and Code is the best way to start your Wednesday!

**Who you're likely to see**:
{% include "./partials/randomAvatars.html", teamName: "Governance Task Force" %}
{% include "./partials/randomAvatars.html", teamName: "Coffee and Code" %}

</div>
</div>
Expand All @@ -60,6 +60,9 @@ _(Optionally) RSVP for our events at Meetup: [Our MeetUp](https://www.meetup.com

**What**: Hacking + Happy Hour = HackyHour! Every week, researchers, data scientists, and programmers around campus get together. Some people bring their programming problems to get help from those with more experience. Those without projects come to discuss their research, brainstorm new ideas, try out new technologies, or chit chat about data science!

**Who you're likely to see**:
{% include "./partials/randomAvatars.html", teamName: "Hacky Hour" %}

</div>

<div class="side-image">
Expand Down

0 comments on commit 069bd5f

Please sign in to comment.