solar-flair 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +86 -0
  4. data/_includes/ad.html +5 -0
  5. data/_includes/contact.html +68 -0
  6. data/_includes/footer.html +155 -0
  7. data/_includes/head.html +92 -0
  8. data/_includes/header.html +47 -0
  9. data/_includes/resources.html +16 -0
  10. data/_layouts/blog.html +54 -0
  11. data/_layouts/default.html +22 -0
  12. data/_layouts/home.html +128 -0
  13. data/_layouts/page.html +55 -0
  14. data/_layouts/post.html +53 -0
  15. data/_sass/solar-flair.scss +200 -0
  16. data/_sass/solar-flair/_base.scss +164 -0
  17. data/_sass/solar-flair/_gradients.scss +47 -0
  18. data/_sass/solar-flair/_home.scss +161 -0
  19. data/_sass/solar-flair/_hr.scss +49 -0
  20. data/_sass/solar-flair/_layout.scss +250 -0
  21. data/_sass/solar-flair/_links.scss +111 -0
  22. data/_sass/solar-flair/_lists.scss +7 -0
  23. data/_sass/solar-flair/_promo.scss +0 -0
  24. data/_sass/solar-flair/_syntax-highlighting.scss +71 -0
  25. data/_sass/solar-flair/_typeography.scss +115 -0
  26. data/assets/fonts/Montserrat/Montserrat-Black.ttf +0 -0
  27. data/assets/fonts/Montserrat/Montserrat-BlackItalic.ttf +0 -0
  28. data/assets/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  29. data/assets/fonts/Montserrat/Montserrat-BoldItalic.ttf +0 -0
  30. data/assets/fonts/Montserrat/Montserrat-ExtraBold.ttf +0 -0
  31. data/assets/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
  32. data/assets/fonts/Montserrat/Montserrat-ExtraLight.ttf +0 -0
  33. data/assets/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
  34. data/assets/fonts/Montserrat/Montserrat-Italic.ttf +0 -0
  35. data/assets/fonts/Montserrat/Montserrat-Light.ttf +0 -0
  36. data/assets/fonts/Montserrat/Montserrat-LightItalic.ttf +0 -0
  37. data/assets/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
  38. data/assets/fonts/Montserrat/Montserrat-MediumItalic.ttf +0 -0
  39. data/assets/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  40. data/assets/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
  41. data/assets/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
  42. data/assets/fonts/Montserrat/Montserrat-Thin.ttf +0 -0
  43. data/assets/fonts/Montserrat/Montserrat-ThinItalic.ttf +0 -0
  44. data/assets/fonts/Montserrat/OFL.txt +93 -0
  45. data/assets/fonts/Open_Sans/LICENSE.txt +202 -0
  46. data/assets/fonts/Open_Sans/OpenSans-Bold.ttf +0 -0
  47. data/assets/fonts/Open_Sans/OpenSans-BoldItalic.ttf +0 -0
  48. data/assets/fonts/Open_Sans/OpenSans-ExtraBold.ttf +0 -0
  49. data/assets/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf +0 -0
  50. data/assets/fonts/Open_Sans/OpenSans-Italic.ttf +0 -0
  51. data/assets/fonts/Open_Sans/OpenSans-Light.ttf +0 -0
  52. data/assets/fonts/Open_Sans/OpenSans-LightItalic.ttf +0 -0
  53. data/assets/fonts/Open_Sans/OpenSans-Regular.ttf +0 -0
  54. data/assets/fonts/Open_Sans/OpenSans-SemiBold.ttf +0 -0
  55. data/assets/fonts/Open_Sans/OpenSans-SemiBoldItalic.ttf +0 -0
  56. data/assets/images/canvas.jpg +0 -0
  57. data/assets/images/paisley.jpg +0 -0
  58. data/assets/images/pattern.svg +5715 -0
  59. data/assets/images/squares.jpg +0 -0
  60. data/assets/images/white-horizontal.svg +102 -0
  61. data/assets/main.scss +6 -0
  62. data/assets/solar-flair.js +100 -0
  63. data/assets/solar-flair.min.js +1 -0
  64. metadata +151 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 13f4aa6263a2b1f92de86281507e84223fb1f70eb0f6f6daddeee5257d4cd726
