conference-mgeek.in-jekyll-theme 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -21
- data/_includes/navbarauto.html +69 -13
- data/_layouts/default.html +1 -1
- data/assets/css/style.css +5 -0
- 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: 279c6560357743216382b86a06880171acb50b208298abc140e4466cf3290130
|
4
|
+
data.tar.gz: 4fbb7dfbfb74086c99bf69731f39b3103877d77fa3fbba4af1f2639aa4f13064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d49cb3c3b8ce84176df1a810ee8df1d8ce513a0222312df5e893b15a7fab2996e4b32079739db96d8a30c07ac04422505e998dd41e7c49600b498b85bd96b61f
|
7
|
+
data.tar.gz: 815e942cc9d837077cf9524e2a765146c8fa56c6ea679110666794b3b2ca1dcec9d0123750168c43e1fb338fb72e69626dbc5f375d7e2b17e6c54a3596683d63
|
data/README.md
CHANGED
@@ -1,30 +1,13 @@
|
|
1
1
|
---
|
2
2
|
# Feel free to add content and custom Front Matter to this file.
|
3
3
|
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
|
4
|
-
|
5
|
-
layout:
|
4
|
+
title: Read Me
|
5
|
+
layout: page
|
6
|
+
topmenu: true
|
7
|
+
order: 10
|
6
8
|
|
7
9
|
|
8
10
|
---
|
9
|
-
|
10
|
-
## add topmenu
|
11
|
-
|
12
|
-
add yaml
|
13
|
-
`topmenu: true` to make page apper in topmenu
|
14
|
-
`order: <>` to order topmenu
|
15
|
-
|
16
|
-
## add submenu under topmenu
|
17
|
-
add yaml
|
18
|
-
`submenu: true` to make page as in submenu
|
19
|
-
`submenutype: topmenulabel` add this to list as submenu under topmenulabel
|
20
|
-
`submenuindex: <>` to order submenu
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
add yaml
|
25
|
-
`topmenu: true` to make page apper in topmenu
|
26
|
-
|
27
|
-
|
28
11
|
# [Conference-mgeek-jekyll-theme](https://rubygems.org/gems/conference-mgeek.in-jekyll-theme)
|
29
12
|
{: class="mt-5"}
|
30
13
|
---
|
@@ -136,6 +119,27 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
|
|
136
119
|
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
137
120
|
To add a custom directory to your theme-gem, please edit the regexp in `conference-mgeek.in.gemspec` accordingly.
|
138
121
|
|
122
|
+
|
123
|
+
|
124
|
+
## add topmenu
|
125
|
+
|
126
|
+
add yaml
|
127
|
+
`topmenu: true` to make page apper in topmenu
|
128
|
+
`order: <>` to order topmenu
|
129
|
+
|
130
|
+
## add submenu under topmenu
|
131
|
+
add yaml
|
132
|
+
`submenu: true` to make page as in submenu
|
133
|
+
`submenutype: topmenulabel` add this to list as submenu under topmenulabel
|
134
|
+
`submenuindex: <>` to order submenu
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
add yaml
|
139
|
+
`topmenu: true` to make page apper in topmenu
|
140
|
+
|
141
|
+
|
142
|
+
|
139
143
|
# License
|
140
144
|
|
141
145
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_includes/navbarauto.html
CHANGED
@@ -1,18 +1,74 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false"
|
4
|
-
aria-label="Toggle navigation">
|
5
|
-
<span class="navbar-toggler-icon"></span>
|
6
|
-
</button>
|
1
|
+
<div class="row">
|
2
|
+
<div class="container-fluid">
|
7
3
|
|
4
|
+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="nav">
|
5
|
+
<div class="col-3">
|
6
|
+
<a class="navbar-brand" href="{{ site.url }}{{site.baseurl}}/">
|
7
|
+
<img height="60px" src="{{ site.url }}{{site.baseurl}}/assets/images/logo.png" alt="{{ site.title }}"
|
8
|
+
title="{{ site.title }}">
|
9
|
+
</a>
|
10
|
+
</div>
|
11
|
+
{% assign ordered_pages=site.pages|sort:"order" %}
|
8
12
|
|
9
|
-
<
|
10
|
-
|
13
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
14
|
+
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
15
|
+
</button>
|
11
16
|
|
12
|
-
<li class="navbar-item"><a class="nav-link" href="{{ siteurl }}{{site.baseurl}}{{ post.url }}">{{ post.title }}</a></li>
|
13
|
-
<br>
|
14
17
|
|
15
|
-
|
16
|
-
|
18
|
+
<div class="col-9 right-aligned text-right">
|
19
|
+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
20
|
+
<ul class="navbar-nav ">
|
21
|
+
{% for p1 in ordered_pages %}
|
17
22
|
|
18
|
-
|
23
|
+
{% if p1.topmenu == true %}
|
24
|
+
<li class="nav-item">
|
25
|
+
<a href="{{site.baseurl}}{{p1.url}}" class="nav-link">
|
26
|
+
{{p1.title}}
|
27
|
+
</a>
|
28
|
+
</li>
|
29
|
+
{% assign a2=site.submenu %}
|
30
|
+
{% for a2loop in a2%}
|
31
|
+
{%if a2loop==p1.title%}
|
32
|
+
|
33
|
+
<li class="nav-item">
|
34
|
+
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown"
|
35
|
+
aria-haspopup="true" aria-expanded="false">
|
36
|
+
</a>
|
37
|
+
|
38
|
+
|
39
|
+
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
|
40
|
+
{% assign ordered_pages_p2=site.pages|sort:"submenuindex" %}
|
41
|
+
{% for p2 in ordered_pages_p2 %}
|
42
|
+
{% if p2.submenu == true %}
|
43
|
+
{% for a1 in p2.submenutype %}
|
44
|
+
{% if a1 == p1.title %}
|
45
|
+
<a href="{{site.baseurl}}{{p2.url}}" class="dropdown-item">{{p2.title}}</a>
|
46
|
+
{% endif %}
|
47
|
+
{% endfor %}
|
48
|
+
{% endif %}
|
49
|
+
{% endfor %}
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</li>
|
53
|
+
|
54
|
+
|
55
|
+
{%endif%}
|
56
|
+
{%endfor%}
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
{% endif %}
|
61
|
+
{% endfor %}
|
62
|
+
</ul>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
</nav>
|
73
|
+
</div>
|
74
|
+
</div>
|
data/_layouts/default.html
CHANGED
data/assets/css/style.css
CHANGED