forked from connor-baer/summer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (106 loc) · 5.15 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
layout: default
font: macro
lang: en
ref: index
image: true
exclude: true
---
<div class="index{% if page.image %} entry-hasBackground{% endif %}">
<div class="content-top">
{% if page.image %}
<div class="hero-background" style="background-image: url('{{ site.baseurl }}{{ site.assets }}{{ site.images }}/posts/{{ page.ref }}.jpeg'); background-image: -webkit-image-set( url('{{ site.baseurl }}{{ site.assets }}{{ site.images }}/posts/{{ page.ref }}.jpeg') 1x, url('{{ site.baseurl }}{{ site.assets }}{{ site.images }}/posts/{{ page.ref }}-large.jpeg') 2x )"></div>
<div class="hero-overlay"></div>
{% include core/metabar.html color="-white" %}
{% else %}
{% include core/metabar.html %}
{% endif %}
<header class="content hero">
<a id="{{ page.title | url_encode }}"><h1 class="hero-title">{{ site.tagline }}</h1></a>
</header>
</div>
<div class="content" id="js-list">
<form class="searchbar">
<fieldset class="searchbar-group">
<label class="searchbar-search" for="js-search">
<input class="search form-input" id="js-search" type="search" placeholder="Search recipes, ingredients, tags..." autocomplete="off" onkeypress="return event.keyCode != 13;">
<svg class="search-icon form-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
</svg>
<span class="search-highlight form-highlight"></span>
</label>
</fieldset>
<fieldset class="searchbar-group">
<label for="breakfast">
<input class="searchbar-checkbox js-category" type="checkbox" id="breakfast" value="breakfast">
<span class="searchbar-button">Breakfast</span>
</label>
<label for="lunch">
<input class="searchbar-checkbox js-category" type="checkbox" id="lunch" value="lunch">
<span class="searchbar-button">Lunch</span>
</label>
<label for="dinner">
<input class="searchbar-checkbox js-category" type="checkbox" id="dinner" value="dinner">
<span class="searchbar-button">Dinner</span>
</label>
<label for="snacks">
<input class="searchbar-checkbox js-category" type="checkbox" id="snacks" value="snacks">
<span class="searchbar-button">Snacks</span>
</label>
</fieldset>
<fieldset class="searchbar-group">
<label for="twenty-minutes">
<input class="searchbar-checkbox js-duration" type="checkbox" id="twenty-minutes" value="20">
<span class="searchbar-button">20 minutes</span>
</label>
</fieldset>
<fieldset class="searchbar-group">
<label for="vegetarian">
<input class="searchbar-checkbox js-meat" type="checkbox" id="vegetarian" value="vegetarian">
<span class="searchbar-button">Vegetarian</span>
</label>
<label for="meat">
<input class="searchbar-checkbox js-meat" type="checkbox" id="meat" value="meat">
<span class="searchbar-button">Meat</span>
</label>
<label for="fish">
<input class="searchbar-checkbox js-meat" type="checkbox" id="fish" value="fish">
<span class="searchbar-button">Fish</span>
</label>
</fieldset>
<fieldset class="searchbar-group">
<label for="asian">
<input class="searchbar-checkbox js-origin" type="checkbox" id="asian" value="asian">
<span class="searchbar-button">Asian</span>
</label>
<label for="italian">
<input class="searchbar-checkbox js-origin" type="checkbox" id="italian" value="italian">
<span class="searchbar-button">Italian</span>
</label>
<label for="latin-american">
<input class="searchbar-checkbox js-origin" type="checkbox" id="latin-american" value="latin-american">
<span class="searchbar-button">Latin American</span>
</label>
</fieldset>
</form>
<ul class="list">
{% assign recipes = site.recipes | where: "lang", page.lang %}
{% for page in recipes %}
<li class="list-recipe">
<article>
<a href="{{ site.baseurl }}{{ page.url }}" title="{{ page.title }}">
<div class="list-image" style="background-image: url({{ site.baseurl }}{{ site.assets }}{{ site.images }}/posts/{% if page.image %}{{ page.ref }}-small.jpeg{% elsif site.image %}{{ site.image }}{% endif %});"></div>
<div class="list-body">
<span class="list-category category">{{ page.category }}</span>
<h3 class="list-header title">{{ page.title }}</h3>
{% include custom/meta.html %}
<span class="list-ingredients ingredients" data-ingredients="{% for i in page.ingredients %}{{ i.name }}{% unless forloop.last %}, {% endunless %}{% endfor %}"></span>
</div>
</a>
</article>
</li>
{% endfor %}
</ul>
</div>
</div>
{% include core/footer.html %}