-
Notifications
You must be signed in to change notification settings - Fork 200
/
Copy pathindex.html
41 lines (30 loc) · 1.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
layout: default
---
<div class="content w-full md:w-4/5 h-full overflow-scroll">
<div class="recipes mb-24 py-8">
<h2 class="text-red-950 md:text-primary uppercase font-semibold mb-2 px-6">Most Recent</h2>
<div class="flex overflow-scroll snap-x md:grid px-6 md:h-full md:grid-cols-2 md:grid-cols-3 gap-4 md:gap-6 mb-6">
<!-- First 3 Recipes -->
{% assign first_recipes = site.recipes | sort:"date" %}
{% for post in first_recipes limit:3 %}
<a class="recipe w-3/4 md:w-auto flex-shrink-0 block snap-center" href="{{ post.url | prepend: site.baseurl }}">
<canvas class="aspect-video w-full rounded-xl bg-gray-100 mb-1 bg-cover bg-center"{% for image in post.image %} style="background-image:url({{site.baseurl}}/images/{{ image }});"{% endfor %}>
</canvas>
<h1 class="font-semibold leading-tight text-2xl text-primary font-gelica md:text-base md:text-orange-950 md:font-inter pr-16 md:pr-0">{{ post.title }}</h1>
</a>
{% endfor %}
</div>
<div class="grid px-6 h-full grid-cols-2 md:grid-cols-3 gap-4 md:gap-6">
{% assign sorted = site.recipes | sort:"date" %}
{% for post in sorted offset:3 %}
<a class="recipe" href="{{ post.url | prepend: site.baseurl }}">
<canvas class="aspect-video w-full rounded-xl bg-gray-100 mb-1 bg-cover bg-center"{% for image in post.image %} style="background-image:url({{site.baseurl}}/images/{{ image }});"{% endfor %}
>
</canvas>
<h1 class="font-semibold leading-tight">{{ post.title }}</h1>
</a>
{% endfor %}
</div>
</div>
</div>