jumbo-jekyll-theme 3.3.8 → 3.3.9

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: a40b6b6a6f280b959f5de05c97d0e91d60dc09791d5a1d1473635c8fcc32d915
4
- data.tar.gz: cd9572a992976a4f37c783eccd01eadb8770a356f64042b7b1ca9ea5f4323f36
3
+ metadata.gz: 0f9d02cab84c65a7989dd4ba3ea6ec14ec9f282c536c34e8748a6d64f771a2a8
4
+ data.tar.gz: 2427cda43211ce56e948d958a988137565d2fdb84b1a0599bf539e1fd03638a5
5
5
  SHA512:
6
- metadata.gz: 3300abbd47697f27ef0d6401704350cbe3df196d7785383af501f6bd56d1925a9b6edb52ea775959b3434da999ed86e3ab15c74e40b3d431d43d1c62f68b8df7
7
- data.tar.gz: 646163f3e88edb61c2090f0cbdcce57225c689bcdfe35a75d79c28b42655d68c5a2a5226ff0e4991846753be4953966cbabad3c484ff2e15ad8530ddf35318b6
6
+ metadata.gz: 704f165325ddad4c26a594c4e5e8fbddffdd7d799fc65b67583b35c17c55263a753030f2f4a52e42a82317a97d348943bfdc8b3341b01e1bd6ab51f38dd00157
7
+ data.tar.gz: ddbfb05d6d0388191fba9eca214b1bbe5d9d376b9756abbdbc1e7df585961798cc247447cb05fef78bb81e7490ef64f5c50ce3a16d5a4aa61e1eaad8db3600de
data/README.md CHANGED
@@ -18,6 +18,97 @@ Some of the features this theme offers:
18
18
  * Generated breadcrumb
19
19
  * Easy navigation / footer management using YAML Data files.
20
20
 
