jekyll-theme-recipe 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c650c70e61b7a33d432d039dc0b11043478a2bddfbaf4c158ad2c1bf1dba3237
4
+ data.tar.gz: c29e2fb0c94b11815caa6eba9dc460c48d7c99bdf1f57a51ce904d1ea15812fe
5
+ SHA512:
6
+ metadata.gz: f8b98a8a13b9e33731ad4c2fa96e229fe79b02811ee349f8b7ae30425b661d35b3b8ca1209510e5ef98ba311b4db52b4b56cfb188498f8bdedd70ec51fcd64f0
7
+ data.tar.gz: 537260e3c9cb26455873a1416b749dd1cddd37266b327bad372173f1ddee3091dfbf75afa98a5aee3ccd145b15c550e23656b3af310aa0cacc2e89bba775031b
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 CloudCannon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # Recipe
2
+
3
+ Food/baking blog theme for Jekyll.
4
+
5
+ ![Recipe theme screenshot](images/_screenshot.png)
6
+
7
+ ## Features
8
+
9
+ * Contact form
10
+ * Pre-built pages
11
+ * Pre-styled components
12
+ * Blog with pagination
13
+ * Disqus comments for posts
14
+ * Configurable sidebar
15
+ * RSS/Atom feed
16
+ * SEO tags
17
+ * Google Analytics
18
+
19
+ ## Setup
20
+
21
+ 1. Add your site and author details in `_config.yml`.
22
+ 2. Add your Google Analytics, Disqus and MailChimp keys to `_config.yml`.
23
+ 3. Add your details to `_data/sidebar.yml`.
24
+ 4. Get a workflow going to see your site's output.
25
+
26
+ ## Develop
27
+
28
+ Recipe was built with [Jekyll](http://jekyllrb.com/) version 3.5, but should support newer versions as well.
29
+
30
+ Install the dependencies with [Bundler](http://bundler.io/):
31
+
32
+ ~~~bash
33
+ $ bundle install
34
+ ~~~
35
+
36
+ Run `jekyll` commands through Bundler to ensure you're using the right versions:
37
+
38
+ ~~~bash
39
+ $ bundle exec jekyll serve
40
+ ~~~
41
+
42
+ ## Editing
43
+
44
+ Treat is already optimised for adding, updating and removing recipes, navigation, page content, and sidebar information in CloudCannon.
45
+
46
+ ### Posts/Recipes
47
+
48
+ * Add, update or remove a post in the *Posts* collection.
49
+ * The recipes page is organised by categories.
50
+ * Change the defaults when new posts are created in `_posts/_defaults.md`.
51
+
52
+ ### Contact Form
53
+
54
+ * Preconfigured to work with CloudCannon, but easily changed to another provider (e.g. [FormSpree](https://formspree.io/)).
55
+ * Sends email to the address listed in company details.
56
+
57
+ ### Navigation
58
+
59
+ * Exposed as a data file to give clients better access.
60
+ * Set in the *Data* / *Navigation* section.
61
+
62
+ ### Footer
63
+
64
+ * Exposed as a data file to give clients better access.
65
+ * Set in the *Data* / *Footer* section.
@@ -0,0 +1,10 @@
1
+ <nav>
2
+ {% for link in site.data.navigation %}
3
+ {% assign class = "" %}
4
+
5
+ {% if link.link == page.url %}
6
+ {% assign class = class | append: " active" %}
7
+ {% endif %}
8
+ <a href="{% include relative-src.html src=link.link %}" class="{{ class }}">{{ link.name }}</a>
9
+ {% endfor %}
10
+ </nav>
@@ -0,0 +1,13 @@
1
+ {% if include.post_page %}
2
+ <div class="take-me">
3
+ <a class="button" href="#recipe">Jump to recipe</a>
4
+ </div>
5
+ {% endif %}
6
+ <h1>
7
+ <a href="{{ include.post.url }}">
8
+ {{ include.post.title }}
9
+ </a>
10
+ </h1>
11
+ <time datetime="{{ include.post.date | date_to_xmlschema }}">
12
+ {{ include.post.date | date: "%B %-d, %Y" }}
13
+ </time>
@@ -0,0 +1,48 @@
1
+ {% case include.icon %}
2
+ {% when "quantity" %}
3
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
4
+ <path d="M0 0h24v24H0V0z" fill="none"/>
5
+ <path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
6
+ </svg>
7
+ {% when "time" %}
8
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
9
+ <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
10
+ <path d="M0 0h24v24H0z" fill="none"/>
11
+ <path d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"/>
12
+ </svg>
13
+ {% when "cook" %}
14
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
15
+ width="25px" height="25px" viewBox="0 0 25 25" enable-background="new 0 0 25 25" xml:space="preserve">
16
+ <g>
17
+ <path d="M1.296,21.654c0-6.055,0-12.108,0-18.163c0.127-0.257,0.34-0.336,0.616-0.335c7.158,0.002,14.316,0.002,21.471,0
18
+ C23.66,3.155,23.873,3.234,24,3.491c0,6.055,0,12.108,0,18.163c-0.112,0.257-0.309,0.345-0.586,0.345
19
+ c-7.177-0.006-14.354-0.006-21.531,0C1.605,21.999,1.408,21.911,1.296,21.654z M12.629,20.128c2.977,0,5.953,0,8.931,0
20
+ c0.429,0,0.55-0.122,0.55-0.551c0-3.866,0-7.732,0-11.598c0-0.415-0.129-0.543-0.542-0.543c-5.945,0-11.893,0-17.839,0
21
+ c-0.412,0-0.54,0.128-0.54,0.543c0,3.021,0,6.041,0,9.062c0,0.87-0.006,1.74,0.007,2.611c0.002,0.128,0.06,0.298,0.154,0.377
22
+ c0.097,0.079,0.268,0.095,0.407,0.095C6.714,20.129,9.672,20.128,12.629,20.128z M9.148,3.97C8.41,4.013,7.913,4.57,7.955,5.312
23
+ c0.034,0.619,0.651,1.161,1.273,1.121c0.706-0.05,1.251-0.617,1.213-1.267C10.4,4.463,9.826,3.931,9.148,3.97z M6.071,3.967
24
+ c-0.67-0.021-1.24,0.515-1.263,1.187c-0.021,0.697,0.523,1.264,1.23,1.282C6.705,6.451,7.276,5.897,7.3,5.214
25
+ C7.321,4.553,6.766,3.989,6.071,3.967z M17.348,5.199c0-0.682-0.548-1.229-1.237-1.234c-0.677-0.006-1.242,0.543-1.255,1.221
26
+ c-0.014,0.668,0.574,1.254,1.253,1.25C16.791,6.431,17.348,5.876,17.348,5.199z M20.489,5.201c0.003-0.682-0.542-1.227-1.232-1.235
27
+ c-0.685-0.009-1.267,0.562-1.26,1.237c0.007,0.672,0.575,1.232,1.249,1.232C19.927,6.436,20.487,5.88,20.489,5.201z"/>
28
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.059,24c-0.261-0.122-0.351-0.337-0.336-0.613
29
+ c0.009-0.158-0.001-0.315,0.003-0.474c0.009-0.327,0.174-0.507,0.5-0.511c0.484-0.01,0.97-0.01,1.455,0
30
+ c0.29,0.006,0.452,0.15,0.477,0.433c0.021,0.243,0.009,0.49,0.001,0.736C6.15,23.784,6.003,23.899,5.837,24
31
+ C5.244,24,4.652,24,4.059,24z"/>
32
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.46,24c-0.267-0.132-0.347-0.358-0.33-0.637c0.011-0.195,0-0.393,0.025-0.584
33
+ c0.029-0.225,0.165-0.361,0.387-0.367c0.541-0.012,1.084-0.013,1.624,0.002c0.244,0.007,0.392,0.19,0.403,0.462
34
+ c0.011,0.214,0.004,0.429,0.001,0.644c-0.003,0.232-0.137,0.379-0.333,0.48C20.645,24,20.053,24,19.46,24z"/>
35
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M9.148,3.97c0.678-0.039,1.252,0.493,1.293,1.197
36
+ c0.038,0.649-0.508,1.217-1.213,1.267c-0.622,0.04-1.239-0.502-1.273-1.121C7.913,4.57,8.41,4.013,9.148,3.97z"/>
37
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M6.071,3.967C6.766,3.989,7.321,4.553,7.3,5.214
38
+ C7.276,5.897,6.705,6.451,6.039,6.436c-0.707-0.019-1.252-0.585-1.23-1.282C4.831,4.481,5.401,3.945,6.071,3.967z"/>
39
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M17.348,5.199c0,0.677-0.557,1.231-1.239,1.236
40
+ c-0.679,0.004-1.267-0.582-1.253-1.25c0.013-0.678,0.578-1.227,1.255-1.221C16.8,3.971,17.348,4.518,17.348,5.199z"/>
41
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M20.489,5.201c-0.002,0.679-0.562,1.234-1.243,1.234
42
+ c-0.674,0-1.242-0.561-1.249-1.232c-0.007-0.675,0.575-1.246,1.26-1.237C19.947,3.975,20.492,4.52,20.489,5.201z"/>
43
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.646,9.926c-2.112,0-4.225,0-6.336-0.002c-0.333,0-0.505-0.119-0.504-0.352
44
+ C5.808,9.346,5.986,9.22,6.314,9.22c4.225,0,8.449,0,12.672,0c0.014,0,0.025,0,0.038,0c0.294,0.006,0.469,0.14,0.467,0.358
45
+ c-0.002,0.221-0.171,0.346-0.472,0.346C16.895,9.926,14.771,9.926,12.646,9.926z"/>
46
+ </g>
47
+ </svg>
48
+ {% endcase %}
@@ -0,0 +1 @@
1
+ {% assign prefix = include.src | slice: 0, 2 %}{% assign protocol = include.src | slice: 0, 4 %}{% unless protocol == 'http' or prefix == "//" %}{{ site.baseurl }}{% endunless %}{{ include.src }}
@@ -0,0 +1,26 @@
1
+ <aside class="sidebar {% if page.push_sidebar_down %}push{% endif %}">
2
+ <div class="author">
3
+ <p>
4
+ <a href="{{ site.baseurl }}/about/">
5
+ <img src="{{ site.baseurl }}{{ site.data.sidebar.author_image }}" alt="author" class="author">
6
+ </a>
7
+ </p>
8
+ <p>{{ site.data.sidebar.description_markdown | markdownify }}</p>
9
+ </div>
10
+
11
+ <div class="social-icons">
12
+ {% if site.data.sidebar.facebook && site.data.sidebar.facebook != "" %}<a target="_blank" href="https://facebook.com/{{ site.data.sidebar.facebook }}">{% include social-icon.html icon="Facebook" %}</a>{% endif %}
13
+ {% if site.data.sidebar.twitter && site.data.sidebar.twitter != "" %}<a target="_blank" href="https://twitter.com/{{ site.data.sidebar.twitter }}">{% include social-icon.html icon="Twitter" %}</a>{% endif %}
14
+ {% if site.data.sidebar.pinterest && site.data.sidebar.pinterest != "" %}<a target="_blank" href="https://pinterest.com/{{ site.data.sidebar.pinterest }}">{% include social-icon.html icon="Pinterest" %}</a>{% endif %}
15
+ {% if site.data.sidebar.instagram && site.data.sidebar.instagram != "" %}<a target="_blank" href="https://www.instagram.com/{{ site.data.sidebar.instagram }}">{% include social-icon.html icon="Instagram" %}</a>{% endif %}
16
+ <a target="_blank" href="{{ site.baseurl }}/feed.xml">{% include social-icon.html icon="RSS" %}</a>
17
+ </div>
18
+
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">
24
+ </form>
25
+ {% endif %}
26
+ </aside>
@@ -0,0 +1,20 @@
1
+ {% case include.icon %}
2
+ {% when "Facebook" %}
3
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19,4V7H17A1,1 0 0,0 16,8V10H19V13H16V20H13V13H11V10H13V7.5C13,5.56 14.57,4 16.5,4M20,2H4A2,2 0 0,0 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
4
+ {% when "Instagram" %}
5
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7.8,2H16.2C19.4,2 22,4.6 22,7.8V16.2A5.8,5.8 0 0,1 16.2,22H7.8C4.6,22 2,19.4 2,16.2V7.8A5.8,5.8 0 0,1 7.8,2M7.6,4A3.6,3.6 0 0,0 4,7.6V16.4C4,18.39 5.61,20 7.6,20H16.4A3.6,3.6 0 0,0 20,16.4V7.6C20,5.61 18.39,4 16.4,4H7.6M17.25,5.5A1.25,1.25 0 0,1 18.5,6.75A1.25,1.25 0 0,1 17.25,8A1.25,1.25 0 0,1 16,6.75A1.25,1.25 0 0,1 17.25,5.5M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z" /></svg>
6
+ {% when "LinkedIn" %}
7
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19,19H16V13.7A1.5,1.5 0 0,0 14.5,12.2A1.5,1.5 0 0,0 13,13.7V19H10V10H13V11.2C13.5,10.36 14.59,9.8 15.5,9.8A3.5,3.5 0 0,1 19,13.3M6.5,8.31C5.5,8.31 4.69,7.5 4.69,6.5A1.81,1.81 0 0,1 6.5,4.69C7.5,4.69 8.31,5.5 8.31,6.5A1.81,1.81 0 0,1 6.5,8.31M8,19H5V10H8M20,2H4C2.89,2 2,2.89 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
8
+ {% when "Pinterest" %}
9
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M13,16.2C12.2,16.2 11.43,15.86 10.88,15.28L9.93,18.5L9.86,18.69L9.83,18.67C9.64,19 9.29,19.2 8.9,19.2C8.29,19.2 7.8,18.71 7.8,18.1C7.8,18.05 7.81,18 7.81,17.95H7.8L7.85,17.77L9.7,12.21C9.7,12.21 9.5,11.59 9.5,10.73C9.5,9 10.42,8.5 11.16,8.5C11.91,8.5 12.58,8.76 12.58,9.81C12.58,11.15 11.69,11.84 11.69,12.81C11.69,13.55 12.29,14.16 13.03,14.16C15.37,14.16 16.2,12.4 16.2,10.75C16.2,8.57 14.32,6.8 12,6.8C9.68,6.8 7.8,8.57 7.8,10.75C7.8,11.42 8,12.09 8.34,12.68C8.43,12.84 8.5,13 8.5,13.2A1,1 0 0,1 7.5,14.2C7.13,14.2 6.79,14 6.62,13.7C6.08,12.81 5.8,11.79 5.8,10.75C5.8,7.47 8.58,4.8 12,4.8C15.42,4.8 18.2,7.47 18.2,10.75C18.2,13.37 16.57,16.2 13,16.2M20,2H4C2.89,2 2,2.89 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
10
+ {% when "Tumblr" %}
11
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M16,11H13V14.9C13,15.63 13.14,16 14.1,16H16V19C16,19 14.97,19.1 13.9,19.1C11.25,19.1 10,17.5 10,15.7V11H8V8.2C10.41,8 10.62,6.16 10.8,5H13V8H16M20,2H4C2.89,2 2,2.89 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
12
+ {% when "Twitter" %}
13
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z" /></svg>
14
+ {% when "YouTube" %}
15
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10,16.5V7.5L16,12M20,4.4C19.4,4.2 15.7,4 12,4C8.3,4 4.6,4.19 4,4.38C2.44,4.9 2,8.4 2,12C2,15.59 2.44,19.1 4,19.61C4.6,19.81 8.3,20 12,20C15.7,20 19.4,19.81 20,19.61C21.56,19.1 22,15.59 22,12C22,8.4 21.56,4.91 20,4.4Z" /></svg>
16
+ {% when "RSS" %}
17
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg>
18
+ {% when "Email" %}
19
+ <svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
20
+ {% endcase %}
@@ -0,0 +1,47 @@
1
+ <!doctype html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+
8
+ {% seo %}
9
+ {% feed_meta %}
10
+
11
+ <link href="//fonts.googleapis.com/css?family=Antic+Slab|Fira+Sans" rel="stylesheet">
12
+ <link rel="stylesheet" media="screen" href="{{ site.baseurl }}/css/screen.css">
13
+ {% if page.print_stylesheet %}
14
+ <link rel="stylesheet" media="print" href="{{ site.baseurl }}/css/print.css">
15
+ {% endif %}
16
+ <link rel="icon" type="image/png" href="{{ site.baseurl }}/images/favicon.png">
17
+
18
+ {% if jekyll.environment == 'production' and site.google_analytics_key != '' %}
19
+ <script>
20
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
21
+ ga('create', '{{ site.google_analytics_key }}', 'auto');
22
+ ga('send', 'pageview');
23
+ </script>
24
+ <script async src='https://www.google-analytics.com/analytics.js'></script>
25
+ {% endif %}
26
+ </head>
27
+ <body>
28
+ {% include navigation.html %}
29
+ <header>
30
+ <a href="{{site.baseurl }}/">
31
+ <img src="{{ site.baseurl }}{{ site.data.company_details.logo_image }}" width="180" alt="logo">
32
+ </a>
33
+
34
+ </header>
35
+
36
+ <div class="container main-content">
37
+ <section class="content">{{ content }}</section>
38
+ {% include sidebar.html %}
39
+ </div>
40
+ <footer>
41
+ <div class="container">
42
+ <hr>
43
+ &copy; {{ site.title }} {{ site.time | date: "%Y" }}. All rights reserved.
44
+ </div>
45
+ </footer>
46
+ </body>
47
+ </html>
@@ -0,0 +1,79 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+ {% include post-heading.html post=page post_page=true %}
6
+ <div class="image">
7
+ <img src="{{ page.featured_image }}" alt="{{ page.title }}">
8
+ </div>
9
+
10
+ <div class="recipe-body">
11
+ {{ content }}
12
+ </div>
13
+
14
+ <ul id="recipe" class="recipe-overview">
15
+ <li title="Servings">{% include recipe-icon.html icon="quantity" %}<span>{{ page.recipe.servings }}</span></li>
16
+ <li title="Prep Time">{% include recipe-icon.html icon="time" %}<span>{{ page.recipe.prep }}</span></li>
17
+ <li title="Cook Time">{% include recipe-icon.html icon="cook" %}<span>{{ page.recipe.cook }}</span></li>
18
+ </ul>
19
+
20
+ <div class="recipe-contents">
21
+ <div class="ingredients">
22
+ <h2>Ingredients</h2>
23
+ {{ page.recipe.ingredients_markdown | markdownify }}
24
+ </div>
25
+
26
+ <div class="directions">
27
+ <h2>Directions</h2>
28
+ {{ page.recipe.directions_markdown | markdownify }}
29
+ </div>
30
+ </div>
31
+
32
+ <div class="sharing">
33
+ {% assign share_url = page.url | absolute_url | cgi_escape %}
34
+ <a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ share_url }}">{% include social-icon.html icon="Facebook" %}</a>
35
+ <a class="twitter" href="https://twitter.com/intent/tweet?url={{ share_url }}&amp;text=I'm%20going%20to%20this%20event!">{% include social-icon.html icon="Twitter" %}</a>
36
+ <a class="instagram" href="https://instagram.com">{% include social-icon.html icon="Instagram" %}</a>
37
+ <a class="pinterest" href="//pinterest.com/pin/create/link/?url={{ share_url }}&amp;description={{ page.description }}">{% include social-icon.html icon="Pinterest" %}</a>
38
+ <a class="email" href="mailto:?subject=I've%20found%20a%20great%20recipe&amp;body=Check%20it%20out%20-%20{{ share_url }}">{% include social-icon.html icon="Email" %}</a>
39
+ </div>
40
+
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>
45
+ </div>
46
+ {% if site.disqus_shortname and page.comments %}
47
+ <div id="disqus_thread"></div>
48
+ <script>
49
+ var disqus_shortname = '{{ site.disqus_shortname }}';
50
+ var disqus_config = function () {
51
+ this.page.url = "{{ page.url | prepend: site.url }}";
52
+ this.page.identifier = "{{ page.id }}";
53
+ };
54
+ (function() { // DON'T EDIT BELOW THIS LINE
55
+ var d = document, s = d.createElement('script');
56
+ s.src = '//' + disqus_shortname + '.disqus.com/embed.js';
57
+ s.setAttribute('data-timestamp', +new Date());
58
+ (d.head || d.body).appendChild(s);
59
+ })();
60
+ </script>
61
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
62
+ {% endif %}
63
+ </article>
64
+
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>
67
+ <script>
68
+ $(function() {
69
+ $('.post img').imgPin();
70
+
71
+ $('a[href*=\\#]').on('click', function(event){
72
+ var el = $(this.hash);
73
+ if (el.length > 0) {
74
+ event.preventDefault();
75
+ $('html,body').animate({scrollTop:$(this.hash).offset().top - 50}, 500);
76
+ }
77
+ });
78
+ });
79
+ </script>
data/_sass/blog.scss ADDED
@@ -0,0 +1,185 @@
1
+ .post {
2
+ h1 a {
3
+ color: #000;
4
+ text-decoration: none;
5
+
6
+ &:hover {
7
+ text-decoration: underline;
8
+ }
9
+ }
10
+ time {
11
+ padding: 0 0 20px 0;
12
+ display: block;
13
+ }
14
+
15
+ .recipe-overview {
16
+ padding: 0;
17
+ margin: 0;
18
+
19
+ svg {
20
+ position: relative;
21
+ top: 6px;
22
+ }
23
+
24
+ span {
25
+ margin: 0 18px 0 3px;
26
+ }
27
+
28
+ li {
29
+ list-style: none;
30
+ padding: 0;
31
+ margin: 0;
32
+
33
+ @media #{$desktop} {
34
+ display: inline-block;
35
+ }
36
+ }
37
+ }
38
+
39
+ .recipe-contents {
40
+ @media #{$desktop} {
41
+ display: flex;
42
+ }
43
+
44
+ ul {
45
+ padding: 0;
46
+ li {
47
+ list-style-type: none;
48
+ &:before {
49
+ content: '\00bb';
50
+ color: #ff4e4e;
51
+ padding-right: 0.5em;
52
+ }
53
+ }
54
+ }
55
+
56
+ ol {
57
+ padding: 0;
58
+ li{
59
+ counter-increment: step-counter;
60
+ list-style-type: none;
61
+ position: relative;
62
+ margin-left: 34px;
63
+
64
+ &:before {
65
+ content: counter(step-counter);
66
+ margin-right: 0px;
67
+ background-color: #ff4e4e;
68
+ color: white;
69
+ /* padding: 1px 7px; */
70
+ font-size: .7em;
71
+ position: absolute;
72
+ left: -34px;
73
+ top: -2px;
74
+ width: 25px;
75
+ text-align: center;
76
+ }
77
+ }
78
+ }
79
+ .ingredients {
80
+ width: 250px;
81
+ padding: 0 43px 0 0;
82
+ }
83
+
84
+ .directions {
85
+ @media #{$desktop} {
86
+ flex: 1;
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ .post + .post {
93
+ margin: 65px 0 50px 0;
94
+ }
95
+
96
+ .sharing {
97
+ margin: 50px 0 0 0;
98
+ text-align: center;
99
+ font-size: 0;
100
+
101
+ a {
102
+ text-decoration: none;
103
+ text-align: center;
104
+ position: relative;
105
+ width: 56px;
106
+ display: inline-block;
107
+ height: 44px;
108
+ line-height: 0;
109
+ padding: 0;
110
+ margin: 0;
111
+ display: inline-flex;
112
+ align-items: center;
113
+ justify-content: center;
114
+
115
+ &:hover {
116
+ &:before {
117
+ width: 100%;
118
+ height: 100%;
119
+ position: absolute;
120
+ top: 0;
121
+ left: 0;
122
+ background: rgba(0, 0, 0, .25);
123
+ content: "";
124
+ }
125
+ }
126
+
127
+ svg {
128
+ fill: #fff;
129
+ }
130
+
131
+ &.email {
132
+ background-color: #ff9d09;
133
+ }
134
+
135
+ &.facebook {
136
+ background-color: #3b5998;
137
+ }
138
+
139
+ &.twitter {
140
+ background-color: #55acee;
141
+ }
142
+
143
+ &.google-plus {
144
+ background-color: #db4437;
145
+ }
146
+
147
+ &.youtube {
148
+ background-color: #cd201f;
149
+ }
150
+
151
+ &.instagram {
152
+ background-color: #f167f5;
153
+ }
154
+
155
+ &.linkedin {
156
+ background-color: #0077b5;
157
+ }
158
+
159
+ &.pinterest {
160
+ background-color: #C92228;
161
+ }
162
+
163
+ &.pinterest-icon:hover svg {
164
+ fill: #bd081c;
165
+ }
166
+ }
167
+ }
168
+
169
+ .pagination {
170
+ text-align: center;
171
+ margin: 50px 0 0 0;
172
+ }
173
+
174
+ .take-me {
175
+ float: right;
176
+ .button {
177
+ padding-top: 10px;
178
+ padding-bottom: 10px;
179
+ }
180
+ }
181
+
182
+ .cta {
183
+ text-align: center;
184
+ padding: 50px 0 0 0;
185
+ }
@@ -0,0 +1,56 @@
1
+ html , body {
2
+ padding: 0;
3
+ margin: 0;
4
+ line-height: 1.8em;
5
+ }
6
+
7
+ body, input, textarea {
8
+ font-family: 'Fira Sans', sans-serif;
9
+ color: #222;
10
+ -webkit-font-smoothing: antialiased;
11
+ }
12
+
13
+ h1 {
14
+ font-size: 1.8em;
15
+ margin: 0;
16
+ padding: 0;
17
+ line-height: 1.3em;
18
+ }
19
+
20
+ h2 {
21
+ font-size: 1.4em;
22
+ }
23
+
24
+ time {
25
+ color: $light-grey;
26
+ }
27
+
28
+ header {
29
+ text-align: center;
30
+ padding: 80px 0 60px 0;
31
+ }
32
+
33
+ img {
34
+ max-width: 100%;
35
+ }
36
+
37
+ ol li + li {
38
+ margin: 20px 0 0 0;
39
+ }
40
+
41
+ footer {
42
+ color: $light-grey;
43
+ text-align: center;
44
+ padding: 20px 0;
45
+ font-size: .8em;
46
+ }
47
+
48
+ hr {
49
+ border: 0;
50
+ border-top: 1px solid #eee;
51
+ }
52
+
53
+ a {
54
+ text-decoration: none;
55
+ color: #007eff;
56
+ }
data/_sass/forms.scss ADDED
@@ -0,0 +1,110 @@
1
+ .button, input[type="submit"] {
2
+ background: #fff;
3
+ cursor: pointer;
4
+ border: 1px solid #666;
5
+ color: #000;
6
+ text-decoration: none;
7
+ padding: 5px 10px;
8
+ display: inline-flex;
9
+ align-items: flex-end;
10
+ margin: 0;
11
+ font-size: .8em;
12
+
13
+ &:hover {
14
+ background: #000;
15
+ color: #fff;
16
+ }
17
+
18
+ &:focus {
19
+ outline: none;
20
+ }
21
+ }
22
+
23
+ .button {
24
+ border-color: #000;
25
+
26
+ a {
27
+ color: #000;
28
+
29
+ &:hover {
30
+ color: #fff;
31
+ }
32
+ }
33
+ }
34
+
35
+ input[type="submit"] {
36
+ margin-top: 10px;
37
+ padding-top: 10px;
38
+ padding-bottom: 10px;
39
+ }
40
+
41
+ input[type="text"], input[type="email"], textarea {
42
+ display: block;
43
+ width: 100%;
44
+ font-size: 1.1em;
45
+ padding: 10px;
46
+ box-sizing: border-box;
47
+ border: 1px solid #666;
48
+ resize: none;
49
+
50
+ &:focus {
51
+ outline: 2px solid #333;
52
+ }
53
+ }
54
+
55
+ textarea {
56
+ height: 150px;
57
+ }
58
+
59
+
60
+ label {
61
+ margin: 20px 0 5px 0;
62
+ display: block;
63
+ }
64
+
65
+ ::-webkit-input-placeholder { /* Chrome */
66
+ color: $light-grey;
67
+ }
68
+
69
+ :-ms-input-placeholder { /* IE 10+ */
70
+ color: $light-grey;
71
+ }
72
+ ::-moz-placeholder { /* Firefox 19+ */
73
+ color: $light-grey;
74
+ opacity: 1;
75
+ }
76
+ :-moz-placeholder { /* Firefox 4 - 18 */
77
+ color: $light-grey;
78
+ opacity: 1;
79
+ }
80
+
81
+ legend {
82
+ display: none;
83
+ }
84
+
85
+ .contain {
86
+ border: 0;
87
+ background: 0;
88
+ padding: 0;
89
+ margin: 0;
90
+ display: flex;
91
+ flex-wrap: wrap;
92
+ justify-content: space-between;
93
+
94
+ .split {
95
+ flex: 0 0 380px;
96
+ }
97
+ }
98
+
99
+ select {
100
+ width: 100%;
101
+ padding: 20px;
102
+ height: 43px;
103
+ background: #fff;
104
+ border-color: rgba(0,0,0,0);
105
+ font-size: 1em;
106
+ outline: 1px solid #000;
107
+ &:focus {
108
+ outline: 2px solid #333;
109
+ }
110
+ }
data/_sass/layout.scss ADDED
@@ -0,0 +1,17 @@
1
+ .container {
2
+ max-width: 1100px;
3
+ margin: 0 auto;
4
+ }
5
+
6
+ .main-content {
7
+ @media #{$desktop} {
8
+ display: flex;
9
+ }
10
+ padding: 0 30px 50px 30px;
11
+ }
12
+
13
+ .content {
14
+ @media #{$desktop} {
15
+ flex: 1;
16
+ }
17
+ }
@@ -0,0 +1,26 @@
1
+ nav {
2
+ position: fixed;
3
+ width: 100%;
4
+ display: flex;
5
+ justify-content: center;
6
+ background: rgba(255, 255, 255, .9);
7
+ z-index: 999;
8
+
9
+ a {
10
+ display: inline-block;
11
+ text-decoration: none;
12
+ padding: 20px 15px;
13
+ color: #444;
14
+ text-transform: uppercase;
15
+ letter-spacing: 1px;
16
+ font-size: .9em;
17
+
18
+ &.active {
19
+ color: #888;
20
+ }
21
+
22
+ &:hover {
23
+ color: #000;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,39 @@
1
+ .recipes {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ .recipe {
5
+ flex: 1 0 300px;
6
+ height: 200px;
7
+ display: inline-block;
8
+ background-position: center;
9
+ background-size: cover;
10
+ margin: 5px 7px;
11
+
12
+ a {
13
+ width: 100%;
14
+ height: 100%;
15
+ display: block;
16
+ background: rgba(0, 0, 0, .2);
17
+ color: #fff;
18
+ text-decoration: none;
19
+ text-align: center;
20
+ vertical-align: text-bottom;
21
+ position: relative;
22
+ transition: all 0.2s ease;
23
+ font-size: 1.1em;
24
+ font-weight: 700;
25
+
26
+ span {
27
+ position: absolute;
28
+ bottom: 5px;
29
+ width: 100%;
30
+ left: 0;
31
+ text-shadow: 1px 1px 1px #000;
32
+ }
33
+
34
+ &:hover {
35
+ background: none;
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,49 @@
1
+ .sidebar {
2
+ width: 250px;
3
+ padding: 70px 0 0 0;
4
+ margin: 0 auto;
5
+
6
+ @media #{$desktop} {
7
+ margin: 0;
8
+ padding: 0 0 0 70px;
9
+ }
10
+
11
+ .author {
12
+ text-align: center;
13
+ p {
14
+ padding: 0;
15
+ margin: 0;
16
+ }
17
+ img {
18
+ width: 200px;
19
+ border-radius: 200px;
20
+ margin: 0 0 10px 0;
21
+ }
22
+ }
23
+
24
+ .social-icons {
25
+ display: flex;
26
+ justify-content: center;
27
+ margin: 10px 0 0 0;
28
+ a {
29
+ padding: 3px;
30
+ text-decoration: none;
31
+
32
+ &:hover svg {
33
+ fill: #000;
34
+ }
35
+ }
36
+
37
+ svg {
38
+ width: 25px;
39
+ height: 25px;
40
+ fill: $light-grey;
41
+ }
42
+ }
43
+ }
44
+
45
+ .sidebar.push {
46
+ @media #{$desktop} {
47
+ padding-top: 72px;
48
+ }
49
+ }
@@ -0,0 +1,6 @@
1
+ // Breakpoints
2
+ $tablet: "(min-width: 450px)";
3
+ $mid-point: "(min-width: 620px)";
4
+ $desktop: "(min-width: 900px)";
5
+
6
+ $light-grey: #999;
metadata ADDED
@@ -0,0 +1,207 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-recipe
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hanno Witzleb
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-03-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jekyll-seo-tag
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: jekyll-feed', '0.17.0
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: jekyll-paginate', '1.1.0
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: jekyll-sitemap', '1.4.0
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: tzinfo', '~> 2.0', '>= 2.0.6
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: tzinfo-data', '~> 1.2022', '>= 1.2022.7
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: html-proofer
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '3.0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop-github
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '0.16'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '0.16'
145
+ - !ruby/object:Gem::Dependency
146
+ name: w3c_validators
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '1.3'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '1.3'
159
+ description:
160
+ email: []
161
+ executables: []
162
+ extensions: []
163
+ extra_rdoc_files: []
164
+ files:
165
+ - LICENSE
166
+ - README.md
167
+ - _includes/navigation.html
168
+ - _includes/post-heading.html
169
+ - _includes/recipe-icon.html
170
+ - _includes/relative-src.html
171
+ - _includes/sidebar.html
172
+ - _includes/social-icon.html
173
+ - _layouts/default.html
174
+ - _layouts/post.html
175
+ - _sass/blog.scss
176
+ - _sass/elements.scss
177
+ - _sass/forms.scss
178
+ - _sass/layout.scss
179
+ - _sass/navigation.scss
180
+ - _sass/recipes.scss
181
+ - _sass/sidebar.scss
182
+ - _sass/variables.scss
183
+ homepage: https://github.com/Xipit/jekyll-theme-recipe
184
+ licenses:
185
+ - CC0-1.0
186
+ metadata: {}
187
+ post_install_message:
188
+ rdoc_options: []
189
+ require_paths:
190
+ - lib
191
+ required_ruby_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: 2.4.0
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ requirements: []
202
+ rubygems_version: 3.3.26
203
+ signing_key:
204
+ specification_version: 4
205
+ summary: Recipe is a Jekyll theme for recipe websites, and adapted from CloudCannons
206
+ Treat theme
207
+ test_files: []