4
+ data.tar.gz: 4de1874b6b0362fb559b658de0204df69036642b0e343482be06449fabcc75d9
5
+ SHA512:
6
+ metadata.gz: d375e90edb6df61ce2b14a21c9b6f78f308653e5d2a15f3058da2375d4e20cdd0eff1eada0a7b4e4240a7b3a0c61b7c5570fd93f5d2c48f99a824509acae0f7b
7
+ data.tar.gz: 2e3ae92f3691b04ca62eef3cb675442d926d820b1848ec1a0bebaf4228153c6c3b68195f077d1a7a17488f5c1db7b083aec93bc81bb1036275e15f7369fc8e80
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Nicholas Kline
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # Solar Flair
2
+
3
+ Solar Flair is an open source project and the Jekyll theme that [Solar Innovations](https://solarinnovations.com) uses accross their [Planning.Solar websites](https://planning.solar).
4
+
5
+ The theme is designed to have 4 primary branding colors that can be toggled on/off through the config file.
6
+
7
+ The [demo site](http://solarflair.url.solar/) shows four different theme styles.
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "solar-flair"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: solar-flair
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install solar-flair
31
+
32
+ ## Dependentcies
33
+
34
+ ### CDN
35
+
36
+ You can set `asset_cdn: 1` for unminified assets served via a CDN or `asset_cdn: 2` for minified assets served via CDN in your `_config` file.
37
+
38
+ Add the following repositories as submodules under `/assets/<dependentcy submodule>`. Be sure to set `asset_cdn: 0` so your local assets are loaded instead of through a CDN.
39
+
40
+ ### Local
41
+
42
+ **jQuery:**
43
+ `https://github.com/jquery/jquery`
44
+
45
+ **jQuery Easing:**
46
+ `https://github.com/gdsmith/jquery.easing`
47
+
48
+ **Bootstrap:**
49
+ `https://github.com/twbs/bootstrap`
50
+
51
+ **FontAwesome:**
52
+ `https://github.com/FortAwesome/Font-Awesome`
53
+
54
+ **ScrollReveal:**
55
+ `https://github.com/jlmakes/scrollreveal`
56
+
57
+ ## Usage
58
+
59
+ After installing the theme, bring down the homepage layout `/_layouts/home.html` to override and update with your content.
60
+
61
+ ### Build
62
+
63
+ The production tag must be present when building the theme. Pages are built with minified assets. Without the `production` tag, the non-minified versions will be used.
64
+
65
+ $ JEKYLL_ENV=production jekyll build
66
+
67
+
68
+ ## Development
69
+
70
+ To set up your environment to develop this theme, run `bundle install`.
71
+
72
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
73
+
74
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
75
+ To add a custom directory to your theme-gem, please edit the regexp in `solar-flair.gemspec` accordingly.
76
+
77
+ ## Contributing
78
+
79
+ [Bug reports](https://github.com/ndkline/solar-flair/issues) and [pull requests](https://github.com/ndkline/solar-flair/pulls) are welcome on GitHub at https://github.com/ndkline/solar-flair.
80
+
81
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
82
+
83
+ ## License
84
+
85
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
86
+
data/_includes/ad.html ADDED
@@ -0,0 +1,5 @@
1
+ <hr class="my-4" />
2
+ <section>
3
+
4
+ {% include contact.html %}
5
+ </section>
@@ -0,0 +1,68 @@
1
+ <div class="container">
2
+ <div class="row justify-content-center">
3
+
4
+ <div class="col-12 my-auto ">
5
+ <a href="https://solarinnovations.com/quote/greenhouse-quote-form/" target="_blank" class="quote">
6
+ <h3 class=" text-left " style="color:#428e42 ;font-weight:500;">Request a Quote</h3>
7
+ </a>
8
+ <p class="text-left" style="color:#7F7F7F;font-size:110%;">Work with Solar Innovations &#xae; to design and build your dream greenhouse!</p>
9
+ </div>
10
+ </div>
11
+ <div class="row">
12
+ <div class="col-12" >
13
+
14
+ <form
15
+ action="https://formspree.io/nkline@solarinnovations.com"
16
+ method="POST"
17
+ class="needs-validation"
18
+ novalidate
19
+ >
20
+
21
+ <div class="form-group">
22
+ <label for="fullName">Full Name</label>
23
+ <input type="text" name="Full Name" class="form-control" id="fullName" placeholder="Enter your full name" required>
24
+ </div>
25
+
26
+ <div class="form-group">
27
+ <label for="email">Email Address</label>
28
+ <input type="email" name="Email Address" class="form-control" id="email" placeholder="Enter email" name="_replyto" required>
29
+ </div>
30
+
31
+ <div class="form-group">
32
+ <label for="phone">Phone Number</label>
33
+ <input type="phone" name="Phone" class="form-control" id="phone" placeholder="Enter your phone number" pattern="^[0-9\-\+\s\(\)]*$" required>
34
+ </div>
35
+
36
+ <input type="text" name="_gotcha" style="display:none" />
37
+ <input type="hidden" name="_subject" value="New Greenhouse Inquiry!" />
38
+ <!-- <input type="hidden" name="_next" value="https://solarinnovations.com" /> -->
39
+ <input type="hidden" name="_next" value="https://greenhouse.planning.solar/" />
40
+ <button type="submit" class="btn btn-success" value="Post">Submit</button>
41
+ </form>
42
+
43
+ <script>
44
+ // Example starter JavaScript for disabling form submissions if there are invalid fields
45
+ (function() {
46
+ 'use strict';
47
+ window.addEventListener('load', function() {
48
+ // Fetch all the forms we want to apply custom Bootstrap validation styles to
49
+ var forms = document.getElementsByClassName('needs-validation');
50
+ // Loop over them and prevent submission
51
+ var validation = Array.prototype.filter.call(forms, function(form) {
52
+ form.addEventListener('submit', function(event) {
53
+ if (form.checkValidity() === false) {
54
+ event.preventDefault();
55
+ event.stopPropagation();
56
+ }
57
+ form.classList.add('was-validated');
58
+ }, false);
59
+ });
60
+ }, false);
61
+ })();
62
+ </script>
63
+ </div>
64
+ </div>
65
+ </div>
66
+
67
+ </section>
68
+
@@ -0,0 +1,155 @@
1
+ <footer class="footer">
2
+
3
+ {% assign color = page.color | default: site.theme_color %}
4
+
5
+ <section class="grad-{{ color }} ">
6
+ {% if page.url == "/" && site.cta_gs_url %}
7
+
8
+ <div class="container-fluid py-5">
9
+ <div class="row">
10
+ <div class="col-12 my-auto">
11
+ <h3 class="display-5 text-center sr-contact" style="font-weight:900;">Kickstart your development with Solar Flair</h3>
12
+ </div>
13
+ <div class="col-12 my-auto text-center pt-3">
14
+ {% if site.cta_gs_target == '_blank' %}
15
+ <!-- TODO: update to stable from alpha format -->
16
+ <button type="button" class="btn btn-outline-light sr-button" onclick="window.open('{{ site.cta_gs_url }}', '_blank');" >Get Started</button>
17
+ {% else %}
18
+ <button type="button" class="btn btn-outline-light sr-button" onclick="location.href = '{{ site.cta_gs_url }}';" >Get Started</button>
19
+ {% endif %}
20
+ </div>
21
+ </div>
22
+ </div>
23
+ {% endif %}
24
+ <hr class="grad">
25
+
26
+ <div class="container-fluid py-5">
27
+ <div class="row justify-content-center">
28
+ <div class="col-4 text-center my-auto">
29
+
30
+ <!-- <h4><small>This site was brought to you by</small></h4> -->
31
+ <a href="{{ site.footer-brand_url }}">
32
+ <img src="{{ site.footer-brand_img_url }}" alt="{{ site.footer-brand_img_alt }}" class="img-fluid sr-contact">
33
+ </a>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </section>
38
+
39
+ <div class="container-fluid" style=" padding-top:3%;">
40
+ <div class="row">
41
+
42
+ <div class="col-4 my-auto">
43
+ <div class="container-fluid text-center list-unstyled">
44
+ <div class="row">
45
+ <div class="col-3 py-2">
46
+ <a target="_blank" alt="Twitter" href="https://twitter.com/{{ site.twitter }}">
47
+ <i class="fab fa-twitter-square fa-3x icon-grey" aria-hidden="true"></i>
48
+ </a>
49
+ </div>
50
+ <div class="col-3 py-2">
51
+ <a class="grey" target="_blank" alt="Pinterest" href="https://www.pinterest.com/{{ site.pinterest }}/">
52
+ <i class="fab fa-pinterest fa-3x" aria-hidden="true"></i>
53
+ </a>
54
+ </div>
55
+ <div class="col-3 py-2">
56
+ <a target="_blank" alt="Facebook" href="https://www.facebook.com/{{ site.facebook }}/">
57
+ <i class="fab fa-facebook-square fa-3x icon-grey" aria-hidden="true"></i>
58
+ </a>
59
+ </div>
60
+ <div class="col-3 py-2">
61
+ <a class="grey" target="_blank" alt="Instagram" href="https://www.instagram.com/{{ site.instagram }}/">
62
+ <i class="fab fa-instagram fa-3x" aria-hidden="true"></i>
63
+ </a>
64
+ </div>
65
+ <div class="col-3 py-2">
66
+ <a class="grey" target="_blank" alt="Houzz" href="https://www.houzz.com/pro/{{ site.houzz }}">
67
+ <i class="fab fa-houzz fa-3x" aria-hidden="true"></i>
68
+ </a>
69
+ </div>
70
+ <div class="col-3 py-2">
71
+ <a target="_blank" alt="LinkedIn" href="https://www.linkedin.com/company/{{ site.linkedin }}/">
72
+ <i class="fab fa-linkedin fa-3x icon-grey" aria-hidden="true"></i>
73
+ </a>
74
+ </div>
75
+ <div class="col-3 py-2">
76
+ <a class="grey" target="_blank" alt="Youtube" href="https://www.youtube.com/channel/{{ site.youtube }}">
77
+ <i class="fab fa-youtube fa-3x" aria-hidden="true"></i>
78
+ </a>
79
+ </div>
80
+ <div class="col-3 py-2">
81
+ <a target="_blank" alt="Google Plus" href="https://plus.google.com/+{{ site.google_plus }}/">
82
+ <i class="fab fa-google-plus-square fa-3x icon-grey" aria-hidden="true"></i>
83
+ </a>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ <div class="col-4 my-auto text-center">
89
+ <address>
90
+ <p class="grey">{{ site.address_1 }}<br>{{ site.address_2 }}</p>
91
+ </address>
92
+ <a href="tel:{{ site.phone }}">{{ site.phone }}</a>
93
+ </div>
94
+ <div class="col-4 my-auto">
95
+ <ul class="list-unstyled">
96
+
97
+ {% for links_bundle in site.meta_nav %}
98
+ {% if forloop.first == false %}
99
+ <li><hr class="{{ color }}-right"></li>
100
+ {% endif %}
101
+ {% for link in links_bundle %}
102
+ <li>
103
+ {% if forloop.first == false %}
104
+ <a class="grey" href="{{ link.url }}">
105
+ {{ link.page }}
106
+ </a>
107
+ {% else %}
108
+ <a href="{{ link.url }}"><strong >
109
+ {{ link.page }}
110
+ </strong></a>
111
+ {% endif %}
112
+ </li>
113
+ {% endfor %}
114
+ {% endfor %}
115
+
116
+ </ul>
117
+ </div>
118
+
119
+ </div>
120
+ </div>
121
+ </footer>
122
+
123
+ {% if site.asset_cdn == 2 %}
124
+ <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
125
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" crossorigin="anonymous"></script>
126
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js" integrity="sha384-feJI7QwhOS+hwpX2zkaeJQjeiwlhOP+SdQDqhgvvo1DsjtiSQByFdThsxO669S2D" crossorigin="anonymous"></script>
127
+ <script src="https://unpkg.com/scrollreveal/dist/scrollreveal.min.js"></script>
128
+ <script src="/assets/solar-flair.min.js" media="nope!" onload="this.media='all'"></script>
129
+
130
+ {% elsif site.asset_cdn == 1 }
131
+ <script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
132
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.js" crossorigin="anonymous"></script>
133
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.js" integrity="sha384-feJI7QwhOS+hwpX2zkaeJQjeiwlhOP+SdQDqhgvvo1DsjtiSQByFdThsxO669S2D" crossorigin="anonymous"></script>
134
+ <script src="https://unpkg.com/scrollreveal/dist/scrollreveal.js"></script>
135
+ <script src="/assets/solar-flair.js" media="nope!" onload="this.media='all'"></script>
136
+
137
+ {% else %}
138
+ {% if jekyll.environment == "production" %}
139
+ <script src="/assets/jquery/dist/jquery.min.js" media="nope!" onload="this.media='all'"></script>
140
+ <script src="/assets/jquery.easing/jquery.easing.min.js" media="nope!" onload="this.media='all'"></script>
141
+ <script src="/assets/bootstrap/dist/js/bootstrap.bundle.min.js" media="nope!" onload="this.media='all'"></script>
142
+ <script src="/assets//scrollreveal/dist/scrollreveal.min.js" media="nope!" onload="this.media='all'"></script>
143
+ <script src="/assets/solar-flair.min.js" media="nope!" onload="this.media='all'"></script>
144
+ {% else %}
145
+ <script src="/assets/jquery/dist/jquery.js" media="nope!" onload="this.media='all'"></script>
146
+ <script src="/assets/jquery.easing/jquery.easing.js" media="nope!" onload="this.media='all'"></script>
147
+ <script src="/assets/bootstrap/dist/js/bootstrap.bundle.js" media="nope!" onload="this.media='all'"></script>
148
+ <script src="/assets//scrollreveal/dist/scrollreveal.js" media="nope!" onload="this.media='all'"></script>
149
+ <script src="/assets/solar-flair.js" media="nope!" onload="this.media='all'"></script>
150
+ {% endif %}
151
+ {% endif %}
152
+
153
+
154
+
155
+
@@ -0,0 +1,92 @@
1
+ <head>
2
+ {% assign color = page.color | default: site.theme_color %}
3
+ <!-- Google Tag Manager -->
4
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
5
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
6
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
7
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
8
+ })(window,document,'script','dataLayer','GTM-MCG4RJC');</script>
9
+ <!-- End Google Tag Manager -->
10
+
11
+ <meta charset="utf-8">
12
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
13
+ <meta name="viewport" content="width=device-width, initial-scale=1">
14
+
15
+ <!-- Tracking Validation: Yandex, Bing, FB, Google -->
16
+ <meta name="yandex-verification" content="6ab77a64a91c54d0" />
17
+ <meta name="msvalidate.01" content="AB51D345A8E49FBE4FC0756234B693D2" />
18
+ <meta property="fb:app_id" content="398910240558764" />
19
+ <meta name="google-site-verification" content="fSi6TL-h5uyqo_2NjG-XPaS0qZMXo3PiOBumy3N6ZEM" />
20
+
21
+ <!-- Meta Tags -->
22
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
23
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
24
+ <link rel="icon" href="/assets/solar_assets/favicons/{{ color }}/favicon.png">
25
+
26
+ <!-- Open Graph Tags -->
27
+ <meta content="{{ site.title }}" property="og:site_name">
28
+ {% if page.title %}
29
+ <meta content="{{ page.long_title }}" property="og:title">
30
+ {% else %}
31
+ <meta content="{{ site.title }}" property="og:title">
32
+ {% endif %}
33
+ {% if page.long_title %}
34
+ <meta content="article" property="og:type">
35
+ {% else %}
36
+ <meta content="website" property="og:type">
37
+ {% endif %}
38
+ {% if page.description %}
39
+ <meta content="{{ page.description }}" property="og:description">
40
+ {% else %}
41
+ <meta content="{{ site.description }}" property="og:description">
42
+ {% endif %}
43
+ {% if page.url %}
44
+ <meta content="{{ site.url }}{{ page.url }}" property="og:url">
45
+ {% endif %}
46
+ {% if page.date %}
47
+ <meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
48
+ <!-- <meta content="{{ site.url }}/about/" property="article:author"> -->
49
+ {% endif %}
50
+ {% if page.cover %}
51
+ <meta content="{{ page.cover }}" property="og:image">
52
+ <meta content="{{ page.cover_alt }}" property="og:image:alt">
53
+ {% else %}
54
+ <meta content="{{ site.url }}/assets/images/cover-photos/optimized-home-cover.jpg" property="og:image">
55
+ <meta content="Planning your greenhouse cover photo" property="og:image:alt">
56
+ {% endif %}
57
+ {% if page.categories %}
58
+ {% for category in page.categories limit:1 %}
59
+ <meta content="{{ category }}" property="article:section">
60
+ {% endfor %}
61
+ {% endif %}
62
+ {% if page.tags %}
63
+ {% for tag in page.tags %}
64
+ <meta content="{{ tag }}" property="article:tag">
65
+ {% endfor %}
66
+ {% endif %}
67
+
68
+ {% if site.asset_cdn == 2 %}
69
+ <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
70
+ <link href="https://use.fontawesome.com/releases/v5.0.7/css/all.css" rel="stylesheet">
71
+ {% elsif site.asset_cdn == 1 }
72
+ <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
73
+ <link href="https://use.fontawesome.com/releases/v5.0.7/css/all.css" rel="stylesheet">
74
+ {% else %}
75
+ {% if jekyll.environment == "production" %}
76
+ <link rel="stylesheet" href="{{ "/assets/bootstrap/dist/css/bootstrap.min.css" | relative_url }}" media="nope!" onload="this.media='all'">
77
+ <link rel="stylesheet" href="{{ "/assets/font-awesome/web-fonts-with-css/css/fontawesome-all.min.css" | relative_url }}" media="nope!" onload="this.media='all'">
78
+ {% else %}
79
+ <link rel="stylesheet" href="{{ "/assets/bootstrap/dist/css/bootstrap.css" | relative_url }}" media="nope!" onload="this.media='all'">
80
+ <link rel="stylesheet" href="{{ "/assets/font-awesome/web-fonts-with-css/css/fontawesome-all.css" | relative_url }}" media="nope!" onload="this.media='all'">
81
+ {% endif %}
82
+ {% endif %}
83
+
84
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}" media="nope!" onload="this.media='all'">
85
+
86
+ <link rel="canonical" href="{{ site.url | replace:'index.html','' | absolute_url }}">
87
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
88
+
89
+
90
+
91
+
92
+ </head>
@@ -0,0 +1,47 @@
1
+ <header role="banner">
2
+ {% assign pages = site.pages | sort: 'weight' %}
3
+ {% assign default_paths = pages | map: "path" %}
4
+ {% assign page_paths = site.header_pages | default: default_paths %}
5
+ {% assign color = page.color | default: site.theme_color %}
6
+
7
+ {% if page_paths %}
8
+
9
+ <nav id="mainNav" class="navbar navbar-expand-lg justify-content-between navbar-light fixed-top">
10
+ <a class="navbar-brand" href="{{ site.brand_url }}">
11
+ <img src="/assets/solar_assets/favicons/{{ color }}/favicon.png" height="30" alt=""></a>
12
+ {% if site.title_1 && site.title_2 %}
13
+ <a class="nav-link sitename" href="/"><span class="bold {{ color }} ">{{ site.title_1 }}</span> <span class="grey">{{ site.title_2 }}</span> <span class="sr-only">(current)</span>
14
+ {% else %}
15
+ <a class="nav-link sitename" href="/"><span class="bold">{{ site.title }}</span> <span class="sr-only">(current)</span>
16
+ {% endif %}
17
+ </a>
18
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
19
+ <span class="navbar-toggler-icon"></span>
20
+ </button>
21
+
22
+ <div class="collapse navbar-collapse " id="navbar">
23
+
24
+ <ul class="navbar-nav ml-auto">
25
+
26
+ {% for path in page_paths %}
27
+ {% assign my_page = site.pages | where: "path", path | first %}
28
+ {% if my_page.title %}
29
+ {% if my_page.menu == 'main' %}
30
+ <li class="nav-item"></li>
31
+ <a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
32
+ </li>
33
+ {% endif %}
34
+ {% endif %}
35
+ {% endfor %}
36
+ {% if site.github %}
37
+ <li class="nav-item"></li>
38
+ <a class="nav-link" href="{{ site.github_url }}" target="_blank"><i class="fab fa-github"></i></a>
39
+ </li>
40
+ {% endif %}
41
+
42
+ </ul>
43
+
44
+ </div>
45
+ </nav>
46
+ {% endif %}
47
+ </header>