classic-jekyll-theme 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 563de332f91ec382d8a30e4d65166f0d0105616a
4
- data.tar.gz: eb4872f6c0c0daf0406b8c7aa721e126e85adf61
3
+ metadata.gz: '026331531369ab57c53c0cbde7a55b910eeed4f2'
4
+ data.tar.gz: f551d41260ca4a3738cbbb51bd103d5e28f6e85a
5
5
  SHA512:
6
- metadata.gz: 0f741d01eb3e392c28e8527ca4997ecc6cf3056696aee44cba608ff4bb5e2e76247867e416b9cae2d3f74f6b1d93f2479c3768dea1d688357f5fcbd5ca590558
7
- data.tar.gz: 145245cdf593762e921f4e4c30a2a041ccbba354fd130dc0dcc2b27f0a09b0f8b431c22b558c0d25ae8bd37602eb7f52be998602dcdd81d0a107beaff9efd98b
6
+ metadata.gz: d915b8ab52b1c0553f5e8599b20a7274215bcf364a2859e6e048c653d83c40076e0c795128d79d07a5914b842d5038d324ccbb811e075c6e5275cacf64736a68
7
+ data.tar.gz: ba2a4369d471e88d8f4bcba36780c8ed25b5308a0cebd13e333a0370bb71115d1d4d983d8ffbe1a4f7b6d58da95ae22847bf1ee12ae7f00271cfd5f554663148
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Classic-Jekyll-Theme v2.3.0
1
+ # Classic-Jekyll-Theme v2.4.0
2
2
 
3
3
  Welcome to Classic-Jekyll-Theme. This theme centers around one of the most used website structures on the web. A banner, navigation menu (dropdown), (up to) three columns and a footer. The design is fully responsive for three different screen widths: widest, medium and narrow. It is probably best shown in an example:
4
4
 
@@ -24,7 +24,7 @@ An example screenshot:
24
24
 
