Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Reis Santos (AZURE) authored and Rodrigo Reis Santos (AZURE) committed Apr 6, 2024
1 parent ec75fee commit 4896d9e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Recommendation List
-->

<!-- Get resouce type and category from page path -->
<!-- Get resource type and category from page path -->
{{ $pageDir := path.Dir $.Page.File.Path }} {{ $parentDir := path.Dir $pageDir}}
{{ $category := path.BaseName $parentDir }} {{ $type := path.BaseName $pageDir
}} {{ with (index (index $.Site.Data $category) $type) }}
Expand All @@ -15,6 +15,7 @@ <h2>Summary</h2>
<th>Impact</th>
<th>Category</th>
<th>Automation Available</th>
<th>PG Verified</th>
</tr>
<!-- Loop through recommendations under category/type -->
{{ range sort .recommendations "recommendation" "asc" }} {{ if and (eq
Expand All @@ -27,6 +28,7 @@ <h2>Summary</h2>
<td>{{ .recommendationImpact }}</td>
<td>{{ .recommendationControl }}</td>
<td>{{ if eq .automationAvailable "arg" }}Yes{{ else }}No{{ end }}</td>
<td>{{ .pgVerified }}</td>
</tr>
{{ end }} {{ end }}
</table>
Expand All @@ -50,6 +52,10 @@ <h4>
<span style="font-weight: bold">Category:</span>&nbsp;
<span style="font-weight: normal">{{ .recommendationControl }}</span>
<span style="margin-right: 40px"></span>
<br>
<span style="font-weight: bold">PG Verified:</span>&nbsp;
<span style="font-weight: normal">{{ .pgVerified }}</span>
<span style="margin-right: 40px"></span>
<span style="font-weight: bold">ResourceType:</span>&nbsp;
<span style="font-weight: normal">{{ .recommendationResourceType }}</span>
<span style="margin-right: 40px"></span>
Expand Down

0 comments on commit 4896d9e

Please sign in to comment.