sustain4-theme 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: deb04d8bbf439520822d41d0a5a6d1da2c047fbab06e7d9de335becc31ba1efa
4
- data.tar.gz: 28700350eab638f73a58da3033f790b4922c146eaee13ea001a2ada262692167
3
+ metadata.gz: 5a1824ff937ceea4915fed3bd88aa46063a0df616baf4bfd3c4658bab8d82c9a
4
+ data.tar.gz: 2ddda76a14ae75f306580deb80d3561de01089a162cd7dd1b8231a497b20d271
5
5
  SHA512:
6
- metadata.gz: 5583d10cecd55d823614bdc8454b29ff00bc2180f148da3e759e097a075c1367e26f62c8183a171f8a0c1ec8478cd84027f7222280752ff0e1acea2aa1dee712
7
- data.tar.gz: 1c50adafb0e8b74b067f438a417c33b6b78c5831b3749b0a7b14f0b807446d71e469847aba34add7e6efcdbdabbedb204fb8bf33a509fe45fb3053d0a49928b0
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), November 2018
55
+ [John Pitchko](https://github.com/johnpitchko), December 2018
52
56
 
53
57
  [Sumit Murari](https://github.com/murarisumit), November 2015
54
58
 
@@ -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: #fff;
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: #ffffff;
30
- border-color: #ffffff;
43
+ background-color: $smoky-white;
44
+ border-color: $smoky-white;
31
45
 
32
46
  .navbar-brand {
33
47
  color: #6b6b6b
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sustain4-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Pitchko