From 06bdc472945298a73ea0defcb403dd7fd2f2efd3 Mon Sep 17 00:00:00 2001 From: Christian Muise Date: Wed, 14 Oct 2020 21:24:16 -0400 Subject: [PATCH 1/5] Fixing member -vs- team --- layouts/partials/index/members.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/index/members.html b/layouts/partials/index/members.html index 7ef557b..f3781d4 100644 --- a/layouts/partials/index/members.html +++ b/layouts/partials/index/members.html @@ -1,13 +1,13 @@
- + - +
{{ range (sort (where .Site.RegularPages "Type" "member") ".Params.sort_position")}} @@ -16,15 +16,15 @@

- + Full team

-
\ No newline at end of file + From 34db3d2b0f944486e75fc5b8b83161c8ed79b4a2 Mon Sep 17 00:00:00 2001 From: Christian Muise Date: Thu, 15 Oct 2020 23:27:23 -0400 Subject: [PATCH 2/5] Organize vacancies by type. --- archetypes/vacancy.md | 1 + layouts/section/open-projects.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/archetypes/vacancy.md b/archetypes/vacancy.md index a073c22..591d3fc 100644 --- a/archetypes/vacancy.md +++ b/archetypes/vacancy.md @@ -2,5 +2,6 @@ description = "" external_link = "" vacancy_id = "" +type = "" featured = false +++ diff --git a/layouts/section/open-projects.html b/layouts/section/open-projects.html index 1016af2..5f4f3a5 100644 --- a/layouts/section/open-projects.html +++ b/layouts/section/open-projects.html @@ -6,7 +6,7 @@

Open projects

- {{ range .Data.Pages.GroupByDate "2006" }} + {{ range (.Data.Pages.GroupByParam "type").Reverse }}

{{ .Key }}

@@ -18,7 +18,7 @@

{{ .Key }}

{{ else if .Params.external_link }} {{ .Scratch.Set "link" .Params.external_link }} {{ end }} - +

{{ with .Params.description }} {{ . }} From 53a52e713643800eebb8c9d480ec472e2dee99ac Mon Sep 17 00:00:00 2001 From: Christian Muise Date: Thu, 15 Oct 2020 23:34:37 -0400 Subject: [PATCH 3/5] Avoiding overloaded term. --- archetypes/vacancy.md | 2 +- layouts/section/open-projects.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archetypes/vacancy.md b/archetypes/vacancy.md index 591d3fc..a744638 100644 --- a/archetypes/vacancy.md +++ b/archetypes/vacancy.md @@ -2,6 +2,6 @@ description = "" external_link = "" vacancy_id = "" -type = "" +vacancy_type = "" featured = false +++ diff --git a/layouts/section/open-projects.html b/layouts/section/open-projects.html index 5f4f3a5..446d7d0 100644 --- a/layouts/section/open-projects.html +++ b/layouts/section/open-projects.html @@ -6,7 +6,7 @@

Open projects

- {{ range (.Data.Pages.GroupByParam "type").Reverse }} + {{ range (.Data.Pages.GroupByParam "vacancy_type").Reverse }}

{{ .Key }}

From b7a34b68eada444334a04c58f0bee7ea34086e61 Mon Sep 17 00:00:00 2001 From: Christian Muise Date: Sun, 18 Oct 2020 20:43:57 -0400 Subject: [PATCH 4/5] Don't display interests and education if they aren't specified. --- layouts/member/single.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/member/single.html b/layouts/member/single.html index 31b26d5..f8e399f 100644 --- a/layouts/member/single.html +++ b/layouts/member/single.html @@ -55,6 +55,7 @@

{{ .role }}, {{.name}}

+ {{ if isset .Params "interests" }}

Interests

    @@ -63,9 +64,10 @@

    Interests

    {{ end }}
+ {{ end }} - + {{ if isset .Params "education" }}

Education

    @@ -80,6 +82,7 @@

    Education

    {{ end }}
+ {{ end }}
From e445d62e4995b677f3c084b7eed59c7f1bd9395b Mon Sep 17 00:00:00 2001 From: Christian Muise Date: Sun, 18 Oct 2020 23:34:04 -0400 Subject: [PATCH 5/5] Only display the featured openings on the main page, and display type. --- layouts/partials/index/open_projects.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/partials/index/open_projects.html b/layouts/partials/index/open_projects.html index d928d66..0308570 100644 --- a/layouts/partials/index/open_projects.html +++ b/layouts/partials/index/open_projects.html @@ -3,25 +3,25 @@
- +

{{ with .Site.Params.open_projects.title }}{{ . | markdownify }}{{ end }}

{{ with .Site.Params.open_projects.subtitle }}

{{ . | markdownify }}

{{ end }}
- +
- {{ range first .Site.Params.open_projects.count (where .Site.RegularPages "Type" "open-projects") }} + {{ range first .Site.Params.open_projects.count (where (where .Site.RegularPages "Type" "open-projects") ".Params.featured" "==" true) }}
{{ if .Content }} {{ .Scratch.Set "link" .Permalink}} {{ else if .Params.external_link }} {{ .Scratch.Set "link" .Params.external_link}} {{ end }} - +

- +

{{ with .Params.description }} @@ -36,7 +36,7 @@

Go to external website {{ end }} - + {{ if .Content }} {{ with .Site.Params.posts.str_read_more }}{{ . | markdownify }}{{ end }} @@ -47,7 +47,7 @@

{{ end }}

- +