jekyll-theme-recipe 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6212d204a81d389adf46b5458be2fb8315f4342c18e5a4a29a9832d308e4b61b
4
- data.tar.gz: e51d0ed0c38002fb9a9610fa9b712e4df1a901b28d144ee1c25dd6343571a1e9
3
+ metadata.gz: 59963153402a0c1b5cc0173a4e48792c1741bcdc92f471bf21e1f0dff13807d0
4
+ data.tar.gz: ca9258600cbd970479c5e552b081bce6ed1a8dc05cbae9105711def68c83e334
5
5
  SHA512:
6
- metadata.gz: b4e78c9717f6816abd36dc557b45287feaa2237f128b125fa959dc1f97895fc4dc8c5b49f2a8661b2586b7ab0888b88173e18a41eff097bdfd4190987b17f102
7
- data.tar.gz: 5f632955162d91d21d7e87a9f5d68104edf7d89d6c644d62ba4e6b2a31b74dc8bf24bf6ec1c9e5c518ec6a107ac80bcca15140caee160d7612f40efe7cd3f968
6
+ metadata.gz: 16a35693d3c00123f7eb893abb0463bdcdb4824a0aeb483d76bf79361c63c70ae314d1250ab5fa6b9ad8ea27747cd45510185103a8d5514539e7f29e7498f341
7
+ data.tar.gz: 9cb1c73bbb09f10c49640d6a40c563216dc457b3d9db5c2db55be6fb95839b9fd445797597f46648b4de2dc80d6af2b33ed202c51ec4da6a3234c3b36e0f8b87
data/README.md CHANGED
@@ -27,6 +27,11 @@ Food/baking blog theme for Jekyll.
27
27
 
28
28
  Recipe was built with [Jekyll](http://jekyllrb.com/) version 3.5, but should support newer versions as well.
29
29
 
30
+ Add to your Gemfile:
31
+ ~~~
32
+ gem "jekyll-theme-recipe",
33
+ ~~~
34
+
30
35
  Install the dependencies with [Bundler](http://bundler.io/):
31
36
 
32
37
  ~~~bash
@@ -39,6 +44,8 @@ Run `jekyll` commands through Bundler to ensure you're using the right versions:
39
44
  $ bundle exec jekyll serve
40
45
  ~~~
41
46
 
47
+ !!! You need to copy the about.html, contact-success.html, contact.html, index.html and recipes.html from the github repository
48
+
42
49
  ## Editing
43
50
 
44
51
  Treat is already optimised for adding, updating and removing recipes, navigation, page content, and sidebar information in CloudCannon.
@@ -1,6 +1,6 @@
1
1
  {% if include.post_page %}
2
2
  <div class="take-me">
3
- <a class="button" href="#recipe">Jump to recipe</a>
3
+ <a class="button" href="#recipe">{{ site.data.post.jump_recipe_button }}</a>
4
4
  </div>
5
5
  {% endif %}
6
6
  <h1>
@@ -17,10 +17,10 @@
17
17
  </div>
18
18
 
19
19
  {% if site.newsletter_action && site.newsletter_action!=""%}<form action="{{ site.newsletter_action }}" method="post">
20
- <h3>Newsletter</h3>
21
- <p>Get my latest recipes sent straight to your inbox.</p>
22
- <input type="text" name="EMAIL" placeholder="Email address">
23
- <input type="submit" value="Sign up">
20
+ <h3>{{ site.data.sidebar.newsletter_label }}</h3>
21
+ <p>{{ site.data.sidebar.newsletter_description_markdown | markdownify }}</p>
22
+ <input type="text" name="EMAIL" placeholder="{{ site.data.sidebar.newsletter_email_placeholder }}">
23
+ <input type="submit" value="{{ site.data.sidebar.newsletter_email_action }}">
24
24
  </form>
25
25
  {% endif %}
26
26
  </aside>
data/_layouts/post.html CHANGED
@@ -19,12 +19,12 @@ layout: default
19
19
 
20
20
  <div class="recipe-contents">
21
21
  <div class="ingredients">
22
- <h2>Ingredients</h2>
22
+ <h2>{{ site.data.post.ingredients_title }}</h2>
23
23
  {{ page.recipe.ingredients_markdown | markdownify }}
24
24
  </div>
25
25
 
26
26
  <div class="directions">
27
- <h2>Directions</h2>
27
+ <h2>{{ site.data.post.directions_title }}</h2>
28
28
  {{ page.recipe.directions_markdown | markdownify }}
29
29
  </div>
30
30
  </div>
@@ -39,9 +39,9 @@ layout: default
39
39
  </div>
40
40
 
41
41
  <div class="cta">
42
- <h2>More delicious recipes</h2>
43
- <p>This is one of the many fantastic recipes available on this blog</p>
44
- <div class="button"><a href="{{ site.baseurl }}/recipes">Check out more recipes</a></div>
42
+ <h2>{{ site.data.post.more_recipes_title }}</h2>
43
+ <p>{{ site.data.post.more_recipes_markdown | markdownify }}</p>
44
+ <div class="button"><a href="{{ site.baseurl }}/recipes">{{ site.data.post.more_recipes_button }}</a></div>
45
45
  </div>
46
46
  {% if site.disqus_shortname and page.comments %}
47
47
  <div id="disqus_thread"></div>
data/_sass/blog.scss CHANGED
@@ -47,7 +47,7 @@
47
47
  list-style-type: none;
48
48
  &:before {
49
49
  content: '\00bb';
50
- color: #ff4e4e;
50
+ color: #{$ingredients_color};
51
51
  padding-right: 0.5em;
52
52
  }
53
53
  }
@@ -64,7 +64,7 @@
64
64
  &:before {
65
65
  content: counter(step-counter);
66
66
  margin-right: 0px;
67
- background-color: #ff4e4e;
67
+ background-color: #{$directions_color};
68
68
  color: white;
69
69
  /* padding: 1px 7px; */
70
70
  font-size: .7em;
@@ -1,5 +1,10 @@
1
1
  ---
2
2
  ---
3
+
4
+
5
+ $ingredients_color: "{{ site.data.post.ingredients_color }}";
6
+ $directions_color: "{{ site.data.post.directions_color }}";
7
+
3
8
  @import "variables";
4
9
  @import "elements";
5
10
  @import "layout";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanno Witzleb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-03 00:00:00.000000000 Z
11
+ date: 2023-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll