classic-jekyll-theme 1.0.1 → 1.1.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 +56 -3
- data/_includes/navbanner.html +6 -2
- data/_includes/widgets/cookie-consent.html +7 -1
- data/_includes/widgets/recent-posts.html +3 -1
- data/_includes/widgets/social-media.html +3 -1
- data/_includes/widgets/subscribe.html +3 -1
- data/_layouts/category-page.html +17 -21
- data/_layouts/home.html +4 -2
- data/pages/other/example-page.md +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b8eb4c07fc573d0fddc4c4069ef4db630b813d9
|
4
|
+
data.tar.gz: 4519a8e81eebe555241f918b486040ba784505ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a6c473e06ab6ebda7f576ce7315f30250175d0fb9c7cc2b364474463d26ecac8b1160fe8a6318f767f5705c812425569a20823a53ea7e842e0285570a491df
|
7
|
+
data.tar.gz: 21039e57cea3db982a3d8308ac902ee1899ff4cfe103660d1c824c40d9676dcc53600e0fe2da30500f8662a1b9901b61c76a366014441df53cd96f07bd0f7375
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Classic-Jekyll-Theme v1.0
|
1
|
+
# Classic-Jekyll-Theme v1.1.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
|
|
@@ -62,7 +62,7 @@ It is possible to start the jekyll server now:
|
|
62
62
|
|
63
63
|
Then the site will show up at `localhost:4000` but it will not contain everything just yet.
|
64
64
|
|
65
|
-
Next add the settings for __secondary_column__, __tertiary_column__, __number-of-posts-on-home-page__, __number-of-recent-posts-in-widget__ and __enable-cookies-policy__ to the `_config.yml` file with the values you would like to use. Alternatively simply copy and paste the following few lines to the `_config.yml` file:
|
65
|
+
Next add the settings for __secondary_column__, __tertiary_column__, __number-of-posts-on-home-page__, __number-of-recent-posts-in-widget__ and __enable-cookies-policy__ to the `_config.yml` file with the values you would like to use. Also add translations if necessary. Alternatively simply copy and paste the following few lines to the `_config.yml` file:
|
66
66
|
|
67
67
|
# Classic Jekyll Theme settings
|
68
68
|
|
@@ -80,6 +80,24 @@ Next add the settings for __secondary_column__, __tertiary_column__, __number-of
|
|
80
80
|
number-of-recent-posts-in-widget: 10
|
81
81
|
|
82
82
|
enable-cookies-policy: yes # yes to include, no to disable
|
83
|
+
|
84
|
+
# Language customization, default is text of v1.0.1 if not defined.
|
85
|
+
|
86
|
+
tHome: Home # Menu item
|
87
|
+
tPosts: Posts # Title on home page
|
88
|
+
tCategories: Categories # Menu item
|
89
|
+
tCategory: Category # Title on categories page
|
90
|
+
tNoBlogpostFound: No blogposts found for this category # Message on category page if no posts have been found
|
91
|
+
tMore: more # Continuation text for abbreviated posts on a category page
|
92
|
+
tTags: Tags # Tag label on category page
|
93
|
+
|
94
|
+
tRecent: Recent # Title on recent posts widget
|
95
|
+
tSocialMediaResources: Social Media & Resources # Part title of social media widget
|
96
|
+
tSubscribe: Subscribe # Title of subscription widget
|
97
|
+
|
98
|
+
tUsesCookies: This site uses cookies # Cookie warning message
|
99
|
+
tCookieOk: OK # Text for OK button
|
100
|
+
tMoreInfo: More info # More cookie info text
|
83
101
|
|
84
102
|
# End Classic Jekyll Theme settings
|
85
103
|
|
@@ -123,11 +141,42 @@ The following values are configurable:
|
|
123
141
|
|
124
142
|
`yes` to enable the cookies warning, `no` to disable. The cookies warning is from [Silktide](http://silktide.com/cookieconsent), distributed under the MIT license.
|
125
143
|
|
144
|
+
- Some of the text elements in the theme can be translated with the following definitions:
|
145
|
+
|
146
|
+
If a definition is absent, the default shown will be used.
|
147
|
+
|
148
|
+
`tHome: Home` # Menu item
|
149
|
+
|
150
|
+
`tPosts: Posts` # Title on home page
|
151
|
+
|
152
|
+
`tCategories: Categories` # Menu item
|
153
|
+
|
154
|
+
`tCategory: Category` # Title on categories page
|
155
|
+
|
156
|
+
`tNoBlogpostFound: No blogposts found for this category` # Message on category page if no posts have been found
|
157
|
+
|
158
|
+
`tMore: more` # Continuation text for abbreviated posts on a category page
|
159
|
+
|
160
|
+
`tTags: Tags` # Tag label on category page
|
161
|
+
|
162
|
+
`tRecent: Recent` # Title on recent posts widget
|
163
|
+
|
164
|
+
`tSocialMediaResources: Social Media & Resources` # Part title of social media widget
|
165
|
+
|
166
|
+
`tSubscribe: Subscribe` # Title of subscription widget
|
167
|
+
|
168
|
+
`tUsesCookies: This site uses cookies` # Cookie warning message
|
169
|
+
|
170
|
+
`tCookieOk: OK` # Text for OK button
|
171
|
+
|
172
|
+
`tMoreInfo: More info` # More cookie info text
|
126
173
|
|
127
174
|
### _sass/classic-jekyll-theme.scss
|
128
175
|
|
129
176
|
The default `main.scss` file has been emptied. Hence all CSS configuration is done in the theme sass file.
|
130
177
|
|
178
|
+
To start configuring this file, create a `_sass` directory and copy the `classic-jekyll-theme.scss` from the gem directory to the new directory.
|
179
|
+
|
131
180
|
## Creating Posts
|
132
181
|
|
133
182
|
Posting is done exactly like in the standard Jekyll environment.
|
@@ -171,9 +220,13 @@ For a consistent user experience in the narrow layout, it is recommened not to l
|
|
171
220
|
## History
|
172
221
|
|
173
222
|
0.2.6 Inital version (before this I was only getting acquainted with the gem-publishing mechanism)
|
223
|
+
|
174
224
|
1.0.0 Fixed a problem with navigation menu generation. (Insufficient control over menu item placement)
|
225
|
+
|
175
226
|
1.0.1 Fixed some info in this readme file and in the example pages.
|
176
227
|
|
228
|
+
1.1.0 Added language customization for default theme elements in the `_config.yml` file
|
229
|
+
|
177
230
|
## Upgrade information
|
178
231
|
|
179
232
|
### from 0.2.6 to 1.0.0
|
@@ -209,7 +262,7 @@ Specifies the menu item from which this is a submenu item.<br><br>
|
|
209
262
|
|
210
263
|
The index for a menu item. If not present, the menu ordering is undetermined. If only a part of the pages have this item then the menu items of the pages that do not have this item specified will be included first. If multiple specifications exist, then the highest number overrides the lower numbers. Like before, a lower number goes to the left -or on top- of the higher number.
|
211
264
|
|
212
|
-
### from 1.0.0 to 1.0
|
265
|
+
### from 1.0.0 (and later) to 1.1.0
|
213
266
|
|
214
267
|
No changes needed.
|
215
268
|
|
data/_includes/navbanner.html
CHANGED
@@ -29,10 +29,12 @@
|
|
29
29
|
<ul>
|
30
30
|
|
31
31
|
<!-- Home page -->
|
32
|
+
{% assign home = 'Home' %}
|
33
|
+
{% if site.tHome %}{% assign home = site.tHome %}{% endif %}
|
32
34
|
<li>
|
33
35
|
<div class="menu-item">
|
34
36
|
<div class="menu-item-symbol"></div>
|
35
|
-
<div class="menu-item-title"><a href="/"><p>
|
37
|
+
<div class="menu-item-title"><a href="/"><p>{{ home }}</p></a></div>
|
36
38
|
</div>
|
37
39
|
</li>
|
38
40
|
|
@@ -115,6 +117,8 @@
|
|
115
117
|
{% endfor %}
|
116
118
|
|
117
119
|
<!-- Categories menu -->
|
120
|
+
{% assign categories = 'Categories' %}
|
121
|
+
{% if site.tCategories %}{% assign categories = site.tCategories %}{% endif %}
|
118
122
|
<li>
|
119
123
|
<input type="checkbox" id="category-checkbox">
|
120
124
|
<label for="category-checkbox">
|
@@ -124,7 +128,7 @@
|
|
124
128
|
<p><!-- empty but necessary! --></p>
|
125
129
|
</div>
|
126
130
|
<div class="menu-item-title">
|
127
|
-
<p>
|
131
|
+
<p>{{ categories }}</p>
|
128
132
|
</div>
|
129
133
|
</div>
|
130
134
|
</label>
|
@@ -1,6 +1,12 @@
|
|
1
1
|
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
|
2
|
+
{% assign usesCookies = 'This site uses cookies' %}
|
3
|
+
{% if site.tUsesCookies %}{% assign usesCookies = site.tUsesCookies %}{% endif %}
|
4
|
+
{% assign cookieOk = 'OK' %}
|
5
|
+
{% if site.tCookieOk %}{% assign cookieOk = site.tCookieOk %}{% endif %}
|
6
|
+
{% assign moreInfo = 'More info' %}
|
7
|
+
{% if site.tMoreInfo %}{% assign moreInfo = site.tMoreInfo %}{% endif %}
|
2
8
|
<script type="text/javascript">
|
3
|
-
window.cookieconsent_options = {"message":"
|
9
|
+
window.cookieconsent_options = {"message":"{{ usesCookies }}","dismiss":"{{ cookieOk }}","learnMore":"{{ moreInfo}}","link":"/pages/cookie-consent/cookie-consent.html","theme":"dark-top"};
|
4
10
|
</script>
|
5
11
|
|
6
12
|
<script type="text/javascript" src="/assets/js/cookieconsent.min.js"></script>
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<div>
|
2
|
-
|
2
|
+
{% assign recent = 'Recent' %}
|
3
|
+
{% if site.tRecent %}{% assign recent = site.tRecent %}{% endif %}
|
4
|
+
<h1>{{ recent }}:</h1>
|
3
5
|
{% for post in site.posts %}
|
4
6
|
{% if for.index > site.number-of-recent-posts-in-widget %}{% break %}{% endif %}
|
5
7
|
<p><a href="{{ post.url }}">{% if post.date %}{{ post.date | date: "%F" }}{% endif %} {{ post.title }}</a></p>
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<div>
|
2
|
-
|
2
|
+
{% assign message = 'Social Media & Resources' %}
|
3
|
+
{% if site.tSocialMediaResources %}{% assign message = site.tSocialMediaResources %}{% endif %}
|
4
|
+
<h1>{{ message }}:</h1>
|
3
5
|
{% if site.github_username %}
|
4
6
|
<div>{% include widgets/social-media-res/icon-github.html username=site.github_username %}</div>
|
5
7
|
{% endif %}
|
data/_layouts/category-page.html
CHANGED
@@ -3,53 +3,49 @@ layout: default
|
|
3
3
|
---
|
4
4
|
<article class="page">
|
5
5
|
|
6
|
+
{% assign category = 'Category' %}
|
7
|
+
{% if site.tCategory %}{% assign category = site.tCategory %}{% endif %}
|
6
8
|
<header class="page-header">
|
7
|
-
<h1 class="page-title">
|
9
|
+
<h1 class="page-title">{{ category }}: {{ page.title | capitalize }}</h1>
|
8
10
|
</header>
|
9
11
|
|
10
12
|
{% assign found = false %}
|
11
|
-
|
12
13
|
{% for post in site.posts %}
|
13
|
-
|
14
14
|
{% if post.categories %}
|
15
|
-
|
16
15
|
{% for cat in post.categories %}
|
17
|
-
|
18
16
|
{% if cat == page.title %}
|
19
|
-
|
20
17
|
{% assign found = true %}
|
21
|
-
|
18
|
+
|
22
19
|
<div class="category-post">
|
23
|
-
|
24
20
|
<h2 class="cp-header">
|
25
21
|
<span class="cph-title">{{ post.title }}</span>
|
26
22
|
<span class="post-meta">{{ post.date | date: "%F" }}</span>
|
27
23
|
</h2>
|
28
|
-
|
24
|
+
|
29
25
|
{% if post.tags.size > 0 %}
|
30
|
-
|
26
|
+
{% assign tags = 'Tags' %}
|
27
|
+
{% if site.tTags %}{% assign tags = site.tTags %}{% endif %}
|
28
|
+
<p class="post-tags">{{ tags }}: <span>
|
31
29
|
{% for tag in post.tags %}
|
32
30
|
{{ tag }}{% if tag != post.tags.last %}, {% endif %}
|
33
31
|
{% endfor %}</span>
|
34
32
|
</p>
|
35
33
|
{% endif %}
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
|
35
|
+
{% assign more = 'more' %}
|
36
|
+
{% if site.tMore %}{% assign more = site.tMore %}{% endif %}
|
37
|
+
<p>{{ post.excerpt | remove: '<p>' | remove: '</p>' }}<a href="{{ post.url }}">{{ more }}...</a></p>
|
39
38
|
</div>
|
40
|
-
|
39
|
+
|
41
40
|
{% endif %}
|
42
|
-
|
43
41
|
{% endfor %}
|
44
|
-
|
45
42
|
{% endif %}
|
46
|
-
|
47
43
|
{% endfor %}
|
48
|
-
|
44
|
+
|
49
45
|
{% if found == false %}
|
50
|
-
|
51
|
-
|
52
|
-
|
46
|
+
{% assign message = 'No blogposts found for this category' %}
|
47
|
+
{% if site.tNoBlogpostFound %}{% assign message = site.tNoBlogpostFound %}{% endif %}
|
48
|
+
<div><p style="text-align: center;">{{ message }}</p></div>
|
53
49
|
{% endif %}
|
54
50
|
|
55
51
|
</article>
|
data/_layouts/home.html
CHANGED
data/pages/other/example-page.md
CHANGED
@@ -10,5 +10,4 @@ description: A description can be up to 156 characters long...
|
|
10
10
|
# end of description at 156 characters ----------| (last 3 chars will be replaced by '...' on overflow)
|
11
11
|
---
|
12
12
|
|
13
|
-
Example content.
|
14
|
-
This theme can be configured in the file `classic-jekyll-theme.scss` in the `_sass` directory. The `assets/main.scss` file is not used.
|
13
|
+
Example 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.0
|
4
|
+
version: 1.1.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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-feed
|