classic-jekyll-theme 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +64 -4
- data/_data/setup.yml +4 -4
- data/_data/text-for.yml +7 -0
- data/_includes/navbanner.html +100 -8
- data/_includes/secondary-column.html +4 -0
- data/_includes/widgets/older-posts.html +50 -0
- data/_layouts/post.html +1 -0
- data/_sass/classic/_widget-support.scss +20 -0
- data/pages/classic/categories.md +2 -2
- data/pages/classic/pages.md +2 -2
- metadata +27 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5afb06bcd3a7d3d37457db9e43c64b5628b89d55
|
|
4
|
+
data.tar.gz: 54511e50b300ba23973cdfa238d37e30bf637205
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc7e0fc511c13340bb43f5ba63d870ba34778cdafd4baad198bbc8695e1da6b8d120a46637f6a8cc468cc7a565e6ba12b67881dcfc23a3dbd5d508ff8af7d847
|
|
7
|
+
data.tar.gz: 7a1b60b2de726465789cc58f483615dd60013f71a39ad6a0d3a9f5733439a1726355a2144caa9dfab4c7b919e23b3d5fc74c2fafc5c9af62d3330b8e919254ed
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Classic-Jekyll-Theme v1.9.
|
|
1
|
+
# Classic-Jekyll-Theme v1.9.3
|
|
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
|
|
|
@@ -93,7 +93,6 @@ Change in the Gemfile:
|
|
|
93
93
|
Change in the `_config.yml`:
|
|
94
94
|
|
|
95
95
|
From `theme: minima` to `theme: classic-jekyll-theme`
|
|
96
|
-
Add `jekyll-data` to the gems.
|
|
97
96
|
|
|
98
97
|
Delete the file `about.md`:
|
|
99
98
|
|
|
@@ -155,7 +154,7 @@ The following values are configurable:
|
|
|
155
154
|
`top`: The navigation banner will be placed over the entire site (all columns)
|
|
156
155
|
`main`: The navigation banner will be placed at the top of the main column. Possibly next to or in between the secondary and tertiary columns.
|
|
157
156
|
|
|
158
|
-
-
|
|
157
|
+
- use-separate-navbanner:
|
|
159
158
|
|
|
160
159
|
`yes`: Use a separate file for the navigation banner. This may cause a slight performance hit for browsers, but is a huge performance enhancement for the site generation process. Note that this option necessitates a JQuery library. By default the google JQuery library is loaded. Update the `_includes/head.html` if a different JQuery library should be used or if the library should be upgraded.
|
|
161
160
|
`no`: Generate the navigation banner in-line into the posts and pages.
|
|
@@ -202,7 +201,7 @@ Typically you will need to copy some files from the gem itself to the project (w
|
|
|
202
201
|
- `_data/text-for.yml` for configuration.
|
|
203
202
|
- `_includes/secondary-column.html` for the secondary column contents.
|
|
204
203
|
- `_includes/tertiary-column.html` for the tertiary column contents.
|
|
205
|
-
- `navbanner.md` for the navigation bar menu. This is mandatory if the `
|
|
204
|
+
- `navbanner.md` for the navigation bar menu. This is mandatory if the `use-separate-navbanner` setting is used, optional when not. Hence its easier to always copy this file.
|
|
206
205
|
|
|
207
206
|
These files can be found in the gem directory. Try the command `bundle show classic-jekyll-theme` to see where the theme is located. When you copy these files, make sure they are in the same relative directory as in the gem itself.
|
|
208
207
|
|
|
@@ -250,6 +249,40 @@ To create a page that must be included in the menu bar, add the following front
|
|
|
250
249
|
|
|
251
250
|
For a consistent user experience in the narrow layout, it is recommended not to link pages to top level menu items if these menu items have a drop-down submenu.
|
|
252
251
|
|
|
252
|
+
### Alternate method for sub-menu's
|
|
253
|
+
|
|
254
|
+
In addition to the method described above there is another way to generate the sub-menu items. This method is especially handy if multiple sub-menu entries must be made for a single page using Anchor-Id's.
|
|
255
|
+
To create multiple sub menu entries:
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
...
|
|
259
|
+
menuInclude: yes
|
|
260
|
+
menuTopTitle: Classic
|
|
261
|
+
menuSubs:
|
|
262
|
+
-
|
|
263
|
+
title: Sub Menu Title
|
|
264
|
+
index: 3
|
|
265
|
+
anchorId: id-of-html-tag
|
|
266
|
+
url: /pages/menupage.html
|
|
267
|
+
-
|
|
268
|
+
title: '-------'
|
|
269
|
+
index: 4
|
|
270
|
+
link: no
|
|
271
|
+
-
|
|
272
|
+
title: Menu title below separator
|
|
273
|
+
index: 5
|
|
274
|
+
anchorId: second-anchor
|
|
275
|
+
...
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
The fields of the menuSubs YAML tag are interpreted as follows:
|
|
279
|
+
|
|
280
|
+
- title: The title of the submenu item in the drop down menu.
|
|
281
|
+
- index: The place of the submenu item within the dropdown menu. Lower numbers will go above higher numbers. This theme only sorts on menuIndex numbers, not on other properties.
|
|
282
|
+
- anchorId: The id of an HTML tag that the link will be made to. Do not include the '#' tag as this is gerenated automatically. I.e. the relative URL of the first entry above will be: `/pages/menupage.html#id-of-html-tag`.
|
|
283
|
+
- url: The url of the page to link to. If no url is specified it will link to the page this YAML matter is in.
|
|
284
|
+
- link: Set to 'no' to disable a link creation from the navigation bar to this page. However the submenu title will be included. The default behaviour assumes 'yes'. So not including this tag will create a link. Note: This probably only makes sense if some kind of "divider" must be shown. Otherwise showing a submenu item without a link will probably confuse users.
|
|
285
|
+
|
|
253
286
|
## Creating pages with custom second and tertiary columns
|
|
254
287
|
|
|
255
288
|
There are 4 YAML tags that control the custom placement and content of the secondary and tertiary columns:
|
|
@@ -317,6 +350,15 @@ Release 1.9.2
|
|
|
317
350
|
- Bugfix: David Crossley fixed a bug where the filename of the column content was not properly used.
|
|
318
351
|
- Removed pre v1.8.0 notes and update instructions to shorten the readme.
|
|
319
352
|
|
|
353
|
+
Release 1.9.3
|
|
354
|
+
|
|
355
|
+
- Version constraint on jekyll-data from 0.4 up to < 2.0 (Ashmaroli)
|
|
356
|
+
- Requires at least jekyll 3.5.1 (Ashmaroli)
|
|
357
|
+
- Typo's fixed (David Crossley)
|
|
358
|
+
- Added older-posts.html widget (Rien)
|
|
359
|
+
- Added image to posts (Rien)
|
|
360
|
+
- Added support for sub-menu links with anchor id's. Allows multiple sub-menu entries per file. (Rien)
|
|
361
|
+
|
|
320
362
|
## Upgrade information
|
|
321
363
|
|
|
322
364
|
### from 1.8.0 to 1.8.1
|
|
@@ -361,6 +403,24 @@ No changes needed.
|
|
|
361
403
|
|
|
362
404
|
The file `_layouts/default.html` was updated.
|
|
363
405
|
|
|
406
|
+
### from 1.9.2 to 1.9.3
|
|
407
|
+
|
|
408
|
+
- Added a new widget: `_includes/widgets/older-posts.html`
|
|
409
|
+
- Updated the following files:
|
|
410
|
+
|
|
411
|
+
~~~~
|
|
412
|
+
_config.yml
|
|
413
|
+
classic-jekyll-theme.gemspec
|
|
414
|
+
_data/setup.yml
|
|
415
|
+
_data/text-for.yml
|
|
416
|
+
_includes/secondary-column.html
|
|
417
|
+
_includes/navbanner.html
|
|
418
|
+
_layouts/post.html
|
|
419
|
+
_sass/classic/_widget-support.scss
|
|
420
|
+
pages/classic/categories.md
|
|
421
|
+
pages/classic/pages.md
|
|
422
|
+
~~~~
|
|
423
|
+
|
|
364
424
|
## Feedback
|
|
365
425
|
|
|
366
426
|
Comments, bug reports, feature requests and improvements are eagerly anticipated via email: rien@balancingrock.nl or via [github](https://github.com/Balancingrock/classic-jekyll-theme).
|
data/_data/setup.yml
CHANGED
|
@@ -48,7 +48,7 @@ enable-cookies-policy: yes
|
|
|
48
48
|
# Values: top | main
|
|
49
49
|
# - top: The navigation banner will be placed above all the columns
|
|
50
50
|
# - main: The navigation banner will be placed inside the main column at the top.
|
|
51
|
-
# This is the default value, it may be
|
|
51
|
+
# This is the default value, it may be overridden by YAML frontmatter.
|
|
52
52
|
#
|
|
53
53
|
# Hint: It may be advantageous to set the $navbanner-include-banner value in the classic-jekyll-theme.scss to 'false' if this value here is set to 'true'.
|
|
54
54
|
#
|
|
@@ -57,11 +57,11 @@ navbanner-position: top
|
|
|
57
57
|
# Create a separate file containing the Navigation & Banner
|
|
58
58
|
# Values: yes | no
|
|
59
59
|
#
|
|
60
|
-
# Using a separate navbanner file will speed up jekyll compilation a lot. However it also means that the browser has to make two additional fetches: the navbanner file and the
|
|
61
|
-
# If another
|
|
60
|
+
# Using a separate navbanner file will speed up jekyll compilation a lot. However it also means that the browser has to make two additional fetches: the navbanner file and the jQuery library (the latter from google). However this is mitigated by the fact that both files can be cached by the browser.
|
|
61
|
+
# If another jQuery library has to be used, edit the _includes/head.html file accordingly.
|
|
62
62
|
#
|
|
63
63
|
# Note: If this option is set to 'yes', then make sure the file 'navbanner.md' is present (can be found in the theme folder) in the same project folder as the index.md file.
|
|
64
64
|
|
|
65
65
|
use-separate-navbanner: yes
|
|
66
66
|
|
|
67
|
-
# End of file
|
|
67
|
+
# End of file
|
data/_data/text-for.yml
CHANGED
|
@@ -38,3 +38,10 @@ tCookieOk: OK
|
|
|
38
38
|
|
|
39
39
|
# More cookie info text
|
|
40
40
|
tMoreInfo: More info
|
|
41
|
+
|
|
42
|
+
# Title for Older Posts widget output
|
|
43
|
+
tOlderPosts: Older Posts
|
|
44
|
+
|
|
45
|
+
# Month names for Older Posts widget output
|
|
46
|
+
# Note: Must start with 'None' because of index starting at 0
|
|
47
|
+
tMonths: [None, January, February, March, April, May, June, July, August, September, October, November, December]
|
data/_includes/navbanner.html
CHANGED
|
@@ -39,8 +39,100 @@
|
|
|
39
39
|
{% for topTitle in topTitles %}
|
|
40
40
|
|
|
41
41
|
<!-- Create a list of sub menu item titles -->
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
{% comment %}<!-- note: the html comment tags are for editor coloring support
|
|
44
|
+
|
|
45
|
+
Due to the poor support for variables in Liquid we have to resort to some fairly laborious code.
|
|
46
|
+
|
|
47
|
+
First determine all pages that contain sub menu information for the running top menu item. These are collected in "titlePages"
|
|
48
|
+
|
|
49
|
+
Then create four lists containing the sub menu title, index, url and link respectively. These lists are all in the same sequence such that entry [n] is applicable to the same sub menu in all lists. (I.e. they are synchronous)
|
|
50
|
+
|
|
51
|
+
Then sort the lists into four new lists. Again these lists must be kept synchronous.
|
|
52
|
+
|
|
53
|
+
Lastly, step through the lists to create the actual sub menu's
|
|
54
|
+
|
|
55
|
+
-->{% endcomment %}
|
|
56
|
+
|
|
57
|
+
{% assign titlePages = site.pages | where:'menuInclude', true | where:'menuTopTitle', topTitle %}
|
|
58
|
+
|
|
59
|
+
{% assign subMenuTitles = "" | split: "" %}
|
|
60
|
+
{% assign subMenuIndexes = "" | split: "" %}
|
|
61
|
+
{% assign subMenuUrls = "" | split: "" %}
|
|
62
|
+
{% assign subMenuLinks = "" | split: "" %}
|
|
43
63
|
|
|
64
|
+
{% for ape in titlePages %}
|
|
65
|
+
{% if ape.menuSubTitle != nil %}
|
|
66
|
+
{% assign subMenuTitles = subMenuTitles | push: ape.menuSubTitle %}
|
|
67
|
+
{% if ape.menuSubIndex != nil %}
|
|
68
|
+
{% assign subMenuIndexes = subMenuIndexes | push: ape.menuSubIndex %}
|
|
69
|
+
{% else %}
|
|
70
|
+
{% assign subMenuIndexes = subMenuIndexes | push: -1 %}
|
|
71
|
+
{% endif %}
|
|
72
|
+
{% assign subMenuUrls = subMenuUrls | push: ape.url %}
|
|
73
|
+
{% if ape.menuLink != nil %}
|
|
74
|
+
{% assign subMenuLinks = subMenuLinks | push: ape.menuLink %}
|
|
75
|
+
{% else %}
|
|
76
|
+
{% assign subMenuLinks = subMenuLinks | push: true %}
|
|
77
|
+
{% endif %}
|
|
78
|
+
{% endif %}
|
|
79
|
+
{% if ape.menuSubs != nil %}
|
|
80
|
+
{% for sub in ape.menuSubs %}
|
|
81
|
+
{% assign subMenuTitles = subMenuTitles | push: sub.title %}
|
|
82
|
+
{% if sub.index != nil %}
|
|
83
|
+
{% assign subMenuIndexes = subMenuIndexes | push: sub.index %}
|
|
84
|
+
{% else %}
|
|
85
|
+
{% assign subMenuIndexes = subMenuIndexes | push: -1 %}
|
|
86
|
+
{% endif %}
|
|
87
|
+
{% if sub.url != nil %}
|
|
88
|
+
{% if sub.anchorId != nil %}
|
|
89
|
+
{% assign urlWithAnchorId = sub.url | append: '#' | append: sub.anchorId %}
|
|
90
|
+
{% else %}
|
|
91
|
+
{% assign urlWithAnchorId = sub.url %}
|
|
92
|
+
{% endif %}
|
|
93
|
+
{% else %}
|
|
94
|
+
{% if sub.anchorId != nil %}
|
|
95
|
+
{% assign urlWithAnchorId = ape.url | append: '#' | append: sub.anchorId %}
|
|
96
|
+
{% else %}
|
|
97
|
+
{% assign urlWithAnchorId = ape.url %}
|
|
98
|
+
{% endif %}
|
|
99
|
+
{% endif %}
|
|
100
|
+
{% assign subMenuUrls = subMenuUrls | push: urlWithAnchorId %}
|
|
101
|
+
{% if sub.link != nil %}
|
|
102
|
+
{% assign subMenuLinks = subMenuLinks | push: sub.link %}
|
|
103
|
+
{% else %}
|
|
104
|
+
{% assign subMenuLinks = subMenuLinks | push: true %}
|
|
105
|
+
{% endif %}
|
|
106
|
+
{% endfor %}
|
|
107
|
+
{% endif %}
|
|
108
|
+
{% endfor %}
|
|
109
|
+
|
|
110
|
+
{% assign sortedSubMenuTitles = "" | split: "" %}
|
|
111
|
+
{% assign sortedSubMenuIndexes = subMenuIndexes | sort %}
|
|
112
|
+
{% assign sortedSubMenuUrls = "" | split: "" %}
|
|
113
|
+
{% assign sortedSubMenuLinks = "" | split: "" %}
|
|
114
|
+
|
|
115
|
+
{% for menuIndex in sortedSubMenuIndexes %}
|
|
116
|
+
{% if menuIndex != -1 %}
|
|
117
|
+
{% for aMenuIndex in subMenuIndexes %}
|
|
118
|
+
{% if aMenuIndex == menuIndex %}
|
|
119
|
+
{% assign sortedSubMenuTitles = sortedSubMenuTitles | push: subMenuTitles[forloop.index0] %}
|
|
120
|
+
{% assign sortedSubMenuUrls = sortedSubMenuUrls | push: subMenuUrls[forloop.index0] %}
|
|
121
|
+
{% assign sortedSubMenuLinks = sortedSubMenuLinks | push: subMenuLinks[forloop.index0] %}
|
|
122
|
+
{% continue %}
|
|
123
|
+
{% endif %}
|
|
124
|
+
{% endfor %}
|
|
125
|
+
{% endif %}
|
|
126
|
+
{% endfor %}
|
|
127
|
+
{% for aMenuIndex in subMenuIndexes %}
|
|
128
|
+
{% if aMenuIndex == -1 %}
|
|
129
|
+
{% assign sortedSubMenuTitles = sortedSubMenuTitles | push: subMenuTitles[forloop.index0] %}
|
|
130
|
+
{% assign sortedSubMenuUrls = sortedSubMenuUrls | push: subMenuUrls[forloop.index0] %}
|
|
131
|
+
{% assign sortedSubMenuLinks = sortedSubMenuLinks | push: subMenuLinks[forloop.index0] %}
|
|
132
|
+
{% continue %}
|
|
133
|
+
{% endif %}
|
|
134
|
+
{% endfor %}
|
|
135
|
+
|
|
44
136
|
<li>
|
|
45
137
|
|
|
46
138
|
<!-- Create top menu item -->
|
|
@@ -49,7 +141,7 @@
|
|
|
49
141
|
<div class="menu-item-separator"><p><!-- empty but necessary --></p></div>
|
|
50
142
|
<div class="menu-item">
|
|
51
143
|
<div class="menu-item-symbol">
|
|
52
|
-
{% if
|
|
144
|
+
{% if sortedSubMenuTitles.size > 0 %}
|
|
53
145
|
<p><!-- will be filled by disclosure indicator --></p>
|
|
54
146
|
{% endif %}
|
|
55
147
|
</div>
|
|
@@ -57,7 +149,7 @@
|
|
|
57
149
|
<!-- Find page to link to -->
|
|
58
150
|
{% assign pageFound = false %}
|
|
59
151
|
{% for ape in site.pages %}
|
|
60
|
-
{% if ape.menuTopTitle == topTitle and ape.menuSubTitle == nil %}
|
|
152
|
+
{% if ape.menuTopTitle == topTitle and ape.menuSubTitle == nil and ape.menuSubs == nil %}
|
|
61
153
|
{% if ape.menuLink == false %}
|
|
62
154
|
<p>{{ topTitle }}</p>
|
|
63
155
|
{% else %}
|
|
@@ -75,15 +167,15 @@
|
|
|
75
167
|
</label>
|
|
76
168
|
|
|
77
169
|
<!-- Create sub menu items -->
|
|
78
|
-
{% if
|
|
170
|
+
{% if sortedSubMenuTitles.size > 0 %}
|
|
79
171
|
<ul>
|
|
80
|
-
{% for subTitle in
|
|
81
|
-
{% if
|
|
172
|
+
{% for subTitle in sortedSubMenuTitles %}
|
|
173
|
+
{% if sortedSubMenuLinks[forloop.index0] != false %}
|
|
82
174
|
<li>
|
|
83
175
|
<div class="menu-subitem">
|
|
84
176
|
<div class="menu-subitem-symbol"></div>
|
|
85
177
|
<div class="menu-subitem-title">
|
|
86
|
-
<a href="{{
|
|
178
|
+
<a href="{{ sortedSubMenuUrls[forloop.index0] }}"><p>{{ subTitle }}</p></a>
|
|
87
179
|
</div>
|
|
88
180
|
</div>
|
|
89
181
|
</li>
|
|
@@ -91,7 +183,7 @@
|
|
|
91
183
|
<li>
|
|
92
184
|
<div class="menu-subitem">
|
|
93
185
|
<div class="menu-subitem-symbol"></div>
|
|
94
|
-
<div class="menu-subitem-title"><p>{{ subTitle
|
|
186
|
+
<div class="menu-subitem-title"><p>{{ subTitle }}</p></div>
|
|
95
187
|
</div>
|
|
96
188
|
</li>
|
|
97
189
|
{% endif %}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
|
|
5
|
+
Translations can be configure in the _data/text-for.yml file for the items `tOlderPosts` and `tMonths`.
|
|
6
|
+
|
|
7
|
+
{% endcomment %}
|
|
8
|
+
<div class="older-posts">
|
|
9
|
+
{% assign olderPosts = 'Older Posts' %}
|
|
10
|
+
{% if site.data.text-for.tOlderPosts %}{% assign olderPosts = site.data.text-for.tOlderPosts %}{% endif %}
|
|
11
|
+
{% assign currentYear = "" %}
|
|
12
|
+
{% assign currentMonth = "" %}
|
|
13
|
+
{% assign yearDetails = 'no' %}
|
|
14
|
+
{% assign monthDetails = 'no' %}
|
|
15
|
+
<h1>{{ olderPosts }}:</h1>
|
|
16
|
+
{% for post in site.posts %}
|
|
17
|
+
{% assign postYear = post.date | date: "%Y" %}
|
|
18
|
+
{% assign postMonth = post.date | date: "%m" %}
|
|
19
|
+
{% if postYear != currentYear %}
|
|
20
|
+
{% assign currentYear = postYear %}
|
|
21
|
+
{% if monthDetails == 'yes' %}</details>{% assign monthDetails == 'no' %}{% endif %}
|
|
22
|
+
{% if yearDetails == 'yes' %}</details>{% assign yearDetails == 'no' %}{% endif %}
|
|
23
|
+
<details class="year-details"><summary>{{ currentYear }}</summary>
|
|
24
|
+
{% assign yearDetails = 'yes' %}
|
|
25
|
+
{% endif %}
|
|
26
|
+
{% if postMonth != currentMonth %}
|
|
27
|
+
{% if postMonth == '01' %}{% assign monthString = site.data.text-for.tMonths[1] %}
|
|
28
|
+
{% elsif postMonth == '02' %}{% assign monthString = site.data.text-for.tMonths[2] %}
|
|
29
|
+
{% elsif postMonth == '03' %}{% assign monthString = site.data.text-for.tMonths[3] %}
|
|
30
|
+
{% elsif postMonth == '04' %}{% assign monthString = site.data.text-for.tMonths[4] %}
|
|
31
|
+
{% elsif postMonth == '05' %}{% assign monthString = site.data.text-for.tMonths[5] %}
|
|
32
|
+
{% elsif postMonth == '06' %}{% assign monthString = site.data.text-for.tMonths[6] %}
|
|
33
|
+
{% elsif postMonth == '07' %}{% assign monthString = site.data.text-for.tMonths[7] %}
|
|
34
|
+
{% elsif postMonth == '08' %}{% assign monthString = site.data.text-for.tMonths[8] %}
|
|
35
|
+
{% elsif postMonth == '09' %}{% assign monthString = site.data.text-for.tMonths[9] %}
|
|
36
|
+
{% elsif postMonth == '10' %}{% assign monthString = site.data.text-for.tMonths[10] %}
|
|
37
|
+
{% elsif postMonth == '11' %}{% assign monthString = site.data.text-for.tMonths[11] %}
|
|
38
|
+
{% elsif postMonth == '12' %}{% assign monthString = site.data.text-for.tMonths[12] %}
|
|
39
|
+
{% endif %}
|
|
40
|
+
{% assign currentMonth = postMonth %}
|
|
41
|
+
{% if monthDetails == 'yes' %}</details>{% assign monthDetails == 'no' %}{% endif %}
|
|
42
|
+
<details class="month-details"><summary>{{ monthString }}</summary>
|
|
43
|
+
{% assign monthDetails = 'yes' %}
|
|
44
|
+
{% endif %}
|
|
45
|
+
<p><a href="{{ post.url }}">{{ post.title }}</a></p>
|
|
46
|
+
{% endfor %}
|
|
47
|
+
{% if monthDetails == yes %}</details>{% assign monthDetails == no %}{% endif %}
|
|
48
|
+
{% if yearDetails == yes %}</details>{% assign yearDetails == no %}{% endif %}
|
|
49
|
+
</div>
|
|
50
|
+
|
data/_layouts/post.html
CHANGED
|
@@ -6,6 +6,7 @@ layout: default
|
|
|
6
6
|
<header class="post-header">
|
|
7
7
|
<h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
|
|
8
8
|
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%F" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
|
|
9
|
+
{% if page.image %}<img class="image-float-right" src="{{ page.image }}">{% endif %}
|
|
9
10
|
</header>
|
|
10
11
|
|
|
11
12
|
<div class="post-content" itemprop="articleBody">
|
|
@@ -19,4 +19,24 @@
|
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 100%;
|
|
21
21
|
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Used by the older-posts widget
|
|
25
|
+
.older-posts {
|
|
26
|
+
h1 {
|
|
27
|
+
margin-bottom: $vspacing-unit/2;
|
|
28
|
+
}
|
|
29
|
+
.year-details {
|
|
30
|
+
summary {
|
|
31
|
+
outline: none; // Prevent blue input-active activity border
|
|
32
|
+
}
|
|
33
|
+
.month-details {
|
|
34
|
+
padding-left: $hspacing-unit;
|
|
35
|
+
p {
|
|
36
|
+
padding: 0 0 0 (2 * $hspacing-unit);
|
|
37
|
+
margin: 0 0 0 0;
|
|
38
|
+
text-indent: -$hspacing-unit;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
22
42
|
}
|
data/pages/classic/categories.md
CHANGED
|
@@ -8,6 +8,6 @@ menuSubTitle: "About Categories"
|
|
|
8
8
|
excerpt: "An excerpt is used as the page description and can be up to 160 characters long..."
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
The "Categories" navigation menu is created automatically. However the website designer has to specify which categories must be included in the menu. This can be done by adding a page with the layout set to "category-page". This kicks off the creation of a page for the
|
|
11
|
+
The "Categories" navigation menu is created automatically. However the website designer has to specify which categories must be included in the menu. This can be done by adding a page with the layout set to "category-page". This kicks off the creation of a page for the categories specified in the `title` of that page's YAML matter.
|
|
12
12
|
|
|
13
|
-
The html content of that page will be ignored. An example can be seen in the `pages/categories/classic.md` file.
|
|
13
|
+
The html content of that page will be ignored. An example can be seen in the `pages/categories/classic.md` file.
|
data/pages/classic/pages.md
CHANGED
|
@@ -18,6 +18,6 @@ Pages in classic can be linked to from the navigation menu. To do so there are s
|
|
|
18
18
|
- menuSubTitle: The title of the submenu item in the drop down menu.
|
|
19
19
|
- menuSubIndex: The place of the submenu item within the dropdown menu. Lower numbers will go above higher numbers. This theme only sorts on menuIndex numbers, not on other properties.
|
|
20
20
|
|
|
21
|
-
For a consistent user experience in the narrow layout, it is
|
|
21
|
+
For a consistent user experience in the narrow layout, it is recommended not to link pages to top level menu items if these menu items have a drop-down submenu.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Submenus only go one level deep. If deeper nesting is necessary, send me a mail at: rien@balancingrock.nl
|
metadata
CHANGED
|
@@ -1,57 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: classic-jekyll-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rien
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: jekyll
|
|
14
|
+
name: jekyll
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '3.5'
|
|
20
|
+
- - ">="
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 3.5.1
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
27
|
- - "~>"
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
29
|
+
version: '3.5'
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 3.5.1
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: jekyll-
|
|
34
|
+
name: jekyll-feed
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
30
36
|
requirements:
|
|
31
37
|
- - "~>"
|
|
32
38
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.
|
|
39
|
+
version: '0.8'
|
|
34
40
|
type: :runtime
|
|
35
41
|
prerelease: false
|
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
43
|
requirements:
|
|
38
44
|
- - "~>"
|
|
39
45
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0.
|
|
46
|
+
version: '0.8'
|
|
41
47
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: jekyll
|
|
48
|
+
name: jekyll-data
|
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
|
44
50
|
requirements:
|
|
45
|
-
- - "
|
|
51
|
+
- - ">="
|
|
46
52
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
48
|
-
|
|
53
|
+
version: '0.4'
|
|
54
|
+
- - "<"
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '2.0'
|
|
57
|
+
type: :runtime
|
|
49
58
|
prerelease: false
|
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
60
|
requirements:
|
|
52
|
-
- - "
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0.4'
|
|
64
|
+
- - "<"
|
|
53
65
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
66
|
+
version: '2.0'
|
|
55
67
|
- !ruby/object:Gem::Dependency
|
|
56
68
|
name: bundler
|
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -109,6 +121,7 @@ files:
|
|
|
109
121
|
- _includes/tertiary-column.html
|
|
110
122
|
- _includes/widgets/browser-info.html
|
|
111
123
|
- _includes/widgets/cookie-consent.html
|
|
124
|
+
- _includes/widgets/older-posts.html
|
|
112
125
|
- _includes/widgets/recent-posts.html
|
|
113
126
|
- _includes/widgets/social-media-res/icon-github.html
|
|
114
127
|
- _includes/widgets/social-media-res/icon-github.svg
|