From 5d9ac9ee4ad36f262434dc121f5f2134fbfd805e Mon Sep 17 00:00:00 2001 From: Antonia Gaete Date: Tue, 17 Oct 2023 11:41:17 -0700 Subject: [PATCH] Project table count updated automatically --- content/services/current_AARCH64_projects.md | 2 +- content/services/current_POWERdev_projects.md | 6 ++--- content/services/former_AARCH64_projects.md | 2 +- content/services/former_POWERdev_projects.md | 4 +-- layouts/shortcodes/hosted_projects_table.html | 26 +++++++++---------- layouts/shortcodes/project_table.html | 26 +++++++++---------- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/content/services/current_AARCH64_projects.md b/content/services/current_AARCH64_projects.md index 149b87a..35088bd 100644 --- a/content/services/current_AARCH64_projects.md +++ b/content/services/current_AARCH64_projects.md @@ -8,4 +8,4 @@ Below are a list of currently hosted AARCH64 projects [FOSS Projects](#foss-projects) ### FOSS Projects {#foss-projects} -{{< project_table file="aarch64_open_source_projects" table_title="FOSS Projects" project_count="34" >}} \ No newline at end of file +{{< project_table file="aarch64_open_source_projects" table_title="FOSS Projects" >}} \ No newline at end of file diff --git a/content/services/current_POWERdev_projects.md b/content/services/current_POWERdev_projects.md index f92e350..41cf9ae 100644 --- a/content/services/current_POWERdev_projects.md +++ b/content/services/current_POWERdev_projects.md @@ -13,10 +13,10 @@ Below are a list of currently hosted OpenPOWER projects and our OpenPOWER academ ### FOSS Projects {#foss-projects} -{{< project_table file="powerdev_open_source_projects" table_title="FOSS Projects" project_count="132" >}} +{{< project_table file="powerdev_open_source_projects" table_title="FOSS Projects" >}} ### Academic Partners {#academic-partners} -{{< project_table file="powerdev_academic_partners" table_title="Academic Partners" project_count="11" >}} +{{< project_table file="powerdev_academic_partners" table_title="Academic Partners" >}} ### OpenPOWER GPU Projects {#openpower-gpu-projects} -{{< project_table file="powerdev_gpu_projects" table_title="OpenPOWER GPU Projects" project_count="33" >}} \ No newline at end of file +{{< project_table file="powerdev_gpu_projects" table_title="OpenPOWER GPU Projects" >}} \ No newline at end of file diff --git a/content/services/former_AARCH64_projects.md b/content/services/former_AARCH64_projects.md index 5543e5e..dd7d279 100644 --- a/content/services/former_AARCH64_projects.md +++ b/content/services/former_AARCH64_projects.md @@ -5,4 +5,4 @@ slug: /aarch64/former-projects Below are a list of formerly hosted AARCH64 projects -{{< project_table file="aarch64_former_open_source_projects" table_title="Former FOSS Projects" project_count="2" >}} \ No newline at end of file +{{< project_table file="aarch64_former_open_source_projects" table_title="Former FOSS Projects" >}} \ No newline at end of file diff --git a/content/services/former_POWERdev_projects.md b/content/services/former_POWERdev_projects.md index ee6561c..e521123 100644 --- a/content/services/former_POWERdev_projects.md +++ b/content/services/former_POWERdev_projects.md @@ -10,7 +10,7 @@ Below are a list of projects formerly hosted on the OpenPOWER infrastructure at [Former Academic Partners](#former-academic-partners) ### Former FOSS Projects {#former-foss-projects} -{{< project_table file="powerdev_former_open_source_projects" table_title="Former FOSS Projects" project_count="42" >}} +{{< project_table file="powerdev_former_open_source_projects" table_title="Former FOSS Projects" >}} ### Former Academic Partners {#former-academic-partners} -{{< project_table file="powerdev_former_partners" table_title="Former Academic Partners" project_count="2" >}} \ No newline at end of file +{{< project_table file="powerdev_former_partners" table_title="Former Academic Partners" >}} \ No newline at end of file diff --git a/layouts/shortcodes/hosted_projects_table.html b/layouts/shortcodes/hosted_projects_table.html index b5881cd..c6915c5 100644 --- a/layouts/shortcodes/hosted_projects_table.html +++ b/layouts/shortcodes/hosted_projects_table.html @@ -1,17 +1,17 @@ {{ if .IsNamedParams }} - - - - - - {{ $data := index $.Site.Data $.Params.file }} - {{ range $data }} - - - - - {{ end }} - + + + + + + {{ $data := index $.Site.Data $.Params.file }} + {{ range $data }} + + + + + {{ end }} +
ProjectServices
{{ .name }}{{ .description }}
ProjectServices
{{ .name }}{{ .description }}
{{- end -}} \ No newline at end of file diff --git a/layouts/shortcodes/project_table.html b/layouts/shortcodes/project_table.html index 3f5ecd1..ba7f9f1 100644 --- a/layouts/shortcodes/project_table.html +++ b/layouts/shortcodes/project_table.html @@ -1,16 +1,16 @@ {{ if .IsNamedParams }} - - - - - {{ $data := index $.Site.Data $.Params.file }} - {{ range $data }} - - - - - {{ end }} - + + + + + {{ $data := index $.Site.Data .Params.file }} + {{ range $data }} + + + + + {{ end }} +
{{ .Params.table_title }} ({{ .Params.project_count }} projects)
{{ .name }}{{ .description }}
{{ .Params.table_title }} ({{ len (index $.Site.Data .Params.file) }} projects)
{{ .name }}{{ .description }}
-{{- end -}} \ No newline at end of file +{{- end }} \ No newline at end of file