21
+ ## Available Layouts
22
+
23
+ Below are a table showing the available layouts for you to use:
24
+ | Layout | Description |
25
+ | ------ | ----------- |
26
+ | jumbotron | This layout adds either a carousel header, background-image header or a breadcrumb header. Content using this layout should be added to Boostrap 3 rows. This
27
+ layout is useful when addng custom pages. |
28
+ | jumbotron-container (Most Common) | This is the exact same as the above but instead provides a Bootstrap 3 content container than can be used to add content to. |
29
+
30
+
31
+ ### Jumbotron Layout
32
+
33
+ If you are using a layout that contains `jumbotron` then you can choose to display an image carousel header, standard background image header or a simple breadcrumb.
34
+
35
+ **Jumbotron Settings**
36
+ With the jumbotron layouts you can add a title, sub title and buttons to your header through changing your pages' front matter.
37
+
38
+ The jumbotron `title` can be modified by changing the title value in the page front matter:
39
+
40
+ ```yaml
41
+ ---
42
+ title: Your Page Title (and jumbotron title)
43
+ ...
44
+ ---
45
+ ```
46
+
47
+ The jumbotron `sub title`/`description` can be modified by changing the description value in the page front matter:
48
+
49
+ ```yaml
50
+ ---
51
+ ...
52
+ description: >-
53
+ Your Page description (and jumbotron description/sub title)
54
+ ...
55
+ ---
56
+ ```
57
+
58
+ The jumbotron `buttons` can be added with the following front matter:
59
+
60
+ ```yaml
61
+ ---
62
+ ...
63
+ jumbotron:
64
+ ...
65
+ buttons:
66
+ - title: Learn More
67
+ url: /about/
68
+ icon: fa fa-github
69
+ ...
70
+ ...
71
+ ---
72
+ ```
73
+ The above should hopefully be fairly self explanatory other than the icon value which should be the icon class for a Font Awesome 4.7 Icon. For all available icons [click here](https://fontawesome.com/v4.7.0/icons/).
74
+
75
+
76
+ **Displaying an image carousel**
77
+
78
+ If you would like to display an image carousel for your page then add the following front matter to your page:
79
+
80
+ ```yaml
81
+ ---
82
+ ...
83
+ jumbotron:
84
+ ...
85
+ carousel-images:
86
+ - /assets/images/content/background-image1.jpg
87
+ - /assets/images/content/background-image2.png
88
+ - /assets/images/content/background-image3.jpg
89
+ ...
90
+ ...
91
+ ---
92
+ ```
93
+ Add as many images here as you would like. Even though these images are loaded lazily, try and make sure the images have been optimized as large images will increase the page load time. Also try to ensure the resolution of these images are fairly high.
94
+
95
+
96
+ **Displaying an background image based jumbotron**
97
+
98
+ ```yaml
99
+ ---
100
+ ...
101
+ jumbotron:
102
+ ...
103
+ background-image: /assets/images/content/background-image1.jpg
104
+ ...
105
+ ...
106
+ ---
107
+ ```
108
+ Here you can add image to be used an the background image of the jumbotron. Try and make sure the image has been compressed/optimized as large images will increase the page load time. Also try to ensure the resolution of these images are fairly high.
109
+
110
+
111
+
21
112
  # The Docs
22
113
  The documentation for this theme is currently available through the Collaborate space. I will be adding to readthedocs/github in due course.
23
114
 
@@ -1,6 +1,7 @@
1
1
  {% if site.data.nav.universal-nav %}
2
2
  {% include universal-nav.html %}
3
3
  {% endif %}
4
+ {% assign page_base = page.url | split: "/" %}
4
5
  <nav class="
5
6
  {% if layout.nav-light %}
6
7
  nav-light
@@ -42,11 +43,11 @@ navbar-inverse navbar-static" id="main-navigation">
42
43
  {% if section.options %}
43
44
  <li class="main dropdown menu
44
45
  {% for menu-item in section.options %}
45
- {% if page.url == menu-item.url %}
46
+ {% if menu-item.url contains page_base[1] %}
46
47
  active
47
48
  {% endif %}
48
49
  {% endfor %} ">
49
- <a {% if section.url %}href="{{section.url}}"{% endif %} class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
50
+ <a {% if section.url %}href="{{section.url}}"{% endif %} class="main-anchor dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
50
51
  {{section.title}} <span class="caret"></span>
51
52
  </a>
52
53
  <ul class="dropdown-menu menu">
@@ -80,12 +81,9 @@ navbar-inverse navbar-static" id="main-navigation">
80
81
  </ul>
81
82
  </li>
82
83
  {% else %}
83
- <li {% if section.url == page.permalink %}
84
- class="main active"
85
- {% else %}
86
- class="main"
87
- {% endif %}
88
- ><a href="{{section.url}}" title="{{section.title}}">{{section.title}}</a></li>
84
+ <li class="main {% if section.url contains page_base[1] %}active{% endif %}">
85
+ <a class="main-anchor" href="{{section.url}}" title="{{section.title}}">{{section.title}}</a>
86
+ </li>
89
87
  {% endif %}
90
88
  {% endfor %}
91
89
 
@@ -9,7 +9,7 @@ js-package: main
9
9
  {% include gtm-noscript.html %}
10
10
  {% endif %}
11
11
  <div id="wrapper" class="{% if layout.home == true and site.data.settings.home.jumbotron.enabled %}home{% else %}main{% endif %}">
12
- {% include_cached nav.html %}
12
+ {% include nav.html %}
13
13
  <div class="container-fluid">
14
14
  {{content}}
15
15
  {% if site.data.footer.include %}
@@ -11,6 +11,8 @@ $sub-footer-bg-color: #ccc;
11
11
  $footer-border-color: #272727;
12
12
  // Navbar
13
13
  $navbar-text-color: #fff !default;
14
+ $navbar-hover-text-color: #fff !default;
15
+ $navbar-hover-background-color: $brand-primary !default;
14
16
  $navbar-height: 66px;
15
17
  $navbar-inverse-bg: #000;
16
18
  $navbar-inverse-color: #fff;
@@ -959,4 +959,18 @@ transform: rotate(0);
959
959
  .navbar-collapse::-webkit-scrollbar-thumb {
960
960
  background-color: $brand-primary;
961
961
  outline: 1px solid lighten($navbar-inverse-bg, 90%);
962
+ }
963
+ // Highlight nav menu options
964
+ li.main.active a.main-anchor {
965
+ background-color: $navbar-hover-background-color;
966
+ }
967
+ li.dropdown.menu.active.open > a {
968
+ color: $navbar-hover-text-color;
969
+ }
970
+ #main-navigation li.main:hover a.main-anchor {
971
+ background-color: $navbar-hover-background-color;
972
+ color: $navbar-hover-text-color !important;
973
+ }
974
+ #main-navigation li.main:hover a.main-anchor {
975
+ transition: background-color 300ms linear;
962
976
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.8
4
+ version: 3.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-11 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll