cafe-theme 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/contact.html +6 -0
- data/_layouts/gallery.html +11 -0
- data/_layouts/home.html +8 -0
- data/_layouts/menu.html +52 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ca7c68ae4bfab4caa66f9306bbfd8955a2ae5375de8b35d4ec063c6603b6d99
|
4
|
+
data.tar.gz: eceae0822a59964f3bd180ad7502891f0e18bea18b737bdf42a01d7a14aa0b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ddebe151f54897d687ccc2444c44f2e691c8cf3cd9a572ef009ac5a1c57e996ea9ebccbe416a6e45a0f4da0481099df222e502b4c47e44fbd7a0e0e4e92e491
|
7
|
+
data.tar.gz: fb1a2ec215f149c8afe480aef4b63996981d120873e48a367bea8592866fb79c203faa7ca2ac06e0b2b6d75b3253c5603e80955f96404c80b02d7b87bd44492d
|
@@ -0,0 +1,11 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div id="gallery">
|
5
|
+
{% for gallery_item in site.data.gallery.gallery %}
|
6
|
+
<div onclick=""> <!-- onclick lets iOS recognise hover events -->
|
7
|
+
<img src="{{ '/assets/images/gallery/' | append: forloop.index | append: '.webp' | relative_url }}" alt="{{ gallery_item.description }}"">
|
8
|
+
<p>{{ gallery_item.description }}</p>
|
9
|
+
</div>
|
10
|
+
{% endfor %}
|
11
|
+
</div>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<p>{{ site.data.brand.description }}{% if site.data.production.demo %} This website is not the official website of {{ site.data.brand.name }}, it is a demo.{% endif %}</p>
|
5
|
+
{% include reviews.html %}
|
6
|
+
{% include map.html %}
|
7
|
+
{% include openTimes.html %}
|
8
|
+
{% include socials.html %}
|
data/_layouts/menu.html
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div id="menu">
|
5
|
+
{% assign has_vegan = false %}
|
6
|
+
{% assign has_gluten_free = false %}
|
7
|
+
|
8
|
+
{% for menu in site.data.menu.menus %}
|
9
|
+
{% unless forloop.first %}
|
10
|
+
<hr>
|
11
|
+
{% endunless %}
|
12
|
+
<h1>{{ menu.title | upcase }}</h1>
|
13
|
+
<p>{{ menu.time }}</p>
|
14
|
+
<div id="{{ menu.title }}">
|
15
|
+
{% for food in menu.foods %}
|
16
|
+
<div onclick=""> <!-- onclick lets iOS recognise hover events -->
|
17
|
+
<h2>{{ food.name }}
|
18
|
+
<span>${{ food.price }}</span>
|
19
|
+
{% if food.vegan %}
|
20
|
+
{% assign has_vegan = true %}
|
21
|
+
<img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
|
22
|
+
{% endif %}
|
23
|
+
{% if food.gluten_free %}
|
24
|
+
{% assign has_gluten_free = true %}
|
25
|
+
<img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
|
26
|
+
{% endif %}
|
27
|
+
</h2>
|
28
|
+
<p>{{ food.description }}</p>
|
29
|
+
{% if food.options.size > 0 %}
|
30
|
+
<ul>
|
31
|
+
{% for option in food.options %}
|
32
|
+
<li>{{ option.name }}<span>${{ option.price }}</span></li>
|
33
|
+
{% endfor %}
|
34
|
+
</ul>
|
35
|
+
{% endif %}
|
36
|
+
{% assign slugified_food_name = food.name | slugify %}
|
37
|
+
<img src="{{ '/assets/images/menu/' | append: slugified_food_name | append: '.webp' | relative_url }}" alt="{{ food.name }}">
|
38
|
+
</div>
|
39
|
+
{% endfor %}
|
40
|
+
</div>
|
41
|
+
{% endfor %}
|
42
|
+
</div>
|
43
|
+
{% if has_vegan or has_gluten_free %}
|
44
|
+
<div id="menuKey">
|
45
|
+
{% if has_vegan %}
|
46
|
+
Vegan <img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
|
47
|
+
{% endif %}
|
48
|
+
{% if has_gluten_free %}
|
49
|
+
Gluten free <img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
|
50
|
+
{% endif %}
|
51
|
+
</div>
|
52
|
+
{% endif %}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Douch
|
@@ -42,7 +42,11 @@ files:
|
|
42
42
|
- _includes/reviews.html
|
43
43
|
- _includes/socials.html
|
44
44
|
- _layouts/compress.html
|
45
|
+
- _layouts/contact.html
|
45
46
|
- _layouts/default.html
|
47
|
+
- _layouts/gallery.html
|
48
|
+
- _layouts/home.html
|
49
|
+
- _layouts/menu.html
|
46
50
|
- _sass/gallery.mobile.scss
|
47
51
|
- _sass/gallery.scss
|
48
52
|
- _sass/gmap.mobile.scss
|