sustain4-theme 1.1.0 → 1.2.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 +4 -4
- data/README.md +5 -1
- data/_includes/header.html +10 -1
- data/_sass/_sustain4.scss +17 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a1824ff937ceea4915fed3bd88aa46063a0df616baf4bfd3c4658bab8d82c9a
|
4
|
+
data.tar.gz: 2ddda76a14ae75f306580deb80d3561de01089a162cd7dd1b8231a497b20d271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97aec5d87e9d152bf667a4d27a4596ac9b70142ac14b71fcb4da37aea86d1df96a214633aa9500ef04d8a2d00a2615d2e90522701b254f5713627605b842d479
|
7
|
+
data.tar.gz: db79ed63807747360ada036e16f94165643c9da46f057e91fa17f4c0b028063df1cdeb8c4fcf716ef236266a5041774a5102eed4c6cae0c0b3a1c1f9fbcf27eb
|
data/README.md
CHANGED
@@ -39,6 +39,10 @@ This version is a fork of [Sustain](https://github.com/jekyller/sustain) but fea
|
|
39
39
|
Simply clone/fork this repository, and then run `jekyll serve` inside the directory.
|
40
40
|
Edit the site attributes in *_config.yml* and edit the various entries in *_includes/* and *_posts/*.
|
41
41
|
|
42
|
+
### Navbar
|
43
|
+
|
44
|
+
Items in the navbar are defined in the *_data/navbar.yml* file. See this file for more details of the basic syntax. Users of the theme can dynamically add items to the navbar without having to edit any HTML. **Note** all HREFs/URLs require a leading `/`.
|
45
|
+
|
42
46
|
|
43
47
|
## Issues and contributing
|
44
48
|
|
@@ -48,7 +52,7 @@ Feel free pull-request your patches and fixes.
|
|
48
52
|
|
49
53
|
#### Contributors
|
50
54
|
|
51
|
-
[John Pitchko](https://github.com/johnpitchko),
|
55
|
+
[John Pitchko](https://github.com/johnpitchko), December 2018
|
52
56
|
|
53
57
|
[Sumit Murari](https://github.com/murarisumit), November 2015
|
54
58
|
|
data/_includes/header.html
CHANGED
@@ -1,12 +1,21 @@
|
|
1
|
+
{% assign navbar = site.data.navbar %}
|
2
|
+
|
3
|
+
|
1
4
|
<nav class="navbar navbar-expand-lg navbar-default">
|
2
5
|
<div class="container">
|
3
6
|
<div class="navbar-header">
|
4
7
|
<a class="navbar-brand" href="{{ site.baseurl }}/"><i class="fa fa-home"></i></a>
|
5
8
|
</div>
|
6
|
-
<ul class="navbar-nav ml-auto">
|
9
|
+
<!-- <ul class="navbar-nav ml-auto">
|
7
10
|
<li class="nav-item"><a class="nav-link" href="{{ site.baseurl }}/blog.html">BLOG</a></li>
|
8
11
|
<li class="nav-item"><a class="nav-link" href="{{ site.baseurl }}/projects.html">PROJECTS</a></li>
|
9
12
|
<li class="nav-item"><a class="nav-link" href="http://jekyller.github.io/vitae">RESUME</a></li>
|
13
|
+
</ul> -->
|
14
|
+
|
15
|
+
<ul class="navbar-nav ml-auto">
|
16
|
+
{% for nav-item in navbar %}
|
17
|
+
<li class="nav-item"><a href="{{ site.baseurl }}{{ nav-item.href }}" class="nav-link">{{ nav-item.name }}</a></li>
|
18
|
+
{% endfor %}
|
10
19
|
</ul>
|
11
20
|
</div>
|
12
21
|
</nav>
|
data/_sass/_sustain4.scss
CHANGED
@@ -1,9 +1,23 @@
|
|
1
1
|
@import "syntax";
|
2
2
|
|
3
|
+
|
4
|
+
|
5
|
+
$theme-color: #5BB66F;
|
6
|
+
$text-color: #3F4650;
|
7
|
+
$text-color-secondary: #545E6C;
|
8
|
+
$text-grey: #97AAC3;
|
9
|
+
$divider: #e8e8e8;
|
10
|
+
$lighter-grey: #ccc;
|
11
|
+
$darker-grey: #666;
|
12
|
+
$smoky-white: #f5f5f5;
|
13
|
+
$heart: #fb866a;
|
14
|
+
|
15
|
+
|
16
|
+
|
3
17
|
html,
|
4
18
|
body {
|
5
19
|
height: 100%;
|
6
|
-
background-color:
|
20
|
+
background-color: $smoky-white;
|
7
21
|
font-family: 'Source Sans Pro', sans-serif;
|
8
22
|
/* The html and body elements cannot have any padding or margin. */
|
9
23
|
border-top: 3px solid #27A822;
|
@@ -26,8 +40,8 @@ body {
|
|
26
40
|
margin-bottom: 10px;
|
27
41
|
}
|
28
42
|
.navbar-default {
|
29
|
-
background-color:
|
30
|
-
border-color:
|
43
|
+
background-color: $smoky-white;
|
44
|
+
border-color: $smoky-white;
|
31
45
|
|
32
46
|
.navbar-brand {
|
33
47
|
color: #6b6b6b
|