Skip to content

Commit

Permalink
fix layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sean1588 committed Sep 27, 2024
1 parent cdb7add commit 2d3e98d
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions layouts/compliance/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,36 @@
</section>
{{ $frameworks := index .Site.Data.compliance "pages" }}
{{ range $framework := $frameworks.frameworks }}
{{ $pages := where $pagelist "Params.framework" $framework.framework }}

{{ if $pages }}
{{ range $pages }}
{{ if eq .Params.page_type "cloud" }}
<section class="mt-4 py-4 px-4 md:px-0">
<div class="container mx-auto max-w-4xl">
<h3><a class="hover:text-blue-600" href="{{ .Permalink }}">{{ $framework.framework }} Compliance for {{ .Params.cloud
}}</a>
</h3>
<p>
{{ .Params.description }}
</p>
<p>Learn more about how Pulumi can help your AWS services to meet {{ $framework.framework }} compliance:</p>
<div class="flex flex-row flex-wrap">
{{ else }}
<div class="w-1/3 mx-2 my-2 p-0">
<div class="rounded border p-4 border-gray-300 shadow-sm flex items-center gap-3">
<i class="far fa-arrow-alt-circle-right w-4 text-gray-700"></i>
<a href="{{ .Permalink }}" class="text-gray-800 font-display text-lg hover:text-blue-600">{{ .Params.service }}</a>
{{ $pages := where $pagelist "Params.framework" $framework.framework }}
{{ $resourcePages := where $pages "Params.page_type" "service" }}
{{ if $pages }}
{{ range $pages }}
{{ if eq .Params.page_type "cloud" }}
<section class="mt-4 py-4 px-4 md:px-0">
<div class="container mx-auto max-w-4xl">
<h3><a class="hover:text-blue-600" href="{{ .Permalink }}">{{ $framework.framework }} Compliance for {{ .Params.cloud
}}</a>
</h3>
<p>
{{ .Params.description }}
</p>
<p>Learn more about how Pulumi can help your AWS services to meet {{ $framework.framework }} compliance:</p>
<div class="flex flex-row flex-wrap">
{{ range $resourcePages }}
<div class="w-1/3 mx-2 my-2 p-0">
<div class="rounded border p-4 border-gray-300 shadow-sm flex items-center gap-3">
<i class="far fa-arrow-alt-circle-right w-4 text-gray-700"></i>
<a href="{{ .Permalink }}" class="text-gray-800 font-display text-lg hover:text-blue-600">{{ .Params.service }}</a>
</div>
</div>
{{ end }}
</div>
</div>
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
</section>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</section>
Expand Down

0 comments on commit 2d3e98d

Please sign in to comment.