diff --git a/.github/ISSUE_TEMPLATE/project.yml b/.github/ISSUE_TEMPLATE/project.yml index 2d7c60788..34bfd4d0a 100644 --- a/.github/ISSUE_TEMPLATE/project.yml +++ b/.github/ISSUE_TEMPLATE/project.yml @@ -43,16 +43,6 @@ body: value: | _If you are unable to find a category that is suitable for your project, or believe that a specific category is missing, please discuss it with the organizers._ -- type: dropdown - attributes: - label: Presenter Location - description: Select whether the presenter will be In-person or Online. - options: - - In-person - - Online - validations: - required: true - - type: textarea attributes: label: Key Investigators diff --git a/.github/workflows/project-page-pull-request.yml b/.github/workflows/project-page-pull-request.yml index ae168722b..f308d5f15 100644 --- a/.github/workflows/project-page-pull-request.yml +++ b/.github/workflows/project-page-pull-request.yml @@ -168,7 +168,6 @@ jobs: --rawfile background "${{ runner.temp }}/background.md" '{ "title": $title, "category": .category.text, - "presenter_location": .["presenter-location"].text, "description": $description, "objective": $objective, "approach": $approach, diff --git a/PW42_2025_GranCanaria/Projects/Template/README.md b/PW42_2025_GranCanaria/Projects/Template/README.md index 2e95407cd..78ac1061b 100644 --- a/PW42_2025_GranCanaria/Projects/Template/README.md +++ b/PW42_2025_GranCanaria/Projects/Template/README.md @@ -5,7 +5,6 @@ permalink: /:path/ project_title: Write full project title here category: Uncategorized -presenter_location: Online key_investigators: - name: Person Doe diff --git a/PW42_2025_GranCanaria/Projects/Template/README.md.j2 b/PW42_2025_GranCanaria/Projects/Template/README.md.j2 index 237161b40..e8c82efbc 100644 --- a/PW42_2025_GranCanaria/Projects/Template/README.md.j2 +++ b/PW42_2025_GranCanaria/Projects/Template/README.md.j2 @@ -5,7 +5,6 @@ permalink: /:path/ project_title: {{ title | to_yaml | regex_replace("\n$|\n\.\.\.\n$", "") }} category: {{ category | regex_replace("\n$|\n\.\.\.\n$", "") }} -presenter_location: {{ presenter_location | regex_replace("\n$|\n\.\.\.\n$", "") }} key_investigators: {% for investigator in investigators %} diff --git a/PW42_2025_GranCanaria/README.md b/PW42_2025_GranCanaria/README.md index bcbd3ac43..48ffcab85 100644 --- a/PW42_2025_GranCanaria/README.md +++ b/PW42_2025_GranCanaria/README.md @@ -71,7 +71,7 @@ The **Discord** application is used to communicate between team members and orga To learn how to create or update project pages, please refer to the [contributing project pages](ContributingProjectPages.md) section. -{% include projects.md %} +{% include projects_noloc.md %} ## Registrants diff --git a/_includes/project_generate_category_noloc.md b/_includes/project_generate_category_noloc.md new file mode 100644 index 000000000..bbb398515 --- /dev/null +++ b/_includes/project_generate_category_noloc.md @@ -0,0 +1,78 @@ + + +{% for pw_page in site.pages %} + + {% comment %}Extract page event name (e.g "PW39_2023_Montreal"){% endcomment %} + {% assign pw_page_event_name = pw_page.path | split: '/' | first %} + + {% comment %}Only process page associated with the current event.{% endcomment %} + {% if pw_page_event_name != event_name %} + {% continue %} + {% endif %} + + {% comment %}Extract page event type (e.g "Projects").{% endcomment %} + {% assign pw_page_type = pw_page.path | split: '/' | slice: 1 | first %} + + {% comment %}Only process pages located in the "Projects" directory.{% endcomment %} + {% if pw_page_type != "Projects" %} + {% continue %} + {% endif %} + + {% comment %}Extract page project name (e.g "SlicerVRInteraction").{% endcomment %} + {% assign project_name = pw_page.path | split: '/' | slice: 2 | first | downcase %} + + {% comment %}Ignore "Template" and "README.md" file.{% endcomment %} + {% if project_name == "template" or project_name == "readme.md" %} + {% continue %} + {% endif %} + + {% assign pw_page_category = pw_page.category | default:"Uncategorized" %} + + {% comment %}Force all non-matching projects to Uncategorized.{% endcomment %} + {% unless page.project_categories contains pw_page_category %} + {% assign pw_page_category = "Uncategorized" %} + {% endunless %} + + {% if pw_page_category != requested_category %} + {% continue %} + {% endif %} + + {% assign project_count = project_count | plus: 1 %} + + {% if page.project_categories contains pw_page_category %} + + {% comment %}If if applies, add catergory header.{% endcomment %} + {% unless categories contains pw_page_category %} +{% capture categories %} +{{ categories }} +### {{ pw_page_category }} +{% endcapture %} + {% endunless %} + + {% comment %}Append category entry.{% endcomment %} +{% capture categories %} +{{ categories }} +1. [{{ pw_page.project_title }}]({{ pw_page.url }}) ( +{%- for investigator in pw_page.key_investigators -%} + {{ investigator.name }}{% unless forloop.last %}, {% endunless -%} +{%- endfor -%} +) +{% endcapture %} + + {% else %} + +{% capture uncategorized %} +{{ uncategorized }} +1. [{{ pw_page.project_title }}]({{ pw_page.url }}) ( +{%- for investigator in pw_page.key_investigators -%} + {{ investigator.name }}{% unless forloop.last %}, {% endunless -%} +{%- endfor -%} +) (Category: {{pw_page.category}}) +{% endcapture %} + + {% endif %} +{% endfor %} diff --git a/_includes/projects_noloc.md b/_includes/projects_noloc.md new file mode 100644 index 000000000..1af13bf61 --- /dev/null +++ b/_includes/projects_noloc.md @@ -0,0 +1,27 @@ + + +{% comment %}Extract event name (e.g "PW39_2023_Montreal"). {% endcomment %} +{% assign event_name = page.path | split: '/' | first %} + +{% assign project_count = 0 %} +{% assign categories = "" %} +{% assign uncategorized = "" %} + +{% for requested_category in page.project_categories %} +{% include project_generate_category_noloc.md %} +{% endfor %} + +{% assign requested_category = "Uncategorized" %} +{% include project_generate_category.md %} + +_The {{ event_name }} event has a total of {{ project_count }} projects._ + +{{ categories }} + +### Uncategorized + +_This section lists projects that either have no category assigned, are assigned to the "Uncategorized" category, or are assigned to a different category than the ones listed above. If you are unable to find a category that is suitable for your project, or believe that a specific category is missing, please discuss it with the [organizers](#organizers)._ + +{{ uncategorized }} + +