* Add Prettier set-up (no formatting in this commit). * Manual fixes for Prettier issues. * Run Prettier fix on non-markdown files. * Incorporate Prettier PR feedback - update commands, re-apply new yaml styles, add editor config. * Remove deprecated config item. * Add dependency on prettier-plugin-go-template. * reconcile changed file with prettier formatting. * Add git blame ignore revs file to include Prettier formatting commit. * Fix format issue with merge conflict.
44 lines
2.0 KiB
HTML
44 lines
2.0 KiB
HTML
{{ define "hero" }}
|
|
{{ partial "hero.html" (dict "title" .Title) }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<div>
|
|
<section class="max-w-5xl container mx-auto pt-8 px-4 text-center text-lg">
|
|
<ul class="list-none md:flex md:flex-wrap">
|
|
{{ range $.Site.Data.awards.awards }}
|
|
<li class="my-0 md:w-1/2 p-4 w-full">
|
|
<div class="text-center md:text-left md:flex card bg-white p-4">
|
|
<div class="md:w-1/3 p-4">
|
|
{{ if .url }}
|
|
<a data-track="{{ .title | urlize }}-img" class="block text-center" href="{{ .url }}">
|
|
<img class="text-center inline-block rounded shadow p-1" src="{{ .img }}" />
|
|
</a>
|
|
{{ else }}
|
|
<img class="text-center inline-block rounded shadow p-1" src="{{ .img }}" />
|
|
{{ end }}
|
|
</div>
|
|
<div class="md:w-2/3 p-4 text-left">
|
|
<h5 class="leading-tight">
|
|
{{ if .url }}
|
|
<a data-track="{{ .title | urlize }}" class="text-gray-700" href="{{ .url }}">{{ .title }}</a>
|
|
{{ else }}
|
|
{{ .title }}
|
|
{{ end }}
|
|
</h5>
|
|
{{ if .url }}
|
|
<a data-track="{{ .title | urlize }}-read-more" href="{{ .url }}" class="text-blue-500 text-base">Read more →</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
</div>
|
|
|
|
{{ partial "learnmore-contactus.html" . }}
|
|
|
|
{{ partial "newsletter.html" . }}
|
|
{{ end }}
|