classic-jekyll-theme 1.2.3 → 1.3.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 +38 -54
- data/_data/setup.yml +25 -0
- data/_data/text-for.yml +40 -0
- data/_includes/navbanner.html +2 -2
- data/_includes/widgets/cookie-consent.html +3 -3
- data/_includes/widgets/recent-posts.html +1 -1
- data/_includes/widgets/social-media.html +1 -1
- data/_includes/widgets/subscribe.html +1 -1
- data/_layouts/category-page.html +3 -3
- data/_layouts/home.html +1 -1
- 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: af654b427d09467044663fe69c38f3a0eb521d11
|
4
|
+
data.tar.gz: a7313fd209d6b2f1eab0c2fbb69fb61def4526ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ba7dc7556c86b0fb6200813bf9e78e16f7586044466d53824351918927fe34fb584ef73d6774295810da5060c068d35b51bf990e36eaa8493762d26af66181a
|
7
|
+
data.tar.gz: b0b8161f7d39c960f4f564c3b9303bb9d714d1301ef9fcaf51422b7f62d9740facd6105979491f615e6b6dc368c97c347a3f593af2e17f155dc9ab0a7faefdd6
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Classic-Jekyll-Theme v1.
|
1
|
+
# Classic-Jekyll-Theme v1.3.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
|
|
@@ -32,7 +32,7 @@ Other features:
|
|
32
32
|
|
33
33
|
- __Cookies policy__ for european users is included by default. It can be easily disabled for non-european websites though.
|
34
34
|
|
35
|
-
- __Language customization__ (not multi-language support!)
|
35
|
+
- __Language customization__ (not multi-language support!).
|
36
36
|
|
37
37
|
- __Icon__ support for an icon in the upper left corner of the site.
|
38
38
|
|
@@ -66,7 +66,7 @@ Change the directory:
|
|
66
66
|
|
67
67
|
Change in the Gemfile:
|
68
68
|
|
69
|
-
From `gem "minima", "~> 2.0"` to `gem "classic-jekyll-theme"`
|
69
|
+
From `gem "minima", "~> 2.0"` to `gem "classic-jekyll-theme", "~>1.3.0"`
|
70
70
|
|
71
71
|
Change in the _config.yml:
|
72
72
|
|
@@ -80,60 +80,23 @@ It is possible to start the jekyll server now:
|
|
80
80
|
|
81
81
|
$ jekyll serve
|
82
82
|
|
83
|
-
Then the site will show up at `localhost:4000
|
83
|
+
Then the site will show up at `localhost:4000`.
|
84
84
|
|
85
|
-
|
85
|
+
To add sample content that illustrates how pages and categories are implemented, copy the folder `pages` from the gem to the current project. On MacOS the gems are located in: `Library/Ruby/Gems/<version>/gems/classic-jekyll-theme-<version>`. Replace the version's with the appropriate numbers (note: these are two different unrelated version numbers). These pages not only contain examples, but also some information about using the theme.
|
86
86
|
|
87
|
-
|
88
|
-
|
89
|
-
# Classic uses three columns Primary, Secondary and Tertiary.
|
90
|
-
# The primary column is always present and cannot be manipulated.
|
91
|
-
# The secondary column is optional and is either to the left or to the right of the primary.
|
92
|
-
# The tertiary column is optional and if present will be opposite the secondary column in the wide display and below the secondary in the medium display.
|
93
|
-
# In the narrow display all three columns will be below each other (if present)
|
94
|
-
# If the tertiary column is used, the secondary column *must* also be used.
|
95
|
-
|
96
|
-
secondary_column: left # must be either 'left', 'right' or 'none', other values are illegal.
|
97
|
-
tertiary_column: present # must be either 'present' or 'none', other values are illegal.
|
98
|
-
|
99
|
-
number-of-posts-on-home-page: 5
|
100
|
-
number-of-recent-posts-in-widget: 10
|
101
|
-
|
102
|
-
enable-cookies-policy: yes # yes to include, no to disable
|
103
|
-
|
104
|
-
# Language customization, default is text of v1.0.1 if not defined.
|
105
|
-
|
106
|
-
tHome: Home # Menu item
|
107
|
-
tPosts: Posts # Title on home page
|
108
|
-
tCategories: Categories # Menu item
|
109
|
-
tCategory: Category # Title on categories page
|
110
|
-
tNoBlogpostFound: No blogposts found for this category # Message on category page if no posts have been found
|
111
|
-
tMore: more # Continuation text for abbreviated posts on a category page
|
112
|
-
tTags: Tags # Tag label on category page
|
113
|
-
|
114
|
-
tRecent: Recent # Title on recent posts widget
|
115
|
-
tSocialMediaResources: Social Media & Resources # Part title of social media widget
|
116
|
-
tSubscribe: Subscribe # Title of subscription widget
|
117
|
-
|
118
|
-
tUsesCookies: This site uses cookies # Cookie warning message
|
119
|
-
tCookieOk: OK # Text for OK button
|
120
|
-
tMoreInfo: More info # More cookie info text
|
87
|
+
## Configuration
|
121
88
|
|
122
|
-
|
89
|
+
The theme is configured in:
|
123
90
|
|
124
|
-
|
91
|
+
- `_sass/classic-jekyll-theme.scss`: For the graphical elements.
|
92
|
+
- `_data/setup.yml`: For general layout and widget configuration.
|
93
|
+
- `_data/text-for.yml`: For language customization of the textual elements of the theme.
|
125
94
|
|
126
|
-
|
127
|
-
|
128
|
-
Reload the website, and the columns will show up.
|
129
|
-
|
130
|
-
To add sample content that illustrates how pages and categories are implemented, copy the folder `pages` from the gem to the current project. On MacOS the gems are located in: `Library/Ruby/Gems/<version>/gems/classic-jekyll-theme-<version>`. Replace the version's with the appropriate numbers (note: these are two different unrelated version numbers). These pages not only contain examples, but also some additional information about using the theme.
|
131
|
-
|
132
|
-
## Configuration
|
95
|
+
### _sass/classic-jekyll-theme.scss
|
133
96
|
|
134
|
-
The
|
97
|
+
The default `main.scss` file has been emptied. Hence all CSS configuration is done in the theme sass file.
|
135
98
|
|
136
|
-
###
|
99
|
+
### setup.yml
|
137
100
|
|
138
101
|
The following values are configurable:
|
139
102
|
|
@@ -161,7 +124,9 @@ The following values are configurable:
|
|
161
124
|
|
162
125
|
`yes` to enable the cookies warning, `no` to disable. The cookies warning is from [Silktide](http://silktide.com/cookieconsent), distributed under the MIT license.
|
163
126
|
|
164
|
-
|
127
|
+
### text-for.yml
|
128
|
+
|
129
|
+
Some of the text elements in the theme can be translated with the following definitions:
|
165
130
|
|
166
131
|
If a definition is absent, the default shown will be used.
|
167
132
|
|
@@ -191,11 +156,21 @@ The following values are configurable:
|
|
191
156
|
|
192
157
|
`tMoreInfo: More info` # More cookie info text
|
193
158
|
|
194
|
-
|
159
|
+
## Recommendation
|
195
160
|
|
196
|
-
|
161
|
+
Typically you will need to copy some files from the gem iteself to the project (web site) directory. The most common files are:
|
162
|
+
|
163
|
+
- `_sass/classic-jekyll-theme.scss` for configuration
|
164
|
+
- `_data/setup.yml` for configuration
|
165
|
+
- `_data/text-for.yml` for configuration
|
166
|
+
- `_includes/secondary-column.html` for the secondary column contents
|
167
|
+
- `_includes/tertiary-column.html` for the tertiary column contents
|
168
|
+
|
169
|
+
These files can be found in the gem directory. On macOS this directory is located at: `Library/Ruby/Gems/<version>/gems/classic-jekyll-theme-<version>`. When you copy these files, make sure they are in the same relative directory as in the gem itself.
|
197
170
|
|
198
|
-
|
171
|
+
Besides the above mentioned files you should avoid making changes to the files provided in the gem. The more changes you make, the more difficult it will become to upgrade. Instead of chaning a file, include a new file that contains the stuff you want and include that file.
|
172
|
+
|
173
|
+
For example, if you need to add to the SASS files, create a new file and include that at the end of `_sass/classic-jekyll-theme.scss`.
|
199
174
|
|
200
175
|
## Creating Posts
|
201
176
|
|
@@ -280,6 +255,10 @@ Release 1.2.3
|
|
280
255
|
- Menu item 'Categories' will only be included if categorie pages are requested by the designer.
|
281
256
|
- Categories pages submenu is now alphabetical.
|
282
257
|
|
258
|
+
Release 1.3.0
|
259
|
+
|
260
|
+
- Removed theme specific configuration from the `_config.yml` file into `_data/setup.yml` and `_data/text-for.yml`.
|
261
|
+
|
283
262
|
## Upgrade information
|
284
263
|
|
285
264
|
### from 0.2.6 to 1.0.0
|
@@ -339,6 +318,11 @@ The index for a menu item. If not present, the menu ordering is undetermined. If
|
|
339
318
|
|
340
319
|
- Update the version number in the `Gemfile`
|
341
320
|
|
321
|
+
### from 1.2.3 to 1.3.0
|
322
|
+
|
323
|
+
- 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.
|
324
|
+
- As always, update the version number in the `Gemfile`
|
325
|
+
|
342
326
|
## Known problems (need your help)
|
343
327
|
|
344
328
|
There is some odd behaviour in the navigation bar that I have not been able to nail down yet. It has to do with the space between top level menu items. There is some additional space that I am not able to trace down. For those who like a puzzle: there is some space around a ".navbanner-menu ul li" that has no obvious source. Please let me know if you happen to find where it comes from. (rien@balancingrock.nl)
|
data/_data/setup.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Classic Jekyll Theme settings
|
2
|
+
|
3
|
+
# Classic uses three columns Primary, Secondary and Tertiary.
|
4
|
+
# The primary column is always present and cannot be manipulated.
|
5
|
+
# The secondary column is optional and is either to the left or to the right of the primary.
|
6
|
+
# The tertiary column is optional and if present will be opposite the secondary column in the wide display and below the secondary in the medium display.
|
7
|
+
# In the narrow display all three columns will be below each other (if present)
|
8
|
+
# If the tertiary column is used, the secondary column *must* also be used.
|
9
|
+
|
10
|
+
# Possible values: 'left', 'right' or 'none', other values are illegal.
|
11
|
+
secondary_column: left
|
12
|
+
|
13
|
+
# Possible values: 'present' or 'none', other values are illegal.
|
14
|
+
tertiary_column: present
|
15
|
+
|
16
|
+
# For the number of posts visible on the home page. Must be > 0.
|
17
|
+
number-of-posts-on-home-page: 5
|
18
|
+
|
19
|
+
# For the number of posts titles shown in the 'recent' widget
|
20
|
+
number-of-recent-posts-in-widget: 10
|
21
|
+
|
22
|
+
# Enables or disables the cookies warning.
|
23
|
+
enable-cookies-policy: yes
|
24
|
+
|
25
|
+
# End of file
|
data/_data/text-for.yml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Language customization for default theme elements
|
2
|
+
|
3
|
+
# Menu item
|
4
|
+
tHome: Home
|
5
|
+
|
6
|
+
# Title on home page
|
7
|
+
tPosts: Posts
|
8
|
+
|
9
|
+
# Menu item
|
10
|
+
tCategories: Categories
|
11
|
+
|
12
|
+
# Title on categories page
|
13
|
+
tCategory: Category
|
14
|
+
|
15
|
+
# Message on category page if no posts have been found
|
16
|
+
tNoBlogpostFound: No blogposts found for this category
|
17
|
+
|
18
|
+
# Continuation text for abbreviated posts on a category page
|
19
|
+
tMore: more
|
20
|
+
|
21
|
+
# Tag label on category page
|
22
|
+
tTags: Tags
|
23
|
+
|
24
|
+
# Title on recent posts widget
|
25
|
+
tRecent: Recent
|
26
|
+
|
27
|
+
# Part title of social media widget
|
28
|
+
tSocialMediaResources: Social Media & Resources
|
29
|
+
|
30
|
+
# Title of subscription widget
|
31
|
+
tSubscribe: Subscribe
|
32
|
+
|
33
|
+
# Cookie warning message
|
34
|
+
tUsesCookies: This site uses cookies
|
35
|
+
|
36
|
+
# Text for OK button
|
37
|
+
tCookieOk: OK
|
38
|
+
|
39
|
+
# More cookie info text
|
40
|
+
tMoreInfo: More info
|
data/_includes/navbanner.html
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<!-- Home page -->
|
28
28
|
{% assign home = 'Home' %}
|
29
|
-
{% if site.tHome %}{% assign home = site.tHome %}{% endif %}
|
29
|
+
{% if site.data.text-for.tHome %}{% assign home = site.data.text-for.tHome %}{% endif %}
|
30
30
|
<li>
|
31
31
|
<div class="menu-item">
|
32
32
|
<div class="menu-item-symbol"></div>
|
@@ -104,7 +104,7 @@
|
|
104
104
|
{% assign cats = site.pages | where:'layout', 'category-page' | sort:'title' %}
|
105
105
|
{% if cats.size > 0 %}
|
106
106
|
{% assign categories = 'Categories' %}
|
107
|
-
{% if site.tCategories %}{% assign categories = site.tCategories %}{% endif %}
|
107
|
+
{% if site.data.text-for.tCategories %}{% assign categories = site.data.text-for.tCategories %}{% endif %}
|
108
108
|
<li>
|
109
109
|
<input type="checkbox" id="category-checkbox">
|
110
110
|
<label for="category-checkbox">
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
|
2
2
|
{% assign usesCookies = 'This site uses cookies' %}
|
3
|
-
{% if site.tUsesCookies %}{% assign usesCookies = site.tUsesCookies %}{% endif %}
|
3
|
+
{% if site.data.text-for.tUsesCookies %}{% assign usesCookies = site.data.text-for.tUsesCookies %}{% endif %}
|
4
4
|
{% assign cookieOk = 'OK' %}
|
5
|
-
{% if site.tCookieOk %}{% assign cookieOk = site.tCookieOk %}{% endif %}
|
5
|
+
{% if site.data.text-for.tCookieOk %}{% assign cookieOk = site.data.text-for.tCookieOk %}{% endif %}
|
6
6
|
{% assign moreInfo = 'More info' %}
|
7
|
-
{% if site.tMoreInfo %}{% assign moreInfo = site.tMoreInfo %}{% endif %}
|
7
|
+
{% if site.data.text-for.tMoreInfo %}{% assign moreInfo = site.data.text-for.tMoreInfo %}{% endif %}
|
8
8
|
<script type="text/javascript">
|
9
9
|
window.cookieconsent_options = {"message":"{{ usesCookies }}","dismiss":"{{ cookieOk }}","learnMore":"{{ moreInfo}}","link":"/pages/cookie-consent/cookie-consent.html","theme":"dark-top"};
|
10
10
|
</script>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div>
|
2
2
|
{% assign recent = 'Recent' %}
|
3
|
-
{% if site.tRecent %}{% assign recent = site.tRecent %}{% endif %}
|
3
|
+
{% if site.data.text-for.tRecent %}{% assign recent = site.data.text-for.tRecent %}{% endif %}
|
4
4
|
<h1>{{ recent }}:</h1>
|
5
5
|
{% for post in site.posts %}
|
6
6
|
{% if for.index > site.number-of-recent-posts-in-widget %}{% break %}{% endif %}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div>
|
2
2
|
{% assign message = 'Social Media & Resources' %}
|
3
|
-
{% if site.tSocialMediaResources %}{% assign message = site.tSocialMediaResources %}{% endif %}
|
3
|
+
{% if site.data.text-for.tSocialMediaResources %}{% assign message = site.data.text-for.tSocialMediaResources %}{% endif %}
|
4
4
|
<h1>{{ message }}:</h1>
|
5
5
|
{% if site.github_username %}
|
6
6
|
<div>{% include widgets/social-media-res/icon-github.html username=site.github_username %}</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div>
|
2
2
|
{% assign subscribe = 'Subscribe' %}
|
3
|
-
{% if site.tSubscribe %}{% assign subscribe = site.tSubscribe %}{% endif %}
|
3
|
+
{% if site.data.text-for.tSubscribe %}{% assign subscribe = site.data.text-for.tSubscribe %}{% endif %}
|
4
4
|
<h1>{{ subscribe }}:</h1>
|
5
5
|
<p class="rss-subscribe"><a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
|
6
6
|
</div>
|
data/_layouts/category-page.html
CHANGED
@@ -4,7 +4,7 @@ layout: default
|
|
4
4
|
<article class="page">
|
5
5
|
|
6
6
|
{% assign category = 'Category' %}
|
7
|
-
{% if site.tCategory %}{% assign category = site.tCategory %}{% endif %}
|
7
|
+
{% if site.data.text-for.tCategory %}{% assign category = site.data.text-for.tCategory %}{% endif %}
|
8
8
|
<header class="page-header">
|
9
9
|
<h1 class="page-title">{{ category }}: {{ page.title | capitalize }}</h1>
|
10
10
|
</header>
|
@@ -24,7 +24,7 @@ layout: default
|
|
24
24
|
|
25
25
|
{% if post.tags.size > 0 %}
|
26
26
|
{% assign tags = 'Tags' %}
|
27
|
-
{% if site.tTags %}{% assign tags = site.tTags %}{% endif %}
|
27
|
+
{% if site.data.text-for.tTags %}{% assign tags = site.data.text-for.tTags %}{% endif %}
|
28
28
|
<p class="post-tags">{{ tags }}: <span>
|
29
29
|
{% for tag in post.tags %}
|
30
30
|
{{ tag }}{% if tag != post.tags.last %}, {% endif %}
|
@@ -33,7 +33,7 @@ layout: default
|
|
33
33
|
{% endif %}
|
34
34
|
|
35
35
|
{% assign more = 'more' %}
|
36
|
-
{% if site.tMore %}{% assign more = site.tMore %}{% endif %}
|
36
|
+
{% if site.data.text-for.tMore %}{% assign more = site.data.text-for.tMore %}{% endif %}
|
37
37
|
<p>{{ post.excerpt | remove: '<p>' | remove: '</p>' }}<a href="{{ post.url }}">{{ more }}...</a></p>
|
38
38
|
</div>
|
39
39
|
|
data/_layouts/home.html
CHANGED
@@ -5,7 +5,7 @@ layout: default
|
|
5
5
|
<div>
|
6
6
|
|
7
7
|
{% assign posts = 'Posts' %}
|
8
|
-
{% if site.tPosts %}{% assign posts = site.tPosts %}{% endif %}
|
8
|
+
{% if site.data.text-for.tPosts %}{% assign posts = site.data.text-for.tPosts %}{% endif %}
|
9
9
|
<h1>{{ posts }}</h1>
|
10
10
|
|
11
11
|
<!-- {{ content }} -->
|
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.3.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-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-feed
|
@@ -81,6 +81,8 @@ extra_rdoc_files: []
|
|
81
81
|
files:
|
82
82
|
- LICENSE.txt
|
83
83
|
- README.md
|
84
|
+
- _data/setup.yml
|
85
|
+
- _data/text-for.yml
|
84
86
|
- _includes/disqus_comments.html
|
85
87
|
- _includes/footer.html
|
86
88
|
- _includes/google-analytics.html
|