diff --git a/config/_default/menus.toml b/config/_default/menus.toml index 50da2cd6bfa27f5082ec22fae0d011b857afb0fb..5160bd35b31b5f9bac87cc41603500cd4b41c894 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.toml @@ -49,6 +49,11 @@ url = "#jobs" weight = 100 +[[main]] + name = "Participate" + url = "#participate" + weight = 100 + # Link to a PDF of your resume/CV from the menu. # To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below. # [[main]] diff --git a/content/participate/index.md b/content/participate/index.md new file mode 100644 index 0000000000000000000000000000000000000000..5bd2721062b8ede95e0ed4b3238c7fd07faeed66 --- /dev/null +++ b/content/participate/index.md @@ -0,0 +1,34 @@ +--- +title: "Participate in Our Projects" +summary: "Join our efforts in contributing to impactful projects" +date: "{{ .Date }}" + +image: + caption: "Join Us" + focal_point: "Center" + +# Participation Opportunities +participation_opportunities: + - project_name: "Project 1" + description: "Brief description of Project 1 and its goals" + how_to_participate: "Specific instructions or steps for participation" + - project_name: "Project 2" + description: "Brief description of Project 2 and its goals" + how_to_participate: "Steps for participation" + +# Contact Information for Participation +contact_info: "Email/Phone/Form link for participation inquiries" + +--- + +# Introduction to Participation +Here, write a brief introduction about the importance of participation, the impact of these projects, and an invitation to join. + +## Current Participation Opportunities +For each project listed in the metadata, provide detailed descriptions here. Explain what the project is about, the role of participants, and any specific skills or commitments required. + +## How to Get Involved +Detail the steps for getting involved. This could include filling out a form, sending an email, or other actions required from potential participants. + +## Contact Us +Provide detailed contact information or links to contact forms for further inquiries. diff --git a/layouts/participate/single.html b/layouts/participate/single.html new file mode 100644 index 0000000000000000000000000000000000000000..d4cfabd7cf5ee304583117eaa12a4dcffb1ee068 --- /dev/null +++ b/layouts/participate/single.html @@ -0,0 +1,82 @@ +{{- define "main" -}} + +<article class="article article-participate"> + + {{ partial "page_header.html" . }} + + <div class="article-container"> + <div class="article-style"> + {{ .Content }} + </div> + + {{ if .Params.participation_opportunities }} + <div class="participation-opportunities"> + <h2>Participation Opportunities</h2> + {{ range .Params.participation_opportunities }} + <div class="participation-opportunity"> + <h3>{{ .project_name }}</h3> + <p>{{ .description }}</p> + <p>How to participate: {{ .how_to_participate }}</p> + </div> + {{ end }} + </div> + {{ end }} + + {{ partial "page_footer" . }} + + <!-- Existing related pages section (if applicable) --> + <div class="project-related-pages content-widget-hr"> + {{ $page := . }} + {{ $project := .File.ContentBaseName }} + + {{ $items := where (where site.RegularPages "Type" "post") ".Params.projects" "intersect" (slice $project) }} + {{ $count := len $items }} + {{ if ge $count 1 }} + <h2>{{ (i18n "posts") }}</h2> + {{ range $items }} + {{ if eq site.Params.projects.post_view 1 }} + {{ partial "li_list" . }} + {{ else if eq site.Params.projects.post_view 3 }} + {{ partial "li_card" . }} + {{ else }} + {{ partial "li_compact" . }} + {{ end }} + {{ end }} + {{ end }} + + {{ $items := where (where site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }} + {{ $pubs_len := len $items }} + {{ if ge $pubs_len 1 }} + <h2>{{ (i18n "publications") }}</h2> + {{ range $items }} + {{ if eq site.Params.projects.publication_view 1 }} + {{ partial "li_list" . }} + {{ else if eq site.Params.projects.publication_view 3 }} + {{ partial "li_card" . }} + {{ else if eq site.Params.projects.publication_view 4 }} + {{ partial "li_citation" . }} + {{ else }} + {{ partial "li_compact" . }} + {{ end }} + {{ end }} + {{ end }} + + {{ $items := where (where site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }} + {{ $talks_len := len $items }} + {{ if ge $talks_len 1 }} + <h2>{{ (i18n "talks") }}</h2> + {{ range $items }} + {{ if eq site.Params.projects.talk_view 1 }} + {{ partial "li_list" . }} + {{ else if eq site.Params.projects.talk_view 3 }} + {{ partial "li_card" . }} + {{ else }} + {{ partial "li_compact" . }} + {{ end }} + {{ end }} + {{ end }} + </div> + </div> +</article> + +{{- end -}}