tessellate 0.1.4 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29c6315f5a22ef20d64366e37bcb46e462ac708abdaec3e8f0d3a7ce5ba41388
4
- data.tar.gz: 4e5b9d258fd79b9a838bc078dd943875aae19acf673b87a8ac8a743a097047fc
3
+ metadata.gz: ba1e87454fa25052a84586eae168f1e62c17c48657d83cbf60db4e50c86f2020
4
+ data.tar.gz: 86a24f0e948e42f680e0ad9026f6a2f8da9ddbbc35d78e85a6cf3e620bc101bd
5
5
  SHA512:
6
- metadata.gz: 93ef5ab3aae76368a43ce501d4e1147d8e662cdc7d6384107902090d1f591fc3ca74d6d5d280246f7ced5fc11816d6890a15b3445a2c95cc3398a934c37f547a
7
- data.tar.gz: 8b7ce723a45cc377ea4badb874ce2702a49182f9dbed5747079d54b5ca2cf410e5069eb7a8a733656fdfcca976a2b7dd3138c09dab16a1db0284b1f75776dc74
6
+ metadata.gz: efaef2c4e6a86d88da402569164d1e67379e40aba05822b7e4e1fbaf9f009631ea8f6f3373caf17e9e3e2bdcfb8b36cdac49fe3bcc999837b2b60f0f1b94d4a8
7
+ data.tar.gz: 6030f0740912ed6d6ca588625e2d9cc04f7503251ba27d9927db024d537ca90b086cc4888e17d35fecec09741c80d3e0e79a7003dc045ebd948a9d948ddd9b10
@@ -20,13 +20,13 @@
20
20
  {% endfor %}
21
21
  {% for item in navigation_right %}
22
22
  {% if forloop.first %}
23
- <div class="nav-item col-md-2" style="margin-left: auto;">
23
+ <div class="nav-item" style="margin-left: auto;">
24
24
  {% else %}
25
- <div class="nav-item col-md-2">
25
+ <div class="nav-item">
26
26
  {% endif %}
27
27
  <a href="{{ item.url }}" class="btn btn-primary btn-block">{{ item.title }}</a>
28
28
  {% if item.dropdown %}
29
- <ul class="dropdown col-md-2">
29
+ <ul class="dropdown">
30
30
  {% for dropdown_item in item.dropdown %}
31
31
  <li>
32
32
  <a
data/_layouts/page.html CHANGED
@@ -17,10 +17,12 @@
17
17
  {% include navigation.html %}
18
18
  {% endif %}
19
19
  <!-- Header -->
20
+ {% if page.header %}
20
21
  {% include header.html
21
22
  header=page.header
22
23
  cta=page.cta
23
24
  %}
25
+ {% endif %}
24
26
  <div class="content">
25
27
  {{ content }}
26
28
  </div>
@@ -32,6 +34,20 @@
32
34
  <script src="/assets/js/breakpoints.min.js"></script>
33
35
  <script src="/assets/js/util.js"></script>
34
36
  <script src="/assets/js/main.js"></script>
37
+ {% if page.extra-scripts %}
38
+ <!-- Extra (per-page) Scripts -->
39
+ {% endif %}
40
+ {% for script in page.extra-scripts %}
41
+ {% if script.url %}
42
+ {% if script.integrity %}
43
+ <script src="{{ script.url }}" integrity="{{ script.integrity }}" crossorigin="anonymous"></script>
44
+ {% else %}
45
+ <script src="{{ script.url }}"></script>
46
+ {% endif %}
47
+ {% else %}
48
+ <script>{{ script }}</script>
49
+ {% endif %}
50
+ {% endfor %}
35
51
  </body>
36
52
  </html>
37
53
 
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
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Preston Hager
@@ -35,7 +35,6 @@ files:
35
35
  - README.md
36
36
  - _config.yml
37
37
  - _data/navigation.yml
38
- - _includes/_navigation.html
39
38
  - _includes/contact_form.html
40
39
  - _includes/footer.html
41
40
  - _includes/header.html
@@ -1,140 +0,0 @@
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 -->