25
25
  ![example](http://balancingrock.nl/assets/img/classic-jekyll-theme-screenshot-half.png)
26
26
 
27
- Or visit a site using this theme: [365posts.com](http://www.365posts.com) or [Balancing Rock](http://www.balancingrock.nl)
27
+ Or visit a site using this theme like [Balancing Rock](http://www.balancingrock.nl)
28
28
 
29
29
  Other features:
30
30
 
@@ -32,6 +32,8 @@ Other features:
32
32
 
33
33
  - __Navigation bar with drop-down menu__ is created automatically from the available pages when these have the proper YAML frontmatter. The navigation bar contains the top level menu items, while the submenu items show up as a drop-down menu when the cursor hovers over the corresponding menu item. Hovering over submenu item brings up the sub-submenu items.
34
34
 
35
+ - __Create the menu__ from either Posts and/or Pages.
36
+
35
37
  - __Category pages__ are created semi-automatically; the web designer has to identify the categories for inclusion, but the menu entry and category pages are created automatically.
36
38
 
37
39
  - __Cookies policy__ for european users is included by default. It can be easily disabled for non-european websites.
@@ -84,6 +86,7 @@ Please see [http://balancingrock.github.io/classic-jekyll-theme](http://balancin
84
86
  - [Release 2.1.1 (2018-01-22)](http://balancingrock.github.io/classic-jekyll-theme/classic/2017/12/22/bugfix-2-1.html)
85
87
  - [Release 2.2.0 (2018-02-02)](http://balancingrock.github.io/classic-jekyll-theme/classic/2018/02/02/release-2-2-0.html)
86
88
  - [Release 2.3.0 (2018-02-05)](http://balancingrock.github.io/classic-jekyll-theme/classic/2018/02/05/release-2-3-0.html)
89
+ - [Release 2.4.0 (2019-01-15)](http://balancingrock.github.io/classic-jekyll-theme/classic/2019/01/15/release-2-4-0.html)
87
90
 
88
91
  ## Suport & Feedback
89
92
 
@@ -114,7 +114,22 @@ generate-categories-menu: no
114
114
  # Note 2: When a separate navbanner file is used the menubar will not be able to highlight the active page.
115
115
  #
116
116
  # Hint: Keep this option set to 'yes' during content creation or site development (when jekyll auto regeneration is used). Then switch it back to 'no' for the version that is published.
117
-
117
+ #
118
118
  use-separate-banner-menubar-file: no
119
119
 
120
+ # Exclude pages from the menu structure. Note that this uses negative logic for backwards compatibility.
121
+ # Values: yes | no
122
+ # - yes: Pages will not be included in any menu structure
123
+ # - no: Pages will be included in all menu structures
124
+ #
125
+ exclude-pages-from-menus: no
126
+
127
+ # Included posts in any menu structure.
128
+ # Values: yes | no
129
+ # - yes: Posts will be scanned for inclusion in all menu structures.
130
+ # - no: Posts will be excluded from the menu structures.
131
+ #
132
+ include-posts-in-menus: yes
133
+
134
+
120
135
  # End of file
@@ -10,13 +10,20 @@
10
10
 
11
11
  {%- assign buildTimeInSecondsSinceEpoch = site.time | date: "%s" | plus: 0 -%}
12
12
 
13
- {%- assign pagesForPublishing = "" | split: "" -%}
14
- {%- for ape in site.pages -%}
15
- {%- assign pageInSecondsSindsEpoch = ape.date | date:"%s" | plus: 0 -%}
16
- {%- if pageInSecondsSindsEpoch < buildTimeInSecondsSinceEpoch -%}
17
- {%- assign pagesForPublishing = pagesForPublishing | push: ape -%}
18
- {%- endif -%}
19
- {%- endfor -%}
13
+ {%- assign pagesForPublishing = "" | split: "" -%}
14
+
15
+ {%- if site.data.setup.exclude-pages-from-menus -%}{%- else -%}
16
+ {%- for ape in site.pages -%}
17
+ {%- assign pageInSecondsSindsEpoch = ape.date | date:"%s" | plus: 0 -%}
18
+ {%- if pageInSecondsSindsEpoch < buildTimeInSecondsSinceEpoch -%}
19
+ {%- assign pagesForPublishing = pagesForPublishing | push: ape -%}
20
+ {%- endif -%}
21
+ {%- endfor -%}
22
+ {%- endif -%}
23
+
24
+ {%- if site.data.setup.include-posts-in-menus -%}
25
+ {%- assign pagesForPublishing = pagesForPublishing | concat: site.posts -%}
26
+ {%- endif -%}
20
27
 
21
28
  {%- assign topTitles = "" | split: "" -%}
22
29
  {%- assign sortedPages = pagesForPublishing | where:'menuInclude', true | where_exp:'item', 'item.menuTopTitle != nil' | sort: 'menuTopIndex', 'last' -%}
@@ -170,7 +177,11 @@
170
177
  {%- if ape.menuLink == false %}
171
178
  <p class="paddingAsLink">{{ topTitle }}</p>
172
179
  {%- else %}
180
+ {%- if ape.url contains "http" -%}
181
+ <a href="{{ ape.url }}"><p>{{ topTitle }}</p></a>
182
+ {%- else -%}
173
183
  <a href="{{ ape.url | relative_url }}"><p>{{ topTitle }}</p></a>
184
+ {%- endif -%}
174
185
  {%- endif -%}
175
186
  {%- assign pageFound = true -%}
176
187
  {%- break -%}
@@ -182,7 +193,11 @@
182
193
  {%- if ape.menuLink == false %}
183
194
  <p class="paddingAsLink">{{ topTitle }}</p>
184
195
  {%- else %}
196
+ {%- if ape.url contains "http" -%}
197
+ <a href="{{ ape.url }}"><p>{{ topTitle }}</p></a>
198
+ {%- else -%}
185
199
  <a href="{{ ape.url | relative_url }}"><p>{{ topTitle }}</p></a>
200
+ {%- endif -%}
186
201
  {%- endif -%}
187
202
  {%- assign pageFound = true -%}
188
203
  {%- break -%}
@@ -322,7 +337,11 @@
322
337
  {%- endif %}
323
338
  </label>
324
339
  <div class="text">
340
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
341
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
342
+ {%- else -%}
325
343
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
344
+ {%- endif -%}
326
345
  </div>
327
346
  </div>
328
347
  {%- else -%}
@@ -367,7 +386,11 @@
367
386
  <div class="title">
368
387
  <div class="symbol"><p></p></div>
369
388
  <div class="text">
389
+ {%- if sortedSubsubMenuUrls[forloop.index0] contains "http" -%}
390
+ <a href="{{ sortedSubsubMenuUrls[forloop.index0] }}"><p>{{ subsubMenuTitle }}</p></a>
391
+ {%- else -%}
370
392
  <a href="{{ sortedSubsubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subsubMenuTitle }}</p></a>
393
+ {%- endif -%}
371
394
  </div>
372
395
  </div>
373
396
  {%- else %}
@@ -439,7 +462,11 @@
439
462
  <div class="title">
440
463
  <div class="symbol"></div>
441
464
  <div class="text">
465
+ {%- if cat.url contains "http" -%}
466
+ <a href="{{ cat.url }}"><p>{{ cat.title | capitalize }}</p></a>
467
+ {%- else -%}
442
468
  <a href="{{ cat.url | relative_url }}"><p>{{ cat.title | capitalize }}</p></a>
469
+ {%- endif -%}
443
470
  </div>
444
471
  </div>
445
472
  </div>
@@ -16,17 +16,23 @@
16
16
  <div class="topTitle"><h1>{{ topTitle }}</h1></div>
17
17
  <div class="vmenu">
18
18
 
19
- {%- comment -%}<!-- Find all pages that belong to the menuTopTitle of this page -->{%- endcomment -%}
19
+ {%- comment -%}<!-- Find all entries that belong to the menuTopTitle of this document -->{%- endcomment -%}
20
20
 
21
21
  {%- assign buildTimeInSecondsSinceEpoch = site.time | date: "%s" | plus: 0 -%}
22
22
 
23
- {%- assign pagesForPublishing = "" | split: "" -%}
24
- {%- for ape in site.pages -%}
25
- {%- assign pageInSecondsSindsEpoch = ape.date | date:"%s" | plus: 0 -%}
26
- {%- if pageInSecondsSindsEpoch < buildTimeInSecondsSinceEpoch -%}
27
- {%- assign pagesForPublishing = pagesForPublishing | push: ape -%}
28
- {%- endif -%}
29
- {%- endfor -%}
23
+ {%- if site.data.setup.exclude-pages-from-menus -%}{%- else -%}
24
+ {%- for ape in site.pages -%}
25
+ {%- assign pageInSecondsSindsEpoch = ape.date | date:"%s" | plus: 0 -%}
26
+ {%- if pageInSecondsSindsEpoch < buildTimeInSecondsSinceEpoch -%}
27
+ {%- assign pagesForPublishing = pagesForPublishing | push: ape -%}
28
+ {%- endif -%}
29
+ {%- endfor -%}
30
+ {%- endif -%}
31
+
32
+ {%- if site.data.setup.include-posts-in-menus -%}
33
+ {%- assign pagesForPublishing = pagesForPublishing | concat: site.posts -%}
34
+ {%- endif -%}
35
+
30
36
 
31
37
  {%- assign topTitlePages = pagesForPublishing | where:'menuInclude', true | where:'menuTopTitle', topTitle -%}
32
38
 
@@ -224,7 +230,11 @@
224
230
  <div class="sub-isActivePage">
225
231
  <div class="disclosure"><p></p></div>
226
232
  <div class="title">
233
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
234
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
235
+ {%- else -%}
227
236
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
237
+ {%- endif -%}
228
238
  </div>
229
239
  </div>
230
240
  {%- else %}
@@ -236,14 +246,22 @@
236
246
  <div class="sub-isActivePage">
237
247
  <div class="disclosure"><p></p></div>
238
248
  <div class="title">
249
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
250
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
251
+ {%- else -%}
239
252
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
253
+ {%- endif -%}
240
254
  </div>
241
255
  </div>
242
256
  {%- else %}
243
257
  <div class="sub-hasLink">
244
258
  <div class="disclosure"><p></p></div>
245
259
  <div class="title">
260
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
261
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
262
+ {%- else -%}
246
263
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
264
+ {%- endif -%}
247
265
  </div>
248
266
  </div>
249
267
  {%- endif -%}
@@ -263,7 +281,11 @@
263
281
  <p class="symbol"><!-- will be filled by disclosure indicator --></p>
264
282
  </label>
265
283
  <div class="title">
284
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
285
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
286
+ {%- else -%}
266
287
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
288
+ {%- endif -%}
267
289
  </div>
268
290
  </div>
269
291
  {%- else %}
@@ -278,7 +300,11 @@
278
300
  <p class="symbol"><!-- will be filled by disclosure indicator --></p>
279
301
  </label>
280
302
  <div class="title">
303
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
304
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
305
+ {%- else -%}
281
306
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
307
+ {%- endif -%}
282
308
  </div>
283
309
  </div>
284
310
  {%- else %}
@@ -288,7 +314,11 @@
288
314
  <p class="symbol"><!-- will be filled by disclosure indicator --></p>
289
315
  </label>
290
316
  <div class="title">
317
+ {%- if sortedSubMenuUrls[forloop.index0] contains "http" -%}
318
+ <a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subMenuTitle }}</p></a>
319
+ {%- else -%}
291
320
  <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
321
+ {%- endif -%}
292
322
  </div>
293
323
  </div>
294
324
  {%- endif -%}
@@ -311,14 +341,22 @@
311
341
  <div class="subsub-isActivePage">
312
342
  <div class="disclosure"><p></p></div>
313
343
  <div class="title">
344
+ {%- if sortedSubsubMenuUrls[forloop.index0] contains "http" -%}
345
+ <a href="{{ sortedSubsubMenuUrls[forloop.index0] }}"><p>{{ subsubTitle }}</p></a>
346
+ {%- else -%}
314
347
  <a href="{{ sortedSubsubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subsubTitle }}</p></a>
348
+ {%- endif -%}
315
349
  </div>
316
350
  </div>
317
351
  {%- else %}
318
352
  <div class="subsub-hasLink">
319
353
  <div class="disclosure"><p></p></div>
320
354
  <div class="title">
355
+ {%- if sortedSubsubMenuUrls[forloop.index0] contains "http" -%}
356
+ <a href="{{ sortedSubsubMenuUrls[forloop.index0] }}"><p>{{ subsubTitle }}</p></a>
357
+ {%- else -%}
321
358
  <a href="{{ sortedSubsubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subsubTitle }}</p></a>
359
+ {%- endif -%}
322
360
  </div>
323
361
  </div>
324
362
  {% endif -%}
@@ -125,17 +125,21 @@
125
125
  @include narrow-layout { height: $banner-icon-height-narrow; }
126
126
  @include medium-layout { height: $banner-icon-height-medium; }
127
127
  @include widest-layout { height: $banner-icon-height-widest; }
128
-
129
- // Content (icon image)
130
- @include narrow-layout { content: $banner-icon-url-narrow; }
131
- @include medium-layout { content: $banner-icon-url-medium; }
132
- @include widest-layout { content: $banner-icon-url-widest; }
133
-
128
+
134
129
  // Background
135
130
  @include narrow-layout { background: $banner-icon-background-narrow; }
136
131
  @include medium-layout { background: $banner-icon-background-medium; }
137
132
  @include widest-layout { background: $banner-icon-background-widest; }
138
133
  }
134
+
135
+ // Content (icon image)
136
+ // Note: Firefox needs the 'after' attribute to display the icon. Other browsers seem fine without it.
137
+ // Issue no 19.
138
+ .banner-icon::after {
139
+ @include narrow-layout { content: $banner-icon-url-narrow; }
140
+ @include medium-layout { content: $banner-icon-url-medium; }
141
+ @include widest-layout { content: $banner-icon-url-widest; }
142
+ }
139
143
  }
140
144
 
141
145
  .title-area-container {
@@ -236,17 +236,23 @@
236
236
  @include medium-layout {
237
237
  width: $menubar-icon-width-medium;
238
238
  height: $menubar-icon-height-medium;
239
- content: $menubar-icon-url-medium;
240
239
  padding: $menubar-icon-padding-medium;
241
240
  }
242
241
  @include widest-layout {
243
242
  width: $menubar-icon-width-widest;
244
243
  height: $menubar-icon-height-widest;
245
- content: $menubar-icon-url-widest;
246
244
  padding: $menubar-icon-padding-widest;
247
245
  }
248
246
  }
249
247
 
248
+ // Content (icon image)
249
+ // Note: Firefox needs the 'after' attribute to display the icon. Other browsers seem fine without it.
250
+ // Issue no 19.
251
+ .menubar-icon:after {
252
+ @include medium-layout { content: $menubar-icon-url-medium; }
253
+ @include widest-layout { content: $menubar-icon-url-widest; }
254
+ }
255
+
250
256
  .item-separator {
251
257
 
252
258
  @include medium-layout {
@@ -506,4 +512,4 @@
506
512
  @include widest-layout { background: $menubar-item-background-selected-widest; }
507
513
  }
508
514
  }
509
- }
515
+ }
@@ -53,8 +53,6 @@ After the initiation use a `-` symbol to start a new sub menu item like this:
53
53
  ---
54
54
 
55
55
  This example is discussed below.
56
-
57
- __Important limitation__: each menuSubs-title can only be defined in 1 page. Attempting to define them in more than 1 page will lead to duplication in the menu itself.
58
56
 
59
57
  #### menuTopTitle
60
58
 
@@ -118,5 +116,3 @@ Sub-sub-menu items are created in the same way the sub-items are created, but us
118
116
  This will create two sub-sub menu items under the _cattle_ entry.
119
117
 
120
118
  For the sub-sub menu entries the same tags as for the sub-menus can be used. (`link`, `index`, `url` and `anchorId`)
121
-
122
- __Attention__: Sub-sub menu entries can only be defined in a single page!
@@ -21,15 +21,15 @@ The static pages were replaced by scripting languages and database backends. Nee
21
21
 
22
22
  However as good as Wordpress (and others) might be, they do not simplify the underlying structure. They merely hide it from the site-developper. Add plugins to this, and instability of the platform becomes a real possibility. I know, I lost entire websites -more than once!- because of this.
23
23
 
24
- After the initial embrace of dynamic this and dynamic that, many people started to rediscover the old way of creating websites. Static websites are -as it turns out- more than enough for many small sites or blogs! Certainly with the new wave of "comments" providers as disqus.
24
+ After the initial embrace of dynamic this and dynamic that, many people started to rediscover the old way of creating websites. Static websites are -as it turns out- more than enough for many small sites or blogs! Certainly with the new wave of "comment" providers like disqus.
25
25
 
26
26
  Creating a simple website using a comments provider is still a bit of work though.
27
27
 
28
28
  Enter the static website generator.
29
29
 
30
- Static websites generators take a lot of pain out of traditional web design. And when using a theme (like this!) this becomes even simpler.
30
+ Static websites generators take a lot of pain out of traditional web design. And when using a theme (like this!) this becomes even easier.
31
31
 
32
- Creating content now is simply a matter of writing the content in a (plain) text editor, then compiling the website and uploading it (or only the changes) to the hosting provider.
32
+ Creating content is now just a matter of writing the content in a (plain) text editor, then compiling the website and uploading it (or only the changes) to the hosting provider.
33
33
 
34
34
  Simple, neat.
35
35
 
@@ -0,0 +1,28 @@
1
+ ---
2
+ layout: page
3
+ menuInclude: yes
4
+ menuLink: yes
5
+ menuTopTitle: Menus
6
+ menuSubs:
7
+ - title: External link
8
+ index: 5
9
+ sub:
10
+ - title: Balancingrock
11
+ url: http://www.balancingrock.nl/picture.html
12
+ excerpt: "An excerpt is used as the page description and can be up to 160 characters long..."
13
+ ---
14
+ ### External Link
15
+
16
+ Menu's can also link to external pages. Just prepend the URL with the proper domain like below. To test this, select the sub-sub menu `Balancingrock` from this entry.
17
+
18
+ ---
19
+ layout: page
20
+ menuInclude: yes
21
+ menuTopTitle: Menus
22
+ menuSubs:
23
+ - title: External link
24
+ index: 5
25
+ sub:
26
+ - title: Balancingrock
27
+ url: http://www.balancingrock.nl/picture.html
28
+ ---
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classic-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -211,6 +211,7 @@ files:
211
211
  - pages/layouts/sec-left-ter-right.md
212
212
  - pages/layouts/sec-right-no-ter.md
213
213
  - pages/layouts/sec-right-ter-left.md
214
+ - pages/menus/external-url.md
214
215
  - pages/menus/landing-page.md
215
216
  - pages/menus/submenu-subsections.md
216
217
  - pages/menus/submenu1.md
@@ -241,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
242
  version: '0'
242
243
  requirements: []
243
244
  rubyforge_project:
244
- rubygems_version: 2.6.8
245
+ rubygems_version: 2.6.14.1
245
246
  signing_key:
246
247
  specification_version: 4
247
248
  summary: A responsive 1, 2 or 3 column theme for wide, medium and narrow displays