tessellate 0.1.2 → 0.1.3
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/_data/navigation.yml +61 -0
- data/_includes/_navigation.html +140 -0
- data/_includes/navigation.html +43 -0
- data/_sass/tessellate.scss +1 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6158448256cf518a2ad78cd350258c1d87dba1cef77103479c0b3a6b4cbd2e55
|
4
|
+
data.tar.gz: 0c4a6f83d24f9b8adbff55768c0d1e3dd960dcb82f6225f69c901aa5eac7c47f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6e598197b99396af5f94715de1911cd227e75c01204045c5efe095155750bcddbdf768f4e4570e5781abdd84d889b6c937a26dda89cc0a46cd55a36e4a4e5e
|
7
|
+
data.tar.gz: 25d03db0c72762dd2ef06cf8da3124d9c5166fa728e842f20c88145c7ed6bd562af2f0cf13eaa3067d8d69a5bb5672caced48b37c05f2688e98228ca4b1de4d4
|
@@ -0,0 +1,61 @@
|
|
1
|
+
- title: Home
|
2
|
+
url: "/"
|
3
|
+
side: left
|
4
|
+
|
5
|
+
- title: About
|
6
|
+
url: "/about/project/"
|
7
|
+
side: left
|
8
|
+
dropdown:
|
9
|
+
- title: "Project"
|
10
|
+
url: "/about/project/"
|
11
|
+
- title: "Team"
|
12
|
+
url: "/about/team/"
|
13
|
+
|
14
|
+
- title: Research
|
15
|
+
url: "/research/"
|
16
|
+
side: left
|
17
|
+
dropdown:
|
18
|
+
- title: "Task 1"
|
19
|
+
url: "/research/task-1/"
|
20
|
+
- title: "Task 2"
|
21
|
+
url: "/research/task-2/"
|
22
|
+
- title: "Task 3"
|
23
|
+
url: "/research/task-3/"
|
24
|
+
- title: "Task 4"
|
25
|
+
url: "/research/task-4/"
|
26
|
+
- title: "Task 5"
|
27
|
+
url: "/research/task-5/"
|
28
|
+
- title: "Task 6"
|
29
|
+
url: "/research/task-6/"
|
30
|
+
|
31
|
+
- title: "Education & Outreach"
|
32
|
+
url: "/education-outreach/"
|
33
|
+
side: left
|
34
|
+
|
35
|
+
- title: Resources
|
36
|
+
url: "/resources/"
|
37
|
+
side: left
|
38
|
+
dropdown:
|
39
|
+
- title: "Publications"
|
40
|
+
url: "/resources/publications/"
|
41
|
+
- title: "Code"
|
42
|
+
url: "/resources/code/"
|
43
|
+
- title: "Data"
|
44
|
+
url: "/resources/data/"
|
45
|
+
|
46
|
+
- title: "News & Events"
|
47
|
+
url: "/news-and-events/"
|
48
|
+
side: left
|
49
|
+
dropdown:
|
50
|
+
- title: "News"
|
51
|
+
url: "/news-and-events/news/"
|
52
|
+
- title: "Calendar"
|
53
|
+
url: "/calendar/"
|
54
|
+
|
55
|
+
- title: "Search"
|
56
|
+
url: "/search/"
|
57
|
+
side: right
|
58
|
+
|
59
|
+
- title: "Contact"
|
60
|
+
url: "/contact/"
|
61
|
+
side: right
|
@@ -0,0 +1,140 @@
|
|
1
|
+
{% comment %}
|
2
|
+
*
|
3
|
+
* To customize the navigation of *Feeling Responsive*,
|
4
|
+
* edit `_data/navigation.yml`.
|
5
|
+
*
|
6
|
+
{% endcomment %}
|
7
|
+
<div id="navigation" class="sticky">
|
8
|
+
<nav class="top-bar" role="navigation" data-topbar data-options="scrolltop: false">
|
9
|
+
<ul class="title-area">
|
10
|
+
<li class="name">
|
11
|
+
<h1 class="hide-for-large-up"><a href="{{ site.url }}{{ site.baseurl }}"
|
12
|
+
class="icon-network"> {{ site.title }}</a></h1>
|
13
|
+
</li>
|
14
|
+
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
|
15
|
+
<li class="toggle-topbar toggle-topbar-click menu-icon"><a><span>Nav</span></a></li>
|
16
|
+
</ul>
|
17
|
+
<section class="top-bar-section">
|
18
|
+
{% comment %}
|
19
|
+
|
20
|
+
__ ______ _ __ _ __ _
|
21
|
+
/ / ___ / __/ /_ / | / /___ __ __(_)___ _____ _/ /_(_)___ ____
|
22
|
+
/ / / _ \/ /_/ __/ / |/ / __ `/ | / / / __ `/ __ `/ __/ / __ \/ __ \
|
23
|
+
/ /___/ __/ __/ /_ / /| / /_/ /| |/ / / /_/ / /_/ / /_/ / /_/ / / / /
|
24
|
+
/_____/\___/_/ \__/ /_/ |_/\__,_/ |___/_/\__, /\__,_/\__/_/\____/_/ /_/
|
25
|
+
/____/
|
26
|
+
|
27
|
+
{% endcomment %}
|
28
|
+
<ul class="left">
|
29
|
+
{% for link in site.data.navigation %}
|
30
|
+
|
31
|
+
{% if link.url contains 'http' %}
|
32
|
+
{% assign domain = '' %}
|
33
|
+
{% assign _baseurl = '' %}
|
34
|
+
{% elsif link.url == '#' %}
|
35
|
+
{% assign domain = '' %}
|
36
|
+
{% assign _baseurl = site.baseurl %}
|
37
|
+
{% else %}
|
38
|
+
{% assign domain = site.url %}
|
39
|
+
{% assign _baseurl = site.baseurl %}
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
{% comment %} If there are links for left side begin {% endcomment %}
|
43
|
+
{% if link.side == 'left' %}
|
44
|
+
|
45
|
+
{% comment %} If left side WITHOUT dropdown menu do {% endcomment %}
|
46
|
+
{% if link.dropdown == nil %}
|
47
|
+
<li{% if link.url == page.url %} class="active"{% elsif page.homepage == true and link.url == '/' %} class="active"{% endif %}><a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a></li>
|
48
|
+
<li class="divider"></li>
|
49
|
+
|
50
|
+
{% comment %} If left side WITH dropdown menu do {% endcomment %}
|
51
|
+
{% else %}
|
52
|
+
|
53
|
+
<li class="has-dropdown{% if link.url == page.url %} active{% endif %}">
|
54
|
+
<a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a>
|
55
|
+
|
56
|
+
<ul class="dropdown">
|
57
|
+
{% for dropdown_link in link.dropdown %}
|
58
|
+
|
59
|
+
{% if dropdown_link.url contains 'http' %}
|
60
|
+
{% assign domain = '' %}
|
61
|
+
{% else %}
|
62
|
+
{% assign domain = site.url %}
|
63
|
+
{% endif %}
|
64
|
+
|
65
|
+
<li><a {% if dropdown_link.class %}class="{{dropdown_link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ dropdown_link.url }}"{% if dropdown_link.url contains 'http' %} target="_blank"{% endif %}>{{ dropdown_link.title | escape }}</a></li>
|
66
|
+
{% endfor %}
|
67
|
+
</ul>
|
68
|
+
|
69
|
+
</li>
|
70
|
+
<li class="divider"></li>
|
71
|
+
{% endif %}
|
72
|
+
{% endif %}
|
73
|
+
{% endfor %}
|
74
|
+
{% comment %} Second loop finished {% endcomment %}
|
75
|
+
</ul>
|
76
|
+
|
77
|
+
|
78
|
+
{% comment %}
|
79
|
+
|
80
|
+
____ _ __ __ _ __ _ __ _
|
81
|
+
/ __ \(_)___ _/ /_ / /_ / | / /___ __ __(_)___ _____ _/ /_(_)___ ____
|
82
|
+
/ /_/ / / __ `/ __ \/ __/ / |/ / __ `/ | / / / __ `/ __ `/ __/ / __ \/ __ \
|
83
|
+
/ _, _/ / /_/ / / / / /_ / /| / /_/ /| |/ / / /_/ / /_/ / /_/ / /_/ / / / /
|
84
|
+
/_/ |_/_/\__, /_/ /_/\__/ /_/ |_/\__,_/ |___/_/\__, /\__,_/\__/_/\____/_/ /_/
|
85
|
+
/____/ /____/
|
86
|
+
|
87
|
+
{% endcomment %}
|
88
|
+
<ul class="right">
|
89
|
+
{% for link in site.data.navigation %}
|
90
|
+
|
91
|
+
{% if link.url contains 'http' %}
|
92
|
+
{% assign domain = '' %}
|
93
|
+
{% assign _baseurl = '' %}
|
94
|
+
{% elsif link.url == '#' %}
|
95
|
+
{% assign domain = '' %}
|
96
|
+
{% assign _baseurl = site.baseurl %}
|
97
|
+
{% else %}
|
98
|
+
{% assign domain = site.url %}
|
99
|
+
{% assign _baseurl = site.baseurl %}
|
100
|
+
{% endif %}
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
{% comment %} If there are links for right side begin {% endcomment %}
|
105
|
+
{% if link.side == 'right' %}
|
106
|
+
{% comment %} If right side WITHOUT dropdown menu do {% endcomment %}
|
107
|
+
{% if link.dropdown == nil %}
|
108
|
+
<li class="divider"></li>
|
109
|
+
<li{% if link.url == page.url %} class="active"{% elsif page.homepage == true and link.url == '/' %} class="active"{% endif %}><a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a></li>
|
110
|
+
|
111
|
+
{% comment %} If right side WITH dropdown menu do {% endcomment %}
|
112
|
+
{% else %}
|
113
|
+
|
114
|
+
<li class="divider"></li>
|
115
|
+
<li class="has-dropdown{% if link.url == page.url %} active{% endif %}">
|
116
|
+
<a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a>
|
117
|
+
|
118
|
+
<ul class="dropdown">
|
119
|
+
{% for dropdown_link in link.dropdown %}
|
120
|
+
|
121
|
+
{% if dropdown_link.url contains 'http' %}
|
122
|
+
{% assign domain = '' %}
|
123
|
+
{% else %}
|
124
|
+
{% assign domain = site.url %}
|
125
|
+
{% endif %}
|
126
|
+
|
127
|
+
<li><a {% if dropdown_link.class %}class="{{dropdown_link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ dropdown_link.url }}"{% if dropdown_link.url contains 'http' %} target="_blank"{% endif %}>{{ dropdown_link.title | escape }}</a></li>
|
128
|
+
{% endfor %}
|
129
|
+
</ul>
|
130
|
+
|
131
|
+
</li>
|
132
|
+
{% endif %}
|
133
|
+
{% endif %}
|
134
|
+
{% endfor %}
|
135
|
+
{% comment %} First loop finished 1 {% endcomment %}
|
136
|
+
</ul>
|
137
|
+
|
138
|
+
</section>
|
139
|
+
</nav>
|
140
|
+
</div><!-- /#navigation -->
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="row navbar">
|
2
|
+
{% assign navigation_left = site.data.navigation | where: "side", "left" %}
|
3
|
+
{% assign navigation_right = site.data.navigation | where: "side", "right" %}
|
4
|
+
{% for item in navigation_left %}
|
5
|
+
<div class="nav-item col-md-2">
|
6
|
+
<a href="{{ item.url }}" class="btn btn-primary btn-block">{{ item.title }}</a>
|
7
|
+
{% if item.dropdown %}
|
8
|
+
<ul class="dropdown">
|
9
|
+
{% for dropdown_item in item.dropdown %}
|
10
|
+
<li>
|
11
|
+
<a
|
12
|
+
href="{{ dropdown_item.url }}"
|
13
|
+
class="btn btn-primary btn-block"
|
14
|
+
>{{ dropdown_item.title }}</a>
|
15
|
+
</li>
|
16
|
+
{% endfor %}
|
17
|
+
</ul>
|
18
|
+
{% endif %}
|
19
|
+
</div>
|
20
|
+
{% endfor %}
|
21
|
+
{% for item in navigation_right %}
|
22
|
+
{% if forloop.first %}
|
23
|
+
<div class="nav-item col-md-2" style="margin-left: auto;">
|
24
|
+
{% else %}
|
25
|
+
<div class="nav-item col-md-2">
|
26
|
+
{% endif %}
|
27
|
+
<a href="{{ item.url }}" class="btn btn-primary btn-block">{{ item.title }}</a>
|
28
|
+
{% if item.dropdown %}
|
29
|
+
<ul class="dropdown col-md-2">
|
30
|
+
{% for dropdown_item in item.dropdown %}
|
31
|
+
<li>
|
32
|
+
<a
|
33
|
+
href="{{ dropdown_item.url }}"
|
34
|
+
class="btn btn-primary btn-block"
|
35
|
+
>{{ dropdown_item.title }}</a>
|
36
|
+
</li>
|
37
|
+
{% endfor %}
|
38
|
+
</ul>
|
39
|
+
{% endif %}
|
40
|
+
</div>
|
41
|
+
{% endfor %}
|
42
|
+
</div>
|
43
|
+
|
data/_sass/tessellate.scss
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessellate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Preston Hager
|
@@ -34,9 +34,12 @@ files:
|
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
36
|
- _config.yml
|
37
|
+
- _data/navigation.yml
|
38
|
+
- _includes/_navigation.html
|
37
39
|
- _includes/contact_form.html
|
38
40
|
- _includes/footer.html
|
39
41
|
- _includes/header.html
|
42
|
+
- _includes/navigation.html
|
40
43
|
- _layouts/default.html
|
41
44
|
- _layouts/page.html
|
42
45
|
- _layouts/section_four.html
|