Skip to content

Commit

Permalink
Merge pull request #6 from osuosl/antoniagaete/fix_project_table_count
Browse files Browse the repository at this point in the history
Project table count updated automatically
  • Loading branch information
ramereth authored Oct 17, 2023
2 parents 550dad6 + 5d9ac9e commit c275340
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion content/services/current_AARCH64_projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
{{< project_table file="aarch64_open_source_projects" table_title="FOSS Projects" >}}
6 changes: 3 additions & 3 deletions content/services/current_POWERdev_projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
{{< project_table file="powerdev_gpu_projects" table_title="OpenPOWER GPU Projects" >}}
2 changes: 1 addition & 1 deletion content/services/former_AARCH64_projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
{{< project_table file="aarch64_former_open_source_projects" table_title="Former FOSS Projects" >}}
4 changes: 2 additions & 2 deletions content/services/former_POWERdev_projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
{{< project_table file="powerdev_former_partners" table_title="Former Academic Partners" >}}
26 changes: 13 additions & 13 deletions layouts/shortcodes/hosted_projects_table.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{{ if .IsNamedParams }}
<table class="hosted_projects_table">
<thead>
<th>Project</th>
<th>Services</th>
</thead>
<tbody>
{{ $data := index $.Site.Data $.Params.file }}
{{ range $data }}
<tr>
<td class="hosted_projects_table_name">{{ .name }}</td>
<td>{{ .description }}</td>
</tr>
{{ end }}
</tbody>
<thead>
<th>Project</th>
<th>Services</th>
</thead>
<tbody>
{{ $data := index $.Site.Data $.Params.file }}
{{ range $data }}
<tr>
<td class="hosted_projects_table_name">{{ .name }}</td>
<td>{{ .description }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{- end -}}
26 changes: 13 additions & 13 deletions layouts/shortcodes/project_table.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{{ if .IsNamedParams }}
<table class="projects_table">
<thead>
<th colspan="2">{{ .Params.table_title }} ({{ .Params.project_count }} projects)</th>
</thead>
<tbody>
{{ $data := index $.Site.Data $.Params.file }}
{{ range $data }}
<tr>
<td>{{ .name }}</td>
<td>{{ .description }}</td>
</tr>
{{ end }}
</tbody>
<thead>
<th colspan="2">{{ .Params.table_title }} ({{ len (index $.Site.Data .Params.file) }} projects)</th>
</thead>
<tbody>
{{ $data := index $.Site.Data .Params.file }}
{{ range $data }}
<tr>
<td>{{ .name }}</td>
<td>{{ .description }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{- end -}}
{{- end }}

0 comments on commit c275340

Please sign in to comment.