Skip to content

Commit 89f0acd

Browse files
author
Kayla Wilkins
committed
moving classes around so button isn't treated as a flex item
1 parent 151226a commit 89f0acd

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

themes/dlc/layouts/index.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,27 @@ <h2 class="mt-0 font-normal text-center"><a href="https://www.linode.com/communi
3939
<h2 class="font-light text-d-dark-green">Events</h2>
4040
<div class="text-2xl my-3 font-light">Catch us on the road at conferences, meetups, and job fairs.</div>
4141
</div>
42-
<div class="flex flex-wrap my-8 -mx-4 pb-8 items-center justify-center">
43-
{{ range last 3 ((where .Pages "Section" "events").ByParam "start_date") }}
44-
{{ $t := (time .Params.end_date) }}
45-
{{ if ge ($t.Unix) (now.Unix) }}
46-
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
47-
<div class="p-8 h-full bg-d-cell tile">
48-
<header>
49-
<h3 class="mt-0 mb-4"><a href="{{ .Params.event_url }}" class="text-black tile-link" target="_blank">{{ .Title | markdownify }}</a></h3>
50-
</header>
51-
<section>
52-
<div><strong>{{ .Params.location }}</strong></div>
53-
<div><strong>{{ dateFormat "Jan 2, 2006" .Params.start_date }}</strong></div>
54-
<p>{{ .Content }}</p>
55-
</section>
56-
</div>
57-
</article>
58-
{{ end }}
59-
{{ end }}
60-
<div class="">
61-
<a class="btn block mx-auto text-center" href="https://www.linode.com/events" target="_blank">View All Events</a>
42+
<div class="my-8 -mx-4 pb-8">
43+
<div class="flex flex-wrap items-center justify-center">
44+
{{ range last 3 ((where .Pages "Section" "events").ByParam "start_date") }}
45+
{{ $t := (time .Params.end_date) }}
46+
{{ if ge ($t.Unix) (now.Unix) }}
47+
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
48+
<div class="p-8 h-full bg-d-cell tile">
49+
<header>
50+
<h3 class="mt-0 mb-4"><a href="{{ .Params.event_url }}" class="text-black tile-link" target="_blank">{{ .Title | markdownify }}</a></h3>
51+
</header>
52+
<section>
53+
<div><strong>{{ .Params.location }}</strong></div>
54+
<div><strong>{{ dateFormat "Jan 2, 2006" .Params.start_date }}</strong></div>
55+
<p>{{ .Content }}</p>
56+
</section>
57+
</div>
58+
</article>
59+
{{ end }}
60+
{{ end }}
6261
</div>
62+
<a class="btn block mx-auto text-center" href="https://www.linode.com/events" target="_blank">View All Events</a>
6363
</div>
6464

6565
<div class="relative row-full pb-8 home-cubes">

0 commit comments

Comments
 (0)