solar-flair 0.1.7 → 0.1.10

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: 13f4aa6263a2b1f92de86281507e84223fb1f70eb0f6f6daddeee5257d4cd726
4
- data.tar.gz: 4de1874b6b0362fb559b658de0204df69036642b0e343482be06449fabcc75d9
3
+ metadata.gz: 9251718bafbd713be06c090a03952da98322e18878468d6052321ea74cc8ea5c
4
+ data.tar.gz: 832977c41508214a8ba21f5d15c97ca23058cf46526e656186beefa77e8784f8
5
5
  SHA512:
6
- metadata.gz: d375e90edb6df61ce2b14a21c9b6f78f308653e5d2a15f3058da2375d4e20cdd0eff1eada0a7b4e4240a7b3a0c61b7c5570fd93f5d2c48f99a824509acae0f7b
7
- data.tar.gz: 2e3ae92f3691b04ca62eef3cb675442d926d820b1848ec1a0bebaf4228153c6c3b68195f077d1a7a17488f5c1db7b083aec93bc81bb1036275e15f7369fc8e80
6
+ metadata.gz: f0365429b32eeac6bd2c818ff6830c3132251bd8639b458b4de386abc95e772b464bd262f84a8598a8214196a1a5545adaa7ec4e7213be149bc0156b27d98c48
7
+ data.tar.gz: df5f73ff6c3c09ef5620d891be6b4506c0a756a574c49d2941a5d4b46bf97f8ec5fe8ccb6d695bc0adb13f75ead5609764b2d9c26654b3fcdb83c4dd8894e276
data/README.md CHANGED
@@ -31,6 +31,10 @@ Or install it yourself as:
31
31
 
32
32
  ## Dependentcies
33
33
 
34
+ ## Config File
35
+
36
+ Copy the `_config.yml` file from this repository into your project and modify the settings to your website.
37
+
34
38
  ### CDN
35
39
 
36
40
  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.
@@ -60,6 +64,8 @@ After installing the theme, bring down the homepage layout `/_layouts/home.html`
60
64
 
61
65
  ### Build
62
66
 
67
+ **Footer:** The `_footer-nav` collection needs to be added before building. Checkout [our submodule](https://github.com/SolarInnovations/_footer-nav) for an example `https://github.com/SolarInnovations/_footer-nav`.
68
+
63
69
  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
70
 
65
71
  $ JEKYLL_ENV=production jekyll build
@@ -94,25 +94,26 @@
94
94
  <div class="col-4 my-auto">
95
95
  <ul class="list-unstyled">
96
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>
97
+ {% assign nav-section = site.footer-nav | sort: 'weight' %}
98
+ {% for section in nav-section %}
99
+ {% if forloop.first == false and section.weight > 0 %}
100
+ <li><hr class="{{ color }}-right"></li>
111
101
  {% endif %}
112
- </li>
113
- {% endfor %}
114
- {% endfor %}
115
102
 
103
+ {% for link in section.nav %}
104
+ <li>
105
+ {% if forloop.first == false %}
106
+ <a class="grey" href="{{ link.url }}">
107
+ {{ link.title }}
108
+ </a>
109
+ {% else %}
110
+ <a href="{{ link.url }}"><strong >
111
+ {{ link.title }}
112
+ </strong></a>
113
+ {% endif %}
114
+ </li>
115
+ {% endfor %}
116
+ {% endfor %}
116
117
  </ul>
117
118
  </div>
118
119
 
data/_includes/head.html CHANGED
@@ -1,13 +1,15 @@
1
1
  <head>
2
2
  {% assign color = page.color | default: site.theme_color %}
3
+
4
+ {% if site.gtm_id %}
3
5
  <!-- Google Tag Manager -->
4
6
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
5
7
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
6
8
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
7
9
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
8
- })(window,document,'script','dataLayer','GTM-MCG4RJC');</script>
10
+ })(window,document,'script','dataLayer','{{ site.gtm_id }}');</script>
9
11
  <!-- End Google Tag Manager -->
10
-
12
+ {% endif %}
11
13
  <meta charset="utf-8">
12
14
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
13
15
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -1,4 +1,4 @@
1
- <sectionclass="container">
1
+ <section class="container">
2
2
  <div class="row">
3
3
  <div class="col-12">
4
4
 
data/_layouts/blog.html CHANGED
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
+ {% assign color = page.color | default: site.theme_color %}
4
5
 
5
6
  <div class="container" style="margin-top:66px">
6
7
  <div class="row">
@@ -36,10 +37,10 @@ layout: default
36
37
 
37
38
  {% for post in site.posts %}
38
39
  <a class="row" href="{{ post.url | prepend: site.baseurl }}">
39
- <div class="col-3">
40
- <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
40
+ <div class="col-3 text-right " >
41
+ <span class="post-meta text-d10-{{ color }}">{{ post.date | date: "%b %-d, %Y" }}</span>
41
42
  </div>
42
- <div class="col-9">
43
+ <div class="col-9 text-d10-{{ color }}">
43
44
  <h2>
44
45
  {{ post.title }}
45
46
  </h2>
@@ -5,17 +5,22 @@
5
5
 
6
6
  {% assign color = page.color | default: site.theme_color %}
7
7
  <body class="{{ color }}">
8
+ {% if site.gtm_id %}
8
9
  <!-- Google Tag Manager (noscript) -->
