classic-jekyll-theme 1.6.0 → 1.7.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: c211ddb03c8c8cd4897ea18c9cef5706cddaf4b9
4
- data.tar.gz: 03e7ac9afe4204600bf0978262c4ad65865d93ee
3
+ metadata.gz: 9a74c09ff42b77a154bb68070ae3769272335ead
4
+ data.tar.gz: b3065096bbc0ab68446f708ee1ca09e4d27b2df8
5
5
  SHA512:
6
- metadata.gz: 2a0334e7f1f6dbcd97774103aae5dfbf345e4c3d1f29ad79e9af392a212b061ff82b574728cd6660203d2d564cb86bb41b1ca2941e0bbfeecdbbedf2546967ad
7
- data.tar.gz: 475b5e93472c808baa1873d1152810b1b9a0e8b5a4c3bfed0cefd85d3bdee1322c01d84d116c5b8e004a2ad36108c19b9d5c44093e1a5f6e146d5502f40bc4e7
6
+ metadata.gz: 7b28e79f5fbbec9ee6131f268a3468668fe27baa75dfc9d5535dcaace04962592a2b7ccba8022a87ff7d4647bce7748230b0e71750df5a1774963d88ea1e88f4
7
+ data.tar.gz: e1ca018f9e1889d58499823b8b8638eba072c62cde0460986e67931291ca904868cf27d800da48707f67b061adab06e7f6a18b47569037358e6998e32201132c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Classic-Jekyll-Theme v1.6.0
1
+ # Classic-Jekyll-Theme v1.7.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: wide, medium and narrow. It is probably best shown in an example:
4
4
 
