jekyll-theme-recipe 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c2186243c43d574708ec66e71e6be7ec19e72ac91d6d33609384a44e31db715
4
- data.tar.gz: 06f6800413c7c61336728d615f187fb1d62c3c43c9797cb49029d78a92cd0a41
3
+ metadata.gz: 59963153402a0c1b5cc0173a4e48792c1741bcdc92f471bf21e1f0dff13807d0
4
+ data.tar.gz: ca9258600cbd970479c5e552b081bce6ed1a8dc05cbae9105711def68c83e334
5
5
  SHA512:
6
- metadata.gz: 85f602bb8bbea041169a8df3fb22e3df506f74ef9b37c00c5eb888650cd45c03b9479ce691d0230f6087154820c49d4f182b2cf80737037c239ae2a0b70043d0
7
- data.tar.gz: 165e06496b389f0a2f841b7ddbd7679e147340bdf2f8fc6ee88f8b8e250ada7b128dffa924eea0136ee9bfa78157371f1c6f89e4ddc60f817194c4362ece472e
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>
@@ -63,7 +63,7 @@ layout: default
63
63
  </article>
64
64
 
65
65
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
66
- <script type="text/javascript" src="{{ site.baseurl }}/js/jquery.imgPin.min.js"></script>
66
+ <script type="text/javascript" src="{{ site.baseurl }}/assets/js/jquery.imgPin.min.js"></script>
67
67
  <script>
68
68
  $(function() {
69
69
  $('.post img').imgPin();
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.4
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