9
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MCG4RJC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
10
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.gtm_id }}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
10
11
  <!-- End Google Tag Manager (noscript) -->
11
-
12
+ {% endif %}
13
+
12
14
  {% include header.html %}
13
15
 
14
16
 
15
17
  {{ content }}
16
18
 
17
19
 
18
- {% include footer.html %}
20
+ {% assign footer = page.footer | default: 1 %}
21
+ {% if footer == 1 %}
22
+ {% include footer.html %}
23
+ {% endif %}
19
24
 
20
25
  </body>
21
26
 
data/_layouts/home.html CHANGED
@@ -2,9 +2,10 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ {% assign color = page.color | default: site.theme_color %}
5
6
 
6
7
 
7
- <div class="jumbotron jumbotron-fluid eq-height {{ site.theme_color }}-home vh{{ site.vertical_height }}" >
8
+ <div class="jumbotron jumbotron-fluid eq-height {{ color }}-home vh{{ site.vertical_height }}" >
8
9
  <div class="container bottom text-center py-5">
9
10
  <h1 class="display-3 mb-0 sr-contact">{{ site.title}}</h1>
10
11
  <p class="lead p-1 bold sr-contact" >{{ site.slug }}</p>
data/_layouts/page.html CHANGED
@@ -26,20 +26,32 @@ layout: default
26
26
  </div>
27
27
  {% endif %}
28
28
 
29
+
30
+
29
31
  {% if content %}
30
- <div class="col-12">
32
+ <div class="col">
31
33
 
32
- {{ content }}
34
+ {{ content | inject_anchors }}
33
35
  </div>
34
36
  {% endif %}
35
37
 
36
38
 
37
- {% if page.toc %}
39
+ {% if page.toc or site.resources %}
38
40
  <div class="col-12 col-md-4">
39
- <h4>Contents</h4>
40
- {{ content | toc_only }}
41
+ {% if site.resources %}
42
+ {% include resources.html %}
43
+ {% endif %}
44
+
45
+ {% if page.toc %}
46
+ <h4>Contents</h4>
47
+ {{ content | toc_only }}
48
+ {% endif %}
49
+
50
+ {% assign ad = page.ad | default: site.ad %}
51
+ {% if ad %}
52
+ {% include ad.html %}
53
+ {% endif %}
41
54
 
42
- {% include ad.html %}
43
55
  </div>
44
56
  {% endif %}
45
57
 
data/_layouts/post.html CHANGED
@@ -26,8 +26,10 @@ layout: default
26
26
  {% endif %}
27
27
 
28
28
  {% if content %}
29
- <div class="col-12">
30
-
29
+ <div class="col-3 text-right " >
30
+ <span class="post-meta text-d10-{{ color }}">{{ page.date | date: "%b %-d, %Y" }}</span>
31
+ </div>
32
+ <div class="col">
31
33
  {{ content }}
32
34
  </div>
33
35
  {% endif %}
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% assign color = page.color | default: site.theme_color %}
5
+ {% assign slug = page.slug | default: site.slug %}
6
+
7
+
8
+ <div class="jumbotron jumbotron-fluid eq-height {{ color }}-home vh{{ site.vertical_height }} mb-0" >
9
+ <div class="container bottom text-center py-5">
10
+ <h1 class="display-3 mb-0 sr-contact">{{ site.title}}</h1>
11
+ <p class="lead p-1 bold sr-contact" >{{ slug }}</p>
12
+
13
+ <button type="button" class="btn btn-outline-light sr-button" onclick="location.href = 'https://planning.solar';" >View More</button>
14
+
15
+
16
+ </div>
17
+ </div>
18
+
19
+
20
+
21
+ {{ content }}
22
+
23
+
24
+
25
+
26
+
27
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solar-flair
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Kline
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,7 +52,9 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '12.0'
55
- description:
55
+ description: Solar Flair is a flexible Jekyll theme allowing users to compile colorful
56
+ websites. Built using the latest version of Bootstrap (4) and FontAwesome (5). The
57
+ theme is developed for Solar Innovations and used in their Planning.Solar sites.
56
58
  email:
57
59
  - ndkline@theagora.us
58
60
  executables: []
@@ -72,6 +74,7 @@ files:
72
74
  - _layouts/home.html
73
75
  - _layouts/page.html
74
76
  - _layouts/post.html
77
+ - _layouts/teaser.html
75
78
  - _sass/solar-flair.scss
76
79
  - _sass/solar-flair/_base.scss
77
80
  - _sass/solar-flair/_gradients.scss
@@ -141,11 +144,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
144
  version: '0'
142
145
  requirements: []
143
146
  rubyforge_project:
144
- rubygems_version: 2.7.3
147
+ rubygems_version: 2.7.6
145
148
  signing_key:
146
149
  specification_version: 4
147
150
  summary: Solar Flair is a flexible Jekyll theme allowing users to compile colorful
148
- websites. Built using the latest version of Bootstrap (4) and FontAwesome (5). The
149
- theme is developed for <a href="https://solarinnovations.com/">Solar Innovations</a>
150
- and used in their <a href="https://planning.solar/">Planning.Solar</a> sites.
151
+ websites. Built using the latest version of Bootstrap (4) and FontAwesome (5).
151
152
  test_files: []