Skip to content

Commit

Permalink
fixed sort order on our team page, reorganised into 3 distinct groups…
Browse files Browse the repository at this point in the history
…(academics, phd students, alumni) to make it easier to edit later
  • Loading branch information
Michael-Stewart-Webdev committed Sep 5, 2024
1 parent 133ae26 commit 54a5be9
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 18 deletions.
24 changes: 16 additions & 8 deletions content/our-team.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,27 @@ eleventyNavigation:
order: 2
---

{% for group, items in collections.current_people | groupby("data.group") %}
<section>
<h2>{{ group }}</h2>
<div class="grid-2">
{% for item in items %}
{% include 'partials/person.njk' %}
{% endfor %}

<section>
<h2>Academics</h2>
<div class="grid-2">
{% for item in collections.people_academics | sortByOrder %}
{% include 'partials/person.njk' %}
{% endfor %}

<section>
<h2>PhD Students</h2>
<div class="grid-2">
{% for item in collections.people_phd_students | sortByOrder %}
{% include 'partials/person.njk' %}
{% endfor %}



<section>
<h2>Alumni</h2>
<div class="grid-2">
{% for item in collections.alumni_people %}
{% for item in collections.people_alumni | sortByOrder %}
{% include 'partials/person.njk' %}
{% endfor %}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
tags: ["current_people"],
tags: ["people_academics"],
permalink: false, // Don't generate pages for each person
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ uwa_profile: https://research-repository.uwa.edu.au/en/persons/eun-jung-holden
linkedin_profile: https://www.linkedin.com/in/eun-jung-holden-8233075a/?originalSubdomain=au
image_filename: eun-jung-holden.jpg
group: Academics
order: 5
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ uwa_profile: https://research-repository.uwa.edu.au/en/persons/melinda-hodkiewic
linkedin_profile: https://www.linkedin.com/in/melinda-hodkiewicz-b6bbba7
image_filename: melinda-hodkiewicz.jpg
group: Academics
order: 3
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ uwa_profile: https://research-repository.uwa.edu.au/en/persons/tim-french
linkedin_profile: https://www.linkedin.com/in/tim-french-3881208
image_filename: tim-french.jpg
group: Academics
order: 2
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ uwa_profile: https://research-repository.uwa.edu.au/en/persons/wei-liu
linkedin_profile: https://www.linkedin.com/in/wei-liu-b0b4521ab
image_filename: wei-liu.jpg
group: Academics
order: 1
---
2 changes: 1 addition & 1 deletion content/our-team/alumni/alumni.11tydata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
tags: ["alumni_people"],
tags: ["people_alumni"],
permalink: false, // Don't generate pages for each person
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ uwa_profile: https://research-repository.uwa.edu.au/en/persons/michael-stewart
linkedin_profile: https://www.linkedin.com/in/michael-stewart-80211a1a0
image_filename: michael-stewart.jpg
group: Academics
order: 1
---
1 change: 1 addition & 0 deletions content/our-team/alumni/sirui-li.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ uwa_profile: https://research-repository.uwa.edu.au/en/persons/sirui-li
linkedin_profile: https://www.linkedin.com/in/sirui-li-563715163
image_filename: sirui-li.jpg
group: Academics
order: 3
---
1 change: 1 addition & 0 deletions content/our-team/alumni/tom-smoker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ project_title: Rectifying knowledge graph link prediction using embedding-enhanc
linkedin_profile: https://www.linkedin.com/in/thomassmoker
image_filename: tom-smoker.jpg
group: PhD Students
order: 4
---
1 change: 1 addition & 0 deletions content/our-team/alumni/ziyu-zhao.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ project_title: An Efficient Neural Probabilistic Logical Resolution for Multi-cl
linkedin_profile: https://www.linkedin.com/in/ziyu-zhao-142b8916a/
image_filename: ziyu-zhao.jpg
group: PhD Students
order: 2
---
8 changes: 0 additions & 8 deletions content/our-team/current/naeha-sharif.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ website: https://caitlin2694.github.io/
linkedin_profile: https://www.linkedin.com/in/caitlin-woods
image_filename: caitlin-woods.jpg
group: PhD Students
order: 4
---
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ title: PhD Student
project_title: Query Embedding for Long Reasoning over Natural-Technical Domains
image_filename: chau-nguyen.jpg
group: PhD Students
order: 2
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ project_title: Representation Learning and Query Embeddings for Spatio-Temporal
linkedin_profile: https://www.linkedin.com/in/pascalsun23/
image_filename: pascal-sun.jpg
group: PhD Students
order: 1
---
4 changes: 4 additions & 0 deletions content/our-team/phd_students/phd_students.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
tags: ["people_phd_students"],
permalink: false, // Don't generate pages for each person
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ project_title: Technical Language Processing for Industrial Maintenance Records
linkedin_profile: https://www.linkedin.com/in/tyler-bikaun/
image_filename: tyler-bikaun.jpg
group: PhD Students
order: 3
---
12 changes: 12 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ module.exports = function (eleventyConfig) {
return "/" + value.split("/")[1] + "/";
});

eleventyConfig.addFilter("sortByOrder", (values) => {
return values.sort(function (a, b) {
let order_a = a.data.order || 999;
let order_b = b.data.order || 999;
return order_a - order_b;
});
});

// eleventyConfig.addCollection("people_academics", function (collectionApi) {
// return sortByOrder(collection.people_academics);
// });

// Parse a youtube link in the form e.g.
// https://www.youtube.com/watch?v=ZEKAzNNfeSc and return the embed link
eleventyConfig.addFilter("getYoutubeEmbedLink", (youtubeLink) => {
Expand Down

0 comments on commit 54a5be9

Please sign in to comment.