cafe-theme 0.1.4 → 0.1.7
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/_includes/openTimes.html +7 -1
- data/_layouts/menu.html +31 -23
- data/_sass/menu.scss +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e773be3950c06ba6bd68ea1b59285193dab6d6a239ef2109b317732efdefb2d4
|
4
|
+
data.tar.gz: 0d758dc6fd7be6cf37886d5283d245b02987077048ed31601bfd057755d9bec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a74fa9130e1c13e3a943facf81d04c9768fcd30635f75a926dc2f5ae12be456f407bf9af79b94a846d3b300094ad95608488f9c0f8177911df68a4a679442a4
|
7
|
+
data.tar.gz: a5ccd8c3bda84e61b7a03999d4b8d383c06a55878a7b3e09b991a1cb53f161ae8502c2bbfc363c6531b5f729fd676627638c21d78e531c5435e2078186393c66
|
data/_includes/openTimes.html
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
<div class="openingTimes">
|
2
2
|
{% for day_of_week in site.data.openingTimes %}
|
3
3
|
<p>{{ day_of_week.days }}:</p>
|
4
|
-
<p>
|
4
|
+
<p>
|
5
|
+
{% if day_of_week.open and day_of_week.close %}
|
6
|
+
{{ day_of_week.open }} - {{ day_of_week.close }}
|
7
|
+
{% else %}
|
8
|
+
Closed
|
9
|
+
{% endif %}
|
10
|
+
</p>
|
5
11
|
{% endfor %}
|
6
12
|
</div>
|
data/_layouts/menu.html
CHANGED
@@ -15,30 +15,35 @@ layout: default
|
|
15
15
|
<h1>{{ section.title | upcase }}</h1>
|
16
16
|
<p>{{ section.time }}</p>
|
17
17
|
<div id="{{ menu.title }}">
|
18
|
-
{% for
|
19
|
-
|
20
|
-
|
21
|
-
<span>${{ food.price }}</span>
|
22
|
-
{% if food.vegan %}
|
23
|
-
{% assign has_vegan = true %}
|
24
|
-
<img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
|
25
|
-
{% endif %}
|
26
|
-
{% if food.gluten_free %}
|
27
|
-
{% assign has_gluten_free = true %}
|
28
|
-
<img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
|
29
|
-
{% endif %}
|
30
|
-
</h2>
|
31
|
-
<p>{{ food.description }}</p>
|
32
|
-
{% if food.options.size > 0 %}
|
33
|
-
<ul>
|
34
|
-
{% for option in food.options %}
|
35
|
-
<li>{{ option.name }}<span>${{ option.price }}</span></li>
|
36
|
-
{% endfor %}
|
37
|
-
</ul>
|
18
|
+
{% for heading in section.headings %}
|
19
|
+
{% if heading.name %}
|
20
|
+
<h2>{{ heading.name }}</h2>
|
38
21
|
{% endif %}
|
39
|
-
{%
|
40
|
-
|
41
|
-
|
22
|
+
{% for food in heading.foods %}
|
23
|
+
<div onclick=""> <!-- onclick lets iOS recognise hover events -->
|
24
|
+
<h2>{{ food.name }}
|
25
|
+
<span>${{ food.price }}</span>
|
26
|
+
{% if food.vegan %}
|
27
|
+
{% assign has_vegan = true %}
|
28
|
+
<img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
|
29
|
+
{% endif %}
|
30
|
+
{% if food.gluten_free %}
|
31
|
+
{% assign has_gluten_free = true %}
|
32
|
+
<img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
|
33
|
+
{% endif %}
|
34
|
+
</h2>
|
35
|
+
<p>{{ food.description }}</p>
|
36
|
+
{% if food.options.size > 0 %}
|
37
|
+
<ul>
|
38
|
+
{% for option in food.options %}
|
39
|
+
<li>{{ option.name }}<span>${{ option.price }}</span></li>
|
40
|
+
{% endfor %}
|
41
|
+
</ul>
|
42
|
+
{% endif %}
|
43
|
+
{% assign slugified_food_name = food.name | slugify %}
|
44
|
+
<img src="{{ '/assets/images/menu/' | append: slugified_food_name | append: '.webp' | relative_url }}" alt="{{ food.name }}">
|
45
|
+
</div>
|
46
|
+
{% endfor %}
|
42
47
|
{% endfor %}
|
43
48
|
</div>
|
44
49
|
{% endfor %}
|
@@ -52,4 +57,7 @@ layout: default
|
|
52
57
|
Gluten free <img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
|
53
58
|
{% endif %}
|
54
59
|
</div>
|
60
|
+
{% endif %}
|
61
|
+
{% if page.warning %}
|
62
|
+
<p id="warning">{{ page.warning }}</p>
|
55
63
|
{% endif %}
|
data/_sass/menu.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Douch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|