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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_includes/menu.html +15 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 203271be7df13c0f1adaf75c85747da9b5a11476
|
|
4
|
+
data.tar.gz: 985bac8cb4bc77d1de91673930d7addf3f888d54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{%
|
|
8
|
-
{% if child.
|
|
9
|
-
{% if child.
|
|
10
|
-
|
|
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
|
-
{%
|
|
14
|
-
{%
|
|
15
|
-
{%
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|