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 +4 -4
- data/README.md +6 -0
- data/_includes/footer.html +18 -17
- data/_includes/head.html +4 -2
- data/_includes/resources.html +1 -1
- data/_layouts/blog.html +4 -3
- data/_layouts/default.html +8 -3
- data/_layouts/home.html +2 -1
- data/_layouts/page.html +18 -6
- data/_layouts/post.html +4 -2
- data/_layouts/teaser.html +27 -0
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9251718bafbd713be06c090a03952da98322e18878468d6052321ea74cc8ea5c
|
|
4
|
+
data.tar.gz: 832977c41508214a8ba21f5d15c97ca23058cf46526e656186beefa77e8784f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/_includes/footer.html
CHANGED
|
@@ -94,25 +94,26 @@
|
|
|
94
94
|
<div class="col-4 my-auto">
|
|
95
95
|
<ul class="list-unstyled">
|
|
96
96
|
|
|
97
|
-
{%
|
|
98
|
-
{%
|
|
99
|
-
|
|
100
|
-
|
|
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','
|
|
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">
|
data/_includes/resources.html
CHANGED
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>
|
data/_layouts/default.html
CHANGED
|
@@ -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=
|
|
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
|
-
{%
|
|
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 {{
|
|
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
|
|
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
|
-
|
|
40
|
-
|
|
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-
|
|
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.
|
|
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-
|
|
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.
|
|
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).
|
|
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: []
|