@@ -24,10 +24,12 @@ 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)
27
+ Or visit a site using this theme: [365posts.com](http://www.365posts.com) or [Balancing Rock](http://www.balancingrock.nl)
28
28
 
29
29
  Other features:
30
30
 
31
+ - __Secondary and Tertiary Columns__ can be specified by default and on a page by page basis for presence, location and content.
32
+
31
33
  - __Navigation bar__ 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.
32
34
 
33
35
  - __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.
@@ -120,17 +122,17 @@ The default `main.scss` file has been emptied. Hence all CSS configuration is do
120
122
 
121
123
  The following values are configurable:
122
124
 
123
- - secondary_column:
125
+ - secondary-column:
124
126
 
125
- Controls the placing of the secondary column on either the `left` side, the `right` side or `none` at all.
127
+ Controls the default placing of the secondary column on either the `left` side, the `right` side or `none` at all. Note that the YAML front matter variable `secondary-column` can be used to override this value on a per-page basis.
126
128
 
127
- When the secondary column is present its contents is taken from the file: `_includes/secondary-column.html`
129
+ When the secondary column is present its contents is taken from the file: `_includes/secondary-column.html`. Note that this can be overriden by the YAML front matter variable `secondary-column-content`.
128
130
 
129
- - tertiary_column:
131
+ - tertiary-column:
130
132
 
131
- Controls the presence of the tertiary column, either `present` or `none`.
133
+ Controls the default presence of the tertiary column, either `present` or `none`. Note that the YAML front matter variable `tertiary-column` can be used to override this value on a per-page basis.
132
134
 
133
- When the tertiary column is present its contents is taken from the file: `_includes/tertiary-column.html`
135
+ When the tertiary column is present its contents is taken from the file: `_includes/tertiary-column.html`. Note that this can be overriden by the YAML front matter variable `tertiary-column-content`.
134
136
 
135
137
  - number-of-posts-on-home-page:
136
138
 
@@ -233,6 +235,22 @@ To create a page that must be included in the menu bar, add the following front
233
235
 
234
236
  For a consistent user experience in the narrow layout, it is recommened not to link pages to top level menu items if these menu items have a drop-down submenu.
235
237
 
238
+ ##Creating pages with custom second and tertiary columns
239
+
240
+ There are 4 YAML tags that control the custom placement and content of the secondary and tertiary columns:
241
+
242
+ ---
243
+ ...
244
+ secondary-column: <'left'|'right'|'none'>
245
+ secondary-column-content: <include-file>
246
+ tertiary-column: <'present'|'none'>
247
+ tertiary-column-content: <include-file>
248
+ ---
249
+
250
+ These YAML variables can be used to override the default settings and provide custom content for the columns.
251
+
252
+ Notice that these settings take effect by their presence. Example: if a `secondary-column` YAML variable is present, it will prevent the global setting in the _data/seup.yml fro taking any effect.
253
+
236
254
  ## Specifying html header description meta tag content for pages
237
255
 
238
256
  The "description" meta tag is possibly the most important SEO information that we can put in our pages. It shows up as the "description" for a link in search engines. Jekyll does support this as the "excerpt" tag in YAML front matter. And if the "excerpt" is not defined, Jekyll will grab the first part of the post as its description. However, for pages there was no such support. As of verion 1.5.2 this theme adds a limited form of this support. If a page defines an excerpt in its YAML front matter, that excerpt information will be used as the information in a description meta tag.
@@ -345,6 +363,10 @@ Release 1.6.0
345
363
 
346
364
  - Added support for content blocks. The new include and support definitions make it easy to create a 'blocked' layout. Whole or partially. To see the example, download the theme from github and run it with "bundle exec jekyll serve". Then select the menu item "Other -> Content blocks". Or visit [http://balancingrock.nl](http://balancingrock.nl) which uses this theme and has the blocked layout on the home page.
347
365
 
366
+ Release 1.7.0
367
+
368
+ - Added support for custom column settings & content on a page by page basis.
369
+
348
370
  ## Upgrade information
349
371
 
350
372
  ### from 0.2.6 to 1.0.0
@@ -489,6 +511,13 @@ The index for a menu item. If not present, the menu ordering is undetermined. If
489
511
  - Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
490
512
  - The file `_sass/_support.html` was updated.
491
513
 
514
+ ### from 1.6.0 to 1.7.0
515
+
516
+ - Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
517
+ - The files `_layouts/default.html`, `_data/setup.yml` have been updated.
518
+ - Note that the global variable _secondary_column_ has been changed to _secondary-column_.
519
+ - And _tertiary_column_ has been changed to _tertiary-column_.
520
+
492
521
  ## Feedback
493
522
 
494
523
  Comments, bug reports, feature requests and improvements are eagerly anticipated via email: rien@balancingrock.nl.
data/_data/setup.yml CHANGED
@@ -8,10 +8,10 @@
8
8
  # If the tertiary column is used, the secondary column *must* also be used.
9
9
 
10
10
  # Possible values: 'left', 'right' or 'none', other values are illegal.
11
- secondary_column: left
11
+ secondary-column: left
12
12
 
13
13
  # Possible values: 'present' or 'none', other values are illegal.
14
- tertiary_column: present
14
+ tertiary-column: present
15
15
 
16
16
  # For the number of posts visible on the home page. Must be > 0.
17
17
  number-of-posts-on-home-page: 5
@@ -1,4 +1,8 @@
1
1
  <!DOCTYPE html>
2
+ {% if page.secondary-column %}{% if page.secondary-column == 'left' %}{% assign secondary-column = 'left' %}{% endif %}{% if page.secondary-column == 'right' %}{% assign secondary-column = 'right' %}{% endif %}{% else %}{% if site.data.setup.secondary-column == 'left' %}{% assign secondary-column = 'left' %}{% endif %}{% if site.data.setup.secondary-column == 'right' %}{% assign secondary-column = 'right' %}{% endif %}{% endif %}
3
+ {% if page.secondary-column-content %}{% assign secondary-column-content = {{ page.secondary-column-content }} %}{% else %}{% assign secondary-column-content = 'secondary-column.html' %}{% endif %}
4
+ {% if page.tertiary-column %}{% if page.tertiary-column == 'present' %}{% assign tertiary-column = 'present' %}{% endif %}{% else %}{% if site.data.setup.tertiary-column == 'present' %}{% assign tertiary-column = 'present' %}{% endif %}{% endif %}
5
+ {% if page.tertiary-column-content %}{% assign tertiary-column-content = page.tertiary-column-content %}{% else %}{% assign tertiary-column-content = 'tertiary-column.html' %}{% endif %}
2
6
  <html>
3
7
 
4
8
  {% include head.html %}
@@ -9,16 +13,16 @@
9
13
 
10
14
  <div class="column-panel">
11
15
 
12
- {% if site.data.setup.secondary_column == 'left' %}
16
+ {% if secondary-column == 'left' %}
13
17
  <div class="secondary-column">
14
18
  <div class="secondary-column-content">{% include secondary-column.html %}</div>
15
- {% if site.data.setup.tertiary_column == 'present' %}
19
+ {% if tertiary-column == 'present' %}
16
20
  <div class="tertiary-column-content">{% include tertiary-column.html %}</div>
17
21
  {% endif %}
18
22
  </div>
19
23
  <div class="secondary-divider"></div>
20
24
  {% else %}
21
- {% if site.data.setup.tertiary_column == 'present' %}
25
+ {% if tertiary-column == 'present' %}
22
26
  <div class="tertiary-column">
23
27
  <div class="tertiary-column-content">{% include tertiary-column.html %}</div>
24
28
  </div>
@@ -32,16 +36,16 @@
32
36
  </div>
33
37
 
34
38
 
35
- {% if site.data.setup.secondary_column == 'right' %}
39
+ {% if secondary-column == 'right' %}
36
40
  <div class="secondary-divider"></div>
37
41
  <div class="secondary-column">
38
42
  <div class="secondary-column-content">{% include secondary-column.html %}</div>
39
- {% if site.data.setup.tertiary_column == 'present' %}
43
+ {% if tertiary-column == 'present' %}
40
44
  <div class="tertiary-column-content">{% include tertiary-column.html %}</div>
41
45
  {% endif %}
42
46
  </div>
43
47
  {% else %}
44
- {% if site.data.setup.tertiary_column == 'present' %}
48
+ {% if tertiary-column == 'present' %}
45
49
  <div class="tertiary-divider"></div>
46
50
  <div class="tertiary-column">
47
51
  <div class="tertiary-column-content">{% include tertiary-column.html %}</div>
@@ -5,6 +5,7 @@ menuInclude: true
5
5
  menuTopTitle: Contact
6
6
  menuTopIndex: 99
7
7
  excerpt: Contact information for this site.
8
+ tertiary-column: none
8
9
  ---
9
10
 
10
11
  Publish your contact information on this page.
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: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-feed