jekyll-materialdocs 1.1.1 → 1.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/_includes/menu.html +15 -11
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8633171b81ecec9a99061412fc03e9a5863d4d0d
4
- data.tar.gz: 247a1d6d1f5fffa1d4b57d0e5bc064df85fbe1ca
3
+ metadata.gz: 203271be7df13c0f1adaf75c85747da9b5a11476
4
+ data.tar.gz: 985bac8cb4bc77d1de91673930d7addf3f888d54
5
5
  SHA512:
6
- metadata.gz: 09bc752b0d158fd89c634e54bcd2e45cb2085ac9badaaea908e7c2044afe621eb808eeeb4cf9b6d71a6142dbb92095f2e7438f522954502c93ace7405488ab63
7
- data.tar.gz: b758dc6edc1bb92a4cdd470c0902e29f0b3aa26d0d255f2c14b1c55b1cb0bd4f16ce5016498255bec176d0d75a403c0b194cccb7b3b5a9577deae2a564ff6a59
6
+ metadata.gz: 5c98e915a490c4e29d33dfc166d5d17842fc2f4df08c750ca86941026bfdc4f92422e6506c9e361849a8013cdb831f55e15bdb4ab0c3de61abecf21481017e3e
7
+ data.tar.gz: 7f2be8e550a042bc6d83f4cf83c5fc4be112d8f470a8e4ec8d0dba7fb50d2456e4ae287375c5feae98e2c259960cd0e6aa0309afd88418a40b7dd7cd363e6fdd
data/README.md CHANGED
@@ -48,7 +48,7 @@ remote_theme: chromatical/jekyll-materialdocs
48
48
  ## Site Options
49
49
  ```yaml
50
50
  mdl_colors: indigo-pink # a supported Material Design Lite color scheme
51
- copyright: Your Name # will override the copyright notice (default is site_name)
51
+ copyright: Your Name # will override the copyright notice (default is site title)
52
52
  ```
53
53
  MaterialDocs supports changing the color scheme by setting `mdl_colors` in _config.yml to a supported Material Design Lite scheme (e.g. indigo-pink, deep_orange-blue). Use the [MDL theme builder](https://getmdl.io/customize/index.html) to find color schemes.
54
54
 
@@ -56,7 +56,7 @@ MaterialDocs supports changing the color scheme by setting `mdl_colors` in _conf
56
56
 
57
57
  MaterialDocs supports a few optional custom values in the YAML front matter.
58
58
  ```yaml
59
- menu: Example Page # will use this as the menu item text instead of title
59
+ menu: Example Page # will use this as the menu item text instead of title, set to false to remove from menu
60
60
  parent: index.md # will make this menu item a child of the index.md item
61
61
  weight: 2 # smaller weights rise to the top of the menu
62
62
  mdl_colors: deep_orange-blue # override global color scheme for this page
data/_includes/menu.html CHANGED
@@ -1,17 +1,21 @@
1
1
  {% assign sorted_pages = site.pages | sort: 'weight'%}
2
2
  {% for node in sorted_pages %}
3
- {% if node.menu or node.title %}
4
- {% unless node.parent %}
5
- <a class="mdl-navigation__link parent {% if node.url == page.url or page.parent == node.path %}is-active{% endif %}" href="{{ node.url | absolute_url }}">{% if node.menu %}{{ node.menu }}{% else %}{{ node.title }}{% endif %}</a>
6
- {% for child in sorted_pages %}
7
- {% if node.menu or node.title %}
8
- {% if child.parent %}
9
- {% if child.parent == node.path %}
10
- <a class="mdl-navigation__link child {% if child.url == page.url %}is-active{% endif %}" href="{{ child.url | absolute_url }}">{% if child.menu %}{{ child.menu }}{% else %}{{ child.title }}{% endif %}</a>
3
+ {% if node.menu != false %}
4
+ {% if node.menu or node.title %}
5
+ {% unless node.parent %}
6
+ <a class="mdl-navigation__link parent {% if node.url == page.url or page.parent == node.path %}is-active{% endif %}" href="{{ node.url | absolute_url }}">{% if node.menu %}{{ node.menu }}{% else %}{{ node.title }}{% endif %}</a>
7
+ {% for child in sorted_pages %}
8
+ {% if child.menu != false %}
9
+ {% if child.menu or child.title %}
10
+ {% if child.parent %}
11
+ {% if child.parent == node.path %}
12
+ <a class="mdl-navigation__link child {% if child.url == page.url %}is-active{% endif %}" href="{{ child.url | absolute_url }}">{% if child.menu %}{{ child.menu }}{% else %}{{ child.title }}{% endif %}</a>
13
+ {% endif %}
14
+ {% endif %}
11
15
  {% endif %}
12
16
  {% endif %}
13
- {% endif %}
14
- {% endfor %}
15
- {% endunless %}
17
+ {% endfor %}
18
+ {% endunless %}
19
+ {% endif %}
16
20
  {% endif %}
17
21
  {% endfor %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-materialdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-13 00:00:00.000000000 Z
11
+ date: 2018-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll