classic-jekyll-theme 1.3.3 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -11
- data/_includes/navbanner.html +1 -0
- data/_includes/widgets/cookie-consent.html +9 -1
- data/_includes/widgets/recent-posts.html +9 -0
- data/_includes/widgets/social-media.html +9 -0
- data/_includes/widgets/subscribe.html +7 -0
- data/_includes/widgets/youtube-player.html +38 -0
- data/_sass/classic-jekyll-theme.scss +20 -2
- data/_sass/classic/_formatting.scss +30 -21
- data/_sass/classic/_widget-support.scss +22 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e4afdb8878750bd989388454d71fbd29b2a6dd1
|
4
|
+
data.tar.gz: f55330e49aaa8531fe96d6ba326ac0b6ee0f8842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 953e04315ad1288d1c428b46d0f46719161166f7ee0e1b7afab8ed9d64a439ccf3a622466dde7a5c0ed060ec019f373e451d033b6d1a12bca46e6d1f5832231a
|
7
|
+
data.tar.gz: 4aa0f53e531adf7f1a0684c7df10956f4a5c79a9b58bc9aaecd7c694bd708c72b4aead1f6d69a94cb82d1f6f3f6bc5e0e91d87bb572fcc3e85549b269e9416b8
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Classic-Jekyll-Theme v1.
|
1
|
+
# Classic-Jekyll-Theme v1.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, (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
|
|
@@ -38,6 +38,12 @@ Other features:
|
|
38
38
|
|
39
39
|
- __Background images__ and __Background color__ settings for major site elements.
|
40
40
|
|
41
|
+
- __Widgets__ the following widgets are included:
|
42
|
+
- recent-posts: Shows a list of the N most recent posts (N is configurable).
|
43
|
+
- social-media: Shows a list of social media sites with their links (Edit to add).
|
44
|
+
- subscribe: Shows how a visitor can subscribe to your site (Edit to add).
|
45
|
+
- youtube-player: Shows a youtube player that scales with the column it is used in (video id parameter).
|
46
|
+
|
41
47
|
You can get it from [github](https://github.com/Swiftrien/classic-jekyll-theme) or [rubygems](https://rubygems.org/gems/classic-jekyll-theme).
|
42
48
|
|
43
49
|
Subscribe to news about this theme (be informed of new releases) by sending a mail to: rien@balancingrock.nl with the subject "classic".
|
@@ -62,13 +68,13 @@ Create a new project:
|
|
62
68
|
|
63
69
|
$ jekyll new great-site
|
64
70
|
|
65
|
-
|
71
|
+
Goto to the directory:
|
66
72
|
|
67
73
|
$ cd great-site
|
68
74
|
|
69
75
|
Change in the Gemfile:
|
70
76
|
|
71
|
-
From `gem "minima", "~> 2.0"` to `gem "classic-jekyll-theme", "~>1.
|
77
|
+
From `gem "minima", "~> 2.0"` to `gem "classic-jekyll-theme", "~>1.4.0"`
|
72
78
|
|
73
79
|
Change in the _config.yml:
|
74
80
|
|
@@ -217,6 +223,12 @@ To create a page that must be included in the menu bar, add the following front
|
|
217
223
|
|
218
224
|
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.
|
219
225
|
|
226
|
+
## Editing the secondary and tertiary columns
|
227
|
+
|
228
|
+
The prime column is populated by the 'normal' pages and posts. The secondary and tertairy columns have a fixed content that is created by directly editing the `_include/secondary-column.html` and `_include/tertiary-column.html`. These files must be copied from the gem dictionary to the directory with the jekyll files for the website at the path `_include`.
|
229
|
+
|
230
|
+
Documentation for the widgets is included in the widget files themselves. The are located in the gem directory at `_includes/widgets/`.
|
231
|
+
|
220
232
|
## History
|
221
233
|
|
222
234
|
Release 0.2.6
|
@@ -276,6 +288,10 @@ Release 1.3.3
|
|
276
288
|
|
277
289
|
- Added the "jekyll-data" gem to simplify initial configuration/setup.
|
278
290
|
|
291
|
+
Release 1.4.0
|
292
|
+
|
293
|
+
- Added "youtube-player" widget.
|
294
|
+
- Improved placement control of the site icon
|
279
295
|
|
280
296
|
## Upgrade information
|
281
297
|
|
@@ -314,43 +330,67 @@ The index for a menu item. If not present, the menu ordering is undetermined. If
|
|
314
330
|
|
315
331
|
### from 1.0.0 (and later) to 1.1.1
|
316
332
|
|
317
|
-
- Update the version number in the `Gemfile`
|
333
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
318
334
|
|
319
335
|
### from 1.1.1 to 1.2.0
|
320
336
|
|
321
337
|
- If changes were made to `_sass/classic-jekyll-theme.scss` then this file must be replaced with the new version that comes with this release and the changes must be re-applied. Note that background color setting has changed slightly.
|
322
|
-
-
|
338
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
323
339
|
|
324
340
|
### from 1.2.0 to 1.2.1
|
325
341
|
|
326
342
|
- Replace the 'initial' values in `_sass/classic-jekyll-theme.scss` for the backgrounds with 'none'.
|
327
343
|
- The icon size (width and height) values are no longer used and can be removed.
|
328
|
-
-
|
344
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
329
345
|
|
330
346
|
### from 1.2.1 to 1.2.2
|
331
347
|
|
332
348
|
- The banner height settings in `_sass/classic-jekyll-theme.scss` are no longer "minimum" specifications but absolute specifications and therefore have been renamed from `<layout-size>-minimum-banner-height` to `<layout-size>-banner-height`.
|
333
|
-
-
|
349
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
334
350
|
|
335
351
|
### from 1.2.2 to 1.2.3
|
336
352
|
|
337
|
-
- Update the version number in the `Gemfile`
|
353
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
338
354
|
|
339
355
|
### from 1.2.3 to 1.3.0
|
340
356
|
|
341
357
|
- Copy the `_data` directory from the gem to the website directory as per installation instructions in this document.
|
342
358
|
- Remove the classic-jekyll-theme configurations from the `_config.yml` file, and reapply any changes made to either `_data/setup.yml` and/or `_data/text-for.yml` as required.
|
343
|
-
-
|
359
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
344
360
|
|
345
361
|
### from 1.3.0 to 1.3.2
|
346
362
|
|
347
363
|
- If not done yet, copy the `_data` directory from the gem to the website directory as per installation instructions in this document.
|
348
|
-
- Update the version number in the `Gemfile`
|
364
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
349
365
|
|
350
366
|
### from 1.3.2 to 1.3.3
|
351
367
|
|
352
368
|
- It is no longer necessary to copy the `_data` folder content to the site directory.
|
353
|
-
- Update the version number in the `Gemfile`
|
369
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
370
|
+
|
371
|
+
### from 1.3.3 to 1.4.0
|
372
|
+
|
373
|
+
- Add to `classic-jekyll-theme.scss` the import of `classic/widget-support` (at end of file)
|
374
|
+
- Add the following definitions to the existing `classic-jekyll-theme.scss` in your project:
|
375
|
+
^
|
376
|
+
|
377
|
+
~~~~~~
|
378
|
+
$wide-icon-vposition: center;
|
379
|
+
$wide-icon-hposition: left;
|
380
|
+
$wide-icon-voffset: 0px;
|
381
|
+
$wide-icon-hoffset: 0px;
|
382
|
+
$medium-icon-vposition: center;
|
383
|
+
$medium-icon-hposition: left;
|
384
|
+
$medium-icon-voffset: 0px;
|
385
|
+
$medium-icon-hoffset: 0px;
|
386
|
+
$narrow-icon-vposition: center;
|
387
|
+
$narrow-icon-hposition: left;
|
388
|
+
$narrow-icon-voffset: 0px;
|
389
|
+
$narrow-icon-hoffset: 0px;
|
390
|
+
~~~~~~
|
391
|
+
|
392
|
+
- Alternatively copy the new `classic-jekyll-theme.scss` to your project and re-apply the changes you made.
|
393
|
+
- Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
|
354
394
|
|
355
395
|
## Known problems (need your help)
|
356
396
|
|
data/_includes/navbanner.html
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
Usage:
|
4
|
+
|
5
|
+
Enable the cookie consent script by setting the "_data/setup.yml" item `enable-cookies-policy` to `yes`.
|
6
|
+
|
7
|
+
Configure the text for the message and the buttons in "_data/text-for.yml" for the items `tUsesCookies`, `tCookieOk` and `tMoreInfo`
|
8
|
+
|
9
|
+
{% endcomment %}
|
2
10
|
{% assign usesCookies = 'This site uses cookies' %}
|
3
11
|
{% if site.data.text-for.tUsesCookies %}{% assign usesCookies = site.data.text-for.tUsesCookies %}{% endif %}
|
4
12
|
{% assign cookieOk = 'OK' %}
|
@@ -1,3 +1,12 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
Usage:
|
4
|
+
|
5
|
+
Configure the number of referenced posts by assigning a value to `number-of-recent-posts-in-widget` in the file "_data/setup.yml".
|
6
|
+
|
7
|
+
Configure the text for the header message in "_data/text-for.yml" for the item `tRecent`.
|
8
|
+
|
9
|
+
{% endcomment %}
|
1
10
|
<div>
|
2
11
|
{% assign recent = 'Recent' %}
|
3
12
|
{% if site.data.text-for.tRecent %}{% assign recent = site.data.text-for.tRecent %}{% endif %}
|
@@ -1,3 +1,12 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
Usage:
|
4
|
+
|
5
|
+
Configure the github-username and twitter-username in `_config.yml`.
|
6
|
+
|
7
|
+
Configure the text for the header message in "_data/text-for.yml" for the item `tSocialMediaResources`.
|
8
|
+
|
9
|
+
{% endcomment %}
|
1
10
|
<div>
|
2
11
|
{% assign message = 'Social Media & Resources' %}
|
3
12
|
{% if site.data.text-for.tSocialMediaResources %}{% assign message = site.data.text-for.tSocialMediaResources %}{% endif %}
|
@@ -1,3 +1,10 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
Usage:
|
4
|
+
|
5
|
+
Configure the text for the header message in "_data/text-for.yml" for the item `tSubscribe`.
|
6
|
+
|
7
|
+
{% endcomment %}
|
1
8
|
<div>
|
2
9
|
{% assign subscribe = 'Subscribe' %}
|
3
10
|
{% if site.data.text-for.tSubscribe %}{% assign subscribe = site.data.text-for.tSubscribe %}{% endif %}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
Purpose:
|
4
|
+
|
5
|
+
To include a youtube video player in HD format in a column. The player will size (dynamically) with te size of the column. It will take up the entire available width, so if margins are needed, apply these to the object this player is included in.
|
6
|
+
|
7
|
+
|
8
|
+
Usage:
|
9
|
+
|
10
|
+
{% include youtube-hd-player.html
|
11
|
+
video = "Identifier of the video"
|
12
|
+
%}
|
13
|
+
|
14
|
+
|
15
|
+
Also needs the following CSS (written in SASS, included in `_sass/_widget-support.scss`):
|
16
|
+
|
17
|
+
.scaling-iframe-wrapper-hd {
|
18
|
+
position: relative;
|
19
|
+
padding-bottom: 56.25%; // HD ratio is 16:9 => (9/16)*100%= 56.25%
|
20
|
+
padding-top: 30px;
|
21
|
+
overflow: hidden;
|
22
|
+
margin-top: $vspacing-unit;
|
23
|
+
margin-bottom: $vspacing-unit;
|
24
|
+
iframe {
|
25
|
+
// Allows component to extend over the padding area
|
26
|
+
position: absolute;
|
27
|
+
// Let the upper left corner be the upper left corner of the containg element
|
28
|
+
top: 0;
|
29
|
+
left: 0;
|
30
|
+
// Make the iframe as big as its container.
|
31
|
+
width: 100%;
|
32
|
+
height: 100%;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
{% endcomment %}
|
37
|
+
|
38
|
+
<div class="scaling-iframe-wrapper-hd"><iframe src="https://www.youtube.com/embed/{{ include.video }}"></iframe></div>
|
@@ -56,12 +56,29 @@ $wide-footer-background: none;
|
|
56
56
|
$medium-footer-background: none;
|
57
57
|
$narrow-footer-background: none;
|
58
58
|
|
59
|
-
//
|
59
|
+
// To include an icon on the site.
|
60
60
|
// Set the url's to 'none' if no icon should be shown.
|
61
61
|
// Example: ...-icon-url: url("/assets/img/wide-icon.png");
|
62
|
+
// The position of the icon can be controlled via the position and offset values. They area relative to the banner area.
|
63
|
+
// Valid hposition values are 'left', 'center' and 'right'.
|
64
|
+
// Valid vposition values are 'top', 'center' and 'bottom'.
|
65
|
+
// Positive offset values are "to the right" and "down". Negative are "left" and "up".
|
66
|
+
// Note that you may need to set the banner-height to ensure that the entire icon is contained in the banner area.
|
62
67
|
$wide-icon-url: none;
|
68
|
+
$wide-icon-vposition: center;
|
69
|
+
$wide-icon-hposition: left;
|
70
|
+
$wide-icon-voffset: 0px;
|
71
|
+
$wide-icon-hoffset: 0px;
|
63
72
|
$medium-icon-url: none;
|
73
|
+
$medium-icon-vposition: center;
|
74
|
+
$medium-icon-hposition: left;
|
75
|
+
$medium-icon-voffset: 0px;
|
76
|
+
$medium-icon-hoffset: 0px;
|
64
77
|
$narrow-icon-url: none;
|
78
|
+
$narrow-icon-vposition: center;
|
79
|
+
$narrow-icon-hposition: left;
|
80
|
+
$narrow-icon-voffset: 0px;
|
81
|
+
$narrow-icon-hoffset: 0px;
|
65
82
|
|
66
83
|
// Setting a height for the banner. This can be helpfull if a background image or icon has to be displayed.
|
67
84
|
// Note that for 'auto' the banner hight is determined by the title text.
|
@@ -147,5 +164,6 @@ $narrow-max-width: $medium-min-width - 1;
|
|
147
164
|
"classic/formatting",
|
148
165
|
"classic/syntax-highlighting",
|
149
166
|
"classic/post",
|
150
|
-
"classic/page"
|
167
|
+
"classic/page",
|
168
|
+
"classic/widget-support"
|
151
169
|
;
|
@@ -1,20 +1,5 @@
|
|
1
1
|
// The distinction between "layout" and "formatting" is as follows: If the resulting CCS affects the placement of and/or visibility of multiple items, it is placed in "layout". If the CSS affects only the appearance of an item, then it appears here. Of course the appearance may affect the layout, so there is no hard distinction.
|
2
2
|
|
3
|
-
// Sets the background for the .navbanner-title
|
4
|
-
@mixin titleBackgroundWithIcon($bgnd, $icn) {
|
5
|
-
@if $bgnd != none {
|
6
|
-
@if $icn != none {
|
7
|
-
background: $icn left center no-repeat, $bgnd;
|
8
|
-
} @else {
|
9
|
-
background: $bgnd;
|
10
|
-
}
|
11
|
-
} @else {
|
12
|
-
@if $icn != none {
|
13
|
-
background: $icn left center no-repeat;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
3
|
// Setting a background image on the entire site-title-color
|
19
4
|
body {
|
20
5
|
@include wide-layout { background: $wide-body-background; }
|
@@ -27,6 +12,7 @@ body {
|
|
27
12
|
|
28
13
|
// Title formatting
|
29
14
|
.navbanner-title {
|
15
|
+
position: relative;
|
30
16
|
.site-title-text {
|
31
17
|
color: $site-title-color;
|
32
18
|
@include wide-layout {
|
@@ -45,17 +31,40 @@ body {
|
|
45
31
|
margin-top: $narrow-vertical-title-shift;
|
46
32
|
}
|
47
33
|
}
|
34
|
+
.banner-icon {
|
35
|
+
position: absolute;
|
36
|
+
width: 100%;
|
37
|
+
height: 100%;
|
38
|
+
}
|
48
39
|
@include wide-layout {
|
49
|
-
|
50
|
-
@
|
40
|
+
background: $wide-banner-background;
|
41
|
+
@if $wide-icon-url != none {
|
42
|
+
.banner-icon {
|
43
|
+
top: $wide-icon-voffset;
|
44
|
+
left: $wide-icon-hoffset;
|
45
|
+
background: $wide-icon-url $wide-icon-hposition $wide-icon-vposition no-repeat;
|
46
|
+
}
|
47
|
+
}
|
51
48
|
}
|
52
49
|
@include medium-layout {
|
53
|
-
|
54
|
-
@
|
50
|
+
background: $medium-banner-background;
|
51
|
+
@if $medium-icon-url != none {
|
52
|
+
.banner-icon {
|
53
|
+
top: $medium-icon-voffset;
|
54
|
+
left: $medium-icon-hoffset;
|
55
|
+
background: $medium-icon-url $medium-icon-hposition $medium-icon-vposition no-repeat;
|
56
|
+
}
|
57
|
+
}
|
55
58
|
}
|
56
59
|
@include narrow-layout {
|
57
|
-
|
58
|
-
@
|
60
|
+
background: $narrow-banner-background;
|
61
|
+
@if $narrow-icon-url != none {
|
62
|
+
.banner-icon {
|
63
|
+
top: $narrow-icon-voffset;
|
64
|
+
left: $narrow-icon-hoffset;
|
65
|
+
background: $narrow-icon-url $narrow-icon-hposition $narrow-icon-vposition no-repeat;
|
66
|
+
}
|
67
|
+
}
|
59
68
|
}
|
60
69
|
}
|
61
70
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Used to include an iframe that scales with the column width in HD (16:9) format.
|
2
|
+
// To be used for the div that wraps an iframe like:
|
3
|
+
// <div class="scaling-iframe-wrapper-hd"><iframe>...</iframe></div>
|
4
|
+
// Very usefull for video players etc.
|
5
|
+
.scaling-iframe-wrapper-hd {
|
6
|
+
position: relative;
|
7
|
+
padding-bottom: 56.25%; // HD ratio is 16:9 => (9/16)*100%= 56.25%
|
8
|
+
padding-top: 30px;
|
9
|
+
overflow: hidden;
|
10
|
+
margin-top: $vspacing-unit;
|
11
|
+
margin-bottom: $vspacing-unit;
|
12
|
+
iframe {
|
13
|
+
// Allows component to extend over the padding area
|
14
|
+
position: absolute;
|
15
|
+
// Let the upper left corner be the upper left corner of the containg element
|
16
|
+
top: 0;
|
17
|
+
left: 0;
|
18
|
+
// Make the iframe as big as its container.
|
19
|
+
width: 100%;
|
20
|
+
height: 100%;
|
21
|
+
}
|
22
|
+
}
|
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.
|
4
|
+
version: 1.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: 2016-11-
|
11
|
+
date: 2016-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-feed
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- _includes/widgets/social-media-res/icon-twitter.svg
|
114
114
|
- _includes/widgets/social-media.html
|
115
115
|
- _includes/widgets/subscribe.html
|
116
|
+
- _includes/widgets/youtube-player.html
|
116
117
|
- _layouts/category-page.html
|
117
118
|
- _layouts/default.html
|
118
119
|
- _layouts/home.html
|
@@ -125,6 +126,7 @@ files:
|
|
125
126
|
- _sass/classic/_page.scss
|
126
127
|
- _sass/classic/_post.scss
|
127
128
|
- _sass/classic/_syntax-highlighting.scss
|
129
|
+
- _sass/classic/_widget-support.scss
|
128
130
|
- assets/js/cookieconsent.min.js
|
129
131
|
- assets/main.scss
|
130
132
|
- pages/about/about.md
|