classic-jekyll-theme 1.9.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -359
  3. data/_data/setup.yml +62 -10
  4. data/_data/text-for.yml +3 -0
  5. data/_includes/banner-area.html +57 -0
  6. data/_includes/banner-icon.html +23 -0
  7. data/_includes/banner-title-area.html +30 -0
  8. data/_includes/cblock-row.html +15 -3
  9. data/_includes/cblock.html +16 -1
  10. data/_includes/disqus-comments.html +39 -0
  11. data/_includes/footer.html +11 -0
  12. data/_includes/google-analytics.html +18 -8
  13. data/_includes/head.html +71 -30
  14. data/_includes/menubar-icon.html +23 -0
  15. data/_includes/menubar.html +428 -0
  16. data/_includes/secondary-column.html +30 -9
  17. data/_includes/tertiary-column.html +7 -3
  18. data/_includes/vertical-menu.html +284 -0
  19. data/_includes/widgets/browser-info.html +5 -2
  20. data/_includes/widgets/categories.html +21 -0
  21. data/_includes/widgets/cookie-consent.html +10 -10
  22. data/_includes/widgets/older-posts.html +63 -42
  23. data/_includes/widgets/recent-posts.html +14 -8
  24. data/_includes/widgets/social-media-res/icon-github.html +7 -1
  25. data/_includes/widgets/social-media-res/icon-github.svg +1 -1
  26. data/_includes/widgets/social-media-res/icon-twitter.html +7 -1
  27. data/_includes/widgets/social-media-res/icon-twitter.svg +1 -1
  28. data/_includes/widgets/social-media.html +19 -10
  29. data/_includes/widgets/subscribe.html +9 -4
  30. data/_includes/widgets/youtube-player.html +8 -8
  31. data/_layouts/banner-layout.html +1 -0
  32. data/_layouts/category-page.html +33 -33
  33. data/_layouts/content-blocks.html +1 -3
  34. data/_layouts/default.html +129 -55
  35. data/_layouts/home.html +4 -4
  36. data/_layouts/page.html +13 -12
  37. data/_layouts/post.html +13 -12
  38. data/_sass/classic-jekyll-theme.scss +1143 -155
  39. data/_sass/classic/_banner-area.scss +548 -0
  40. data/_sass/classic/_body.scss +15 -0
  41. data/_sass/classic/_columns.scss +122 -0
  42. data/_sass/classic/{_support.scss → _custom.scss} +12 -4
  43. data/_sass/classic/_footer.scss +31 -0
  44. data/_sass/classic/_menubar.scss +509 -0
  45. data/_sass/classic/_normalize-override.scss +9 -9
  46. data/_sass/classic/_normalize.scss +13 -27
  47. data/_sass/classic/_page.scss +1 -1
  48. data/_sass/classic/_post.scss +1 -1
  49. data/_sass/classic/_theme-internal.scss +37 -0
  50. data/_sass/classic/_theme-library.scss +85 -0
  51. data/_sass/classic/_vertical-menu.scss +237 -0
  52. data/_sass/classic/_widgets.scss +88 -0
  53. data/assets/img/banner-area-layout.png +0 -0
  54. data/assets/img/cog-wheels-120x68.png +0 -0
  55. data/assets/img/cog-wheels-240x135.png +0 -0
  56. data/assets/img/cog-wheels-30x17.png +0 -0
  57. data/assets/img/cog-wheels-60x43.png +0 -0
  58. data/assets/img/column-panel-layout.png +0 -0
  59. data/assets/img/test-pattern-110x83.png +0 -0
  60. data/assets/img/test-pattern-1280x800.png +0 -0
  61. data/assets/img/test-pattern-220x165.png +0 -0
  62. data/assets/img/test-pattern-55x42.png +0 -0
  63. data/assets/img/test-pattern-640x400.png +0 -0
  64. data/assets/img/top-level-layout.png +0 -0
  65. data/icons/android-chrome-192x192.png +0 -0
  66. data/icons/apple-touch-icon.png +0 -0
  67. data/icons/browserconfig.xml +9 -0
  68. data/icons/favicon-16x16.png +0 -0
  69. data/icons/favicon-32x32.png +0 -0
  70. data/icons/favicon.ico +0 -0
  71. data/icons/manifest.json +13 -0
  72. data/icons/mstile-150x150.png +0 -0
  73. data/icons/safari-pinned-tab.svg +14 -0
  74. data/pages/about/about.md +4 -1
  75. data/pages/classic/01-features.md +36 -0
  76. data/pages/classic/02-setup.md +113 -0
  77. data/pages/classic/03-pages-and-posts.md +21 -0
  78. data/pages/classic/04-posts.md +18 -0
  79. data/pages/classic/05-menus.md +122 -0
  80. data/pages/classic/06-categories.md +38 -0
  81. data/pages/classic/07-terminology.md +35 -0
  82. data/pages/classic/08-versioning.md +23 -0
  83. data/pages/contact/contact.md +7 -2
  84. data/pages/jekyll/01-jekyll.md +42 -0
  85. data/pages/jekyll/02-speed.md +88 -0
  86. data/pages/jekyll/03-ruby.md +19 -0
  87. data/pages/layouts/banner-main.md +36 -0
  88. data/pages/{other → layouts}/blocks.md +4 -3
  89. data/pages/layouts/landing-page.md +21 -0
  90. data/pages/layouts/no-sec-no-ter.md +28 -0
  91. data/pages/layouts/sec-left-no-ter.md +28 -0
  92. data/pages/layouts/sec-left-ter-right.md +28 -0
  93. data/pages/layouts/sec-right-no-ter.md +28 -0
  94. data/pages/layouts/sec-right-ter-left.md +28 -0
  95. data/pages/{more/more.md → menus/landing-page.md} +2 -5
  96. data/pages/menus/submenu-subsections.md +72 -0
  97. data/pages/menus/submenu1.md +22 -0
  98. data/pages/menus/submenu2.md +21 -0
  99. data/pages/menus/submenu3.md +30 -0
  100. metadata +72 -24
  101. data/_includes/disqus_comments.html +0 -25
  102. data/_includes/navbanner.html +0 -232
  103. data/_layouts/navbanner-layout.html +0 -1
  104. data/_sass/classic/_formatting.scss +0 -336
  105. data/_sass/classic/_layout.scss +0 -331
  106. data/_sass/classic/_widget-support.scss +0 -42
  107. data/navbanner.md +0 -5
  108. data/pages/classic/categories.md +0 -13
  109. data/pages/classic/classic.md +0 -12
  110. data/pages/classic/known-problems.md +0 -14
  111. data/pages/classic/pages.md +0 -23
  112. data/pages/classic/posts.md +0 -19
  113. data/pages/other/example-page.md +0 -12
  114. data/pages/other/other.md +0 -10
@@ -1,16 +1,37 @@
1
- <!-- This widget divider will only show up in the narrow layout -->
2
- <div class="secondary-widget-divider"></div>
3
1
 
4
- <div class="widget">{% include widgets/recent-posts.html %}</div>
2
+ <!-- include secondary-column.html -->
3
+ {%- comment -%}<!-- This widget separator will only show up in the narrow layout -->{%- endcomment %}
4
+ <div class="secondary-widget-separator"></div>
5
5
 
6
- <div class="widget-divider"></div>
6
+ {%- if site.data.setup.drop-down-menu -%}{%- else %}
7
+ <div class="widget-separator"></div>
8
+ {%- endif %}
7
9
 
8
- <div class="widget">{% include widgets/social-media.html %}</div>
10
+ <div class="widget">
11
+ {% include widgets/recent-posts.html %}
12
+ </div>
9
13
 
10
- <div class="widget-divider"></div>
14
+ <div class="widget-separator"></div>
11
15
 
12
- <div class="widget">{% include widgets/subscribe.html %}</div>
16
+ <div class="widget">
17
+ {% include widgets/social-media.html %}
18
+ </div>
13
19
 
14
- <div class="widget-divider"></div>
20
+ <div class="widget-separator"></div>
15
21
 
16
- <div class="widget">{% include widgets/older-posts.html %}</div>
22
+ <div class="widget">
23
+ {% include widgets/subscribe.html %}
24
+ </div>
25
+
26
+ <div class="widget-separator"></div>
27
+
28
+ <div class="widget">
29
+ {% include widgets/older-posts.html %}
30
+ </div>
31
+
32
+ <div class="widget-separator"></div>
33
+
34
+ <div class="widget">
35
+ {% include widgets/categories.html label-modifier=include.label-modifier %}
36
+ </div>
37
+ <!-- end of include secondary-column.html -->
@@ -1,4 +1,8 @@
1
- <!-- This widget divider will only show up when the tertiary column content is merged into the secondary column-->
2
- <div class="tertiary-widget-divider"></div>
3
1
 
4
- <div class="widget">{% include widgets/browser-info.html %}</div>
2
+ <!-- include tertiary-column.html -->
3
+ {%- comment -%}<!-- This widget separator will only show up when the tertiary column content is merged into the secondary column-->{%- endcomment %}
4
+ <div class="tertiary-widget-separator"></div>
5
+ <div class="widget">
6
+ {% include widgets/browser-info.html %}
7
+ </div>
8
+ <!-- end of include tertiary-column.html -->
@@ -0,0 +1,284 @@
1
+
2
+ <!-- include vertical-menu.html -->
3
+ {%- if jekyll.environment != 'production' and site.data.setup.fast-content-build -%}{%- else -%}
4
+
5
+ {%- comment -%}<!-- Get the top menu item for which to create the menu -->{%- endcomment -%}
6
+ {%- if page.menuTopTitle -%}
7
+ {%- assign topTitle = page.menuTopTitle -%}
8
+ {%- else -%}
9
+ {%- comment -%}<!-- Fix for missing top title for the home page -->{%- endcomment -%}
10
+ {%- assign home = 'Home' -%}
11
+ {%- if site.data.text-for.tHome -%}{%- assign home = site.data.text-for.tHome -%}{%- endif -%}
12
+ {%- assign topTitle = home -%}
13
+ {%- endif %}
14
+
15
+ <nav class="vmenu-container">
16
+ <div class="topTitle"><h1>{{ topTitle }}</h1></div>
17
+ <div class="vmenu">
18
+
19
+ {%- comment -%}<!-- Find all pages that belong to the menuTopTitle of this page -->{%- endcomment -%}
20
+
21
+ {%- assign topTitlePages = site.pages | where:'menuInclude', true | where:'menuTopTitle', topTitle -%}
22
+
23
+ {%- comment -%}<!-- note: these html comment tags are for editor coloring support
24
+
25
+ Due to the poor support for variables in Liquid we have to resort to some fairly laborious code.
26
+
27
+ First determine all pages that contain sub menu information for the running top menu item. These are collected in "topTitlePages"
28
+
29
+ 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)
30
+
31
+ Then sort the lists into four new lists. Again these lists must be kept synchronous.
32
+
33
+ Lastly, step through the lists to create the actual sub menu's
34
+
35
+ -->{%- endcomment -%}
36
+
37
+ {%- comment -%}<!-- Find all sub menu entries on the topTitlePages -->{%- endcomment -%}
38
+
39
+ {%- assign subMenuTitles = "" | split: "" -%}
40
+ {%- assign subMenuIndexes = "" | split: "" -%}
41
+ {%- assign subMenuUrls = "" | split: "" -%}
42
+ {%- assign subMenuLinks = "" | split: "" -%}
43
+
44
+ {%- for ape in topTitlePages -%}
45
+ {%- if ape.menuSubTitle != nil -%}
46
+ {%- assign subMenuTitles = subMenuTitles | push: ape.menuSubTitle -%}
47
+ {%- if ape.menuSubIndex != nil -%}
48
+ {%- assign subMenuIndexes = subMenuIndexes | push: ape.menuSubIndex -%}
49
+ {%- else -%}
50
+ {%- assign subMenuIndexes = subMenuIndexes | push: -1 -%}
51
+ {%- endif -%}
52
+ {%- assign subMenuUrls = subMenuUrls | push: ape.url -%}
53
+ {%- if ape.menuLink != nil -%}
54
+ {%- assign subMenuLinks = subMenuLinks | push: ape.menuLink -%}
55
+ {%- else -%}
56
+ {%- assign subMenuLinks = subMenuLinks | push: true -%}
57
+ {%- endif -%}
58
+ {%- endif -%}
59
+ {%- if ape.menuSubs != nil -%}
60
+ {%- for sub in ape.menuSubs -%}
61
+ {%- assign subMenuTitles = subMenuTitles | push: sub.title -%}
62
+ {%- if sub.index != nil -%}
63
+ {%- assign subMenuIndexes = subMenuIndexes | push: sub.index -%}
64
+ {%- else -%}
65
+ {%- assign subMenuIndexes = subMenuIndexes | push: -1 -%}
66
+ {%- endif -%}
67
+ {%- if sub.url != nil -%}
68
+ {%- if sub.anchorId != nil -%}
69
+ {%- assign urlWithAnchorId = sub.url | append: '#' | append: sub.anchorId -%}
70
+ {%- else -%}
71
+ {%- assign urlWithAnchorId = sub.url -%}
72
+ {%- endif -%}
73
+ {%- else -%}
74
+ {%- if sub.anchorId != nil -%}
75
+ {%- assign urlWithAnchorId = ape.url | append: '#' | append: sub.anchorId -%}
76
+ {%- else -%}
77
+ {%- assign urlWithAnchorId = ape.url -%}
78
+ {%- endif -%}
79
+ {%- endif -%}
80
+ {%- assign subMenuUrls = subMenuUrls | push: urlWithAnchorId -%}
81
+ {%- if sub.link != nil -%}
82
+ {%- assign subMenuLinks = subMenuLinks | push: sub.link -%}
83
+ {%- else -%}
84
+ {%- assign subMenuLinks = subMenuLinks | push: true -%}
85
+ {%- endif -%}
86
+ {%- endfor -%}
87
+ {%- endif -%}
88
+ {%- endfor -%}
89
+
90
+ {%- comment -%}<!-- Sort all 4 the lists based on the index of the subMenu that was read -->{%- endcomment -%}
91
+
92
+ {%- assign sortedSubMenuTitles = "" | split: "" -%}
93
+ {%- assign sortedSubMenuIndexes = subMenuIndexes | sort -%}
94
+ {%- assign sortedSubMenuUrls = "" | split: "" -%}
95
+ {%- assign sortedSubMenuLinks = "" | split: "" -%}
96
+
97
+ {%- for menuIndex in sortedSubMenuIndexes -%}
98
+ {%- if menuIndex != -1 -%}
99
+ {%- for aMenuIndex in subMenuIndexes -%}
100
+ {%- if aMenuIndex == menuIndex -%}
101
+ {%- assign sortedSubMenuTitles = sortedSubMenuTitles | push: subMenuTitles[forloop.index0] -%}
102
+ {%- assign sortedSubMenuUrls = sortedSubMenuUrls | push: subMenuUrls[forloop.index0] -%}
103
+ {%- assign sortedSubMenuLinks = sortedSubMenuLinks | push: subMenuLinks[forloop.index0] -%}
104
+ {%- continue -%}
105
+ {%- endif -%}
106
+ {%- endfor -%}
107
+ {%- endif -%}
108
+ {%- endfor -%}
109
+ {%- for aMenuIndex in subMenuIndexes -%}
110
+ {%- if aMenuIndex == -1 -%}
111
+ {%- assign sortedSubMenuTitles = sortedSubMenuTitles | push: subMenuTitles[forloop.index0] -%}
112
+ {%- assign sortedSubMenuUrls = sortedSubMenuUrls | push: subMenuUrls[forloop.index0] -%}
113
+ {%- assign sortedSubMenuLinks = sortedSubMenuLinks | push: subMenuLinks[forloop.index0] -%}
114
+ {%- continue -%}
115
+ {%- endif -%}
116
+ {%- endfor -%}
117
+
118
+
119
+
120
+ {%- for subMenuTitle in sortedSubMenuTitles -%}
121
+
122
+ {%- comment -%}<!-- Repeat the above, for the submenu title, building the subsub menu -->{%- endcomment -%}
123
+
124
+ {%- assign subsubMenuTitles = "" | split: "" -%}
125
+ {%- assign subsubMenuIndexes = "" | split: "" -%}
126
+ {%- assign subsubMenuUrls = "" | split: "" -%}
127
+ {%- assign subsubMenuLinks = "" | split: "" -%}
128
+
129
+ {%- for ape in topTitlePages -%}
130
+ {%- if ape.menuSubs != nil -%}
131
+ {%- for sub in ape.menuSubs -%}
132
+ {%- if sub.title == subMenuTitle -%}
133
+ {%- if sub.sub != nil -%}
134
+ {%- for subsub in sub.sub -%}
135
+ {%- assign subsubMenuTitles = subsubMenuTitles | push: subsub.title -%}
136
+ {%- if subsub.index != nil -%}
137
+ {%- assign subsubMenuIndexes = subsubMenuIndexes | push: subsub.index -%}
138
+ {%- else -%}
139
+ {%- assign subsubMenuIndexes = subsubMenuIndexes | push: -1 -%}
140
+ {%- endif -%}
141
+ {%- if subsub.url != nil -%}
142
+ {%- if subsub.anchorId != nil -%}
143
+ {%- assign urlWithAnchorId = subsub.url | append: '#' | append: subsub.anchorId -%}
144
+ {%- else -%}
145
+ {%- assign urlWithAnchorId = subsub.url -%}
146
+ {%- endif -%}
147
+ {%- else -%}
148
+ {%- if subsub.anchorId != nil -%}
149
+ {%- assign urlWithAnchorId = ape.url | append: '#' | append: subsub.anchorId -%}
150
+ {%- else -%}
151
+ {%- assign urlWithAnchorId = ape.url -%}
152
+ {%- endif -%}
153
+ {%- endif -%}
154
+ {%- assign subsubMenuUrls = subsubMenuUrls | push: urlWithAnchorId -%}
155
+ {%- if subsub.link != nil -%}
156
+ {%- assign subsubMenuLinks = subsubMenuLinks | push: subsub.link -%}
157
+ {%- else -%}
158
+ {%- assign subsubMenuLinks = subsubMenuLinks | push: true -%}
159
+ {%- endif -%}
160
+ {%- endfor -%}
161
+ {%- endif -%}
162
+ {%- endif -%}
163
+ {%- endfor -%}
164
+ {%- endif -%}
165
+ {%- endfor -%}
166
+
167
+ {%- comment -%}<!-- Sort all 4 the lists based on the index of the subMenu that was read -->{%- endcomment -%}
168
+
169
+ {%- assign sortedSubsubMenuTitles = "" | split: "" -%}
170
+ {%- assign sortedSubsubMenuIndexes = subsubMenuIndexes | sort -%}
171
+ {%- assign sortedSubsubMenuUrls = "" | split: "" -%}
172
+ {%- assign sortedSubsubMenuLinks = "" | split: "" -%}
173
+
174
+ {%- for menuIndex in sortedSubsubMenuIndexes -%}
175
+ {%- if menuIndex != -1 -%}
176
+ {%- for aMenuIndex in subsubMenuIndexes -%}
177
+ {%- if aMenuIndex == menuIndex -%}
178
+ {%- assign sortedSubsubMenuTitles = sortedSubsubMenuTitles | push: subsubMenuTitles[forloop.index0] -%}
179
+ {%- assign sortedSubsubMenuUrls = sortedSubsubMenuUrls | push: subsubMenuUrls[forloop.index0] -%}
180
+ {%- assign sortedSubsubMenuLinks = sortedSubsubMenuLinks | push: subsubMenuLinks[forloop.index0] -%}
181
+ {%- continue -%}
182
+ {%- endif -%}
183
+ {%- endfor -%}
184
+ {%- endif -%}
185
+ {%- endfor -%}
186
+ {%- for aMenuIndex in subsubMenuIndexes -%}
187
+ {%- if aMenuIndex == -1 -%}
188
+ {%- assign sortedSubsubMenuTitles = sortedSubsubMenuTitles | push: subsubMenuTitles[forloop.index0] -%}
189
+ {%- assign sortedSubsubMenuUrls = sortedSubsubMenuUrls | push: subsubMenuUrls[forloop.index0] -%}
190
+ {%- assign sortedSubsubMenuLinks = sortedSubsubMenuLinks | push: subsubMenuLinks[forloop.index0] -%}
191
+ {%- continue -%}
192
+ {%- endif -%}
193
+ {%- endfor %}
194
+ <div class="subitem">
195
+
196
+ {%- comment -%}<!-- Sub menu item -->{%- endcomment -%}
197
+
198
+ {%- if sortedSubsubMenuTitles.size == 0 -%}
199
+ {%- if sortedSubMenuLinks[forloop.index0] != false -%}
200
+ {%- if sortedSubMenuUrls[forloop.index0] == page.url %}
201
+ <div class="sub-isActivePage">
202
+ <div class="disclosure"><p></p></div>
203
+ <div class="title">
204
+ <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
205
+ </div>
206
+ </div>
207
+ {%- else %}
208
+ <div class="sub-hasLink">
209
+ <div class="disclosure"><p></p></div>
210
+ <div class="title">
211
+ <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
212
+ </div>
213
+ </div>
214
+ {%- endif -%}
215
+ {%- else %}
216
+ <div class="sub">
217
+ <div class="disclosure"><p></p></div>
218
+ <div class="title"><p>{{ subMenuTitle }}</p></div>
219
+ </div>
220
+ {%- endif -%}
221
+ {%- else %}
222
+ <input type="checkbox" id="{{ subMenuTitle | append:'-vmenu-' | append: include.label-modifier }}">
223
+ {%- if sortedSubMenuLinks[forloop.index0] != false -%}
224
+ {%- if sortedSubMenuUrls[forloop.index0] == page.url %}
225
+ <div class="sub-isActivePage">
226
+ <label class="disclosure show-hover" for="{{ subMenuTitle | append:'-vmenu-' | append: include.label-modifier }}">
227
+ <p class="symbol"><!-- will be filled by disclosure indicator --></p>
228
+ </label>
229
+ <div class="title">
230
+ <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
231
+ </div>
232
+ </div>
233
+ {%- else %}
234
+ <div class="sub-hasLink">
235
+ <label class="disclosure show-hover" for="{{ subMenuTitle | append:'-vmenu-' | append: include.label-modifier }}">
236
+ <p class="symbol"><!-- will be filled by disclosure indicator --></p>
237
+ </label>
238
+ <div class="title">
239
+ <a href="{{ sortedSubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subMenuTitle }}</p></a>
240
+ </div>
241
+ </div>
242
+ {%- endif -%}
243
+ {%- else %}
244
+ <div class="sub">
245
+ <label class="disclosure show-hover" for="{{ subMenuTitle | append:'-vmenu-' | append: include.label-modifier }}">
246
+ <p class="symbol"><!-- will be filled by disclosure indicator --></p>
247
+ </label>
248
+ <div class="title"><p>{{ subMenuTitle }}</p></div>
249
+ </div>
250
+ {%- endif -%}
251
+
252
+ {%- comment -%}<!-- Sub sub menu items -->{%- endcomment -%}
253
+
254
+ {%- for subsubTitle in sortedSubsubMenuTitles -%}
255
+ {%- if sortedSubsubMenuLinks[forloop.index0] != false -%}
256
+ {%- if sortedSubsubMenuUrls[forloop.index0] == page.url %}
257
+ <div class="subsub-isActivePage">
258
+ <div class="disclosure"><p></p></div>
259
+ <div class="title">
260
+ <a href="{{ sortedSubsubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subsubTitle }}</p></a>
261
+ </div>
262
+ </div>
263
+ {%- else %}
264
+ <div class="subsub-hasLink">
265
+ <div class="disclosure"><p></p></div>
266
+ <div class="title">
267
+ <a href="{{ sortedSubsubMenuUrls[forloop.index0] | relative_url }}"><p>{{ subsubTitle }}</p></a>
268
+ </div>
269
+ </div>
270
+ {% endif -%}
271
+ {%- else %}
272
+ <div class="subsub">
273
+ <div class="disclosure"><p></p></div>
274
+ <div class="title"><p>{{ subsubTitle }}</p></div>
275
+ </div>
276
+ {%- endif -%}
277
+ {%- endfor -%}
278
+ {%- endif %}
279
+ </div>
280
+ {%- endfor %}
281
+ </div>
282
+ </nav>
283
+ {%- endif %}
284
+ <!-- end of include vertical-menu.html -->
@@ -1,3 +1,5 @@
1
+
2
+ <!-- include browser-info.html -->
1
3
  <div class="browser-info">
2
4
  <h1>Browser information:</h1>
3
5
  <p>This website uses CSS3 & HTML5. It is recommended to use a modern browser with at least the following version number:</p>
@@ -9,5 +11,6 @@
9
11
  <li>Safari 9.0</li>
10
12
  <li>Opera 17.0</li>
11
13
  </ul>
12
- <p>Problems? please <a href="/pages/contact/contact.html">contact</a> me.</p>
13
- </div>
14
+ <p>Problems? please <a href="{{ "/pages/contact/contact.html" | relative_url }}">contact</a> me.</p>
15
+ </div>
16
+ <!-- end of include browser-info.html -->
@@ -0,0 +1,21 @@
1
+
2
+ <!-- include categories.html -->
3
+ {%- if jekyll.environment != 'production' and site.data.setup.fast-content-build -%}{%- else %}
4
+ <div class="categories">
5
+ {%- assign categories = 'Categories' -%}
6
+ {%- if site.data.text-for.tCategories -%}{%- assign categories = site.data.text-for.tCategories -%}{%- endif %}
7
+ <input type="checkbox" id={{ "category-checkbox" | append: include.label-modifier }}>
8
+ <label for={{ "category-checkbox" | append: include.label-modifier }}><h1>{{ categories }}</h1></label>
9
+ {%- assign cats = site.pages | where:'layout', 'category-page' | sort:'title' -%}
10
+ {%- if cats.size > 0 -%}
11
+ {%- for cat in cats %}
12
+ <div class="title"><a href="{{ cat.url | relative_url }}"><p>{{ cat.title | capitalize }}</p></a></div>
13
+ {%- endfor -%}
14
+ {%- else -%}
15
+ {%- assign no-categories = 'None' -%}
16
+ {%- if site.data.text-for.tNoCategories -%}{%- assign no-categories = site.data.text-for.tNoCategories -%}{%- endif %}
17
+ <div class="title"><p>{{ no-categories | capitalize }}</p></div>
18
+ {%- endif %}
19
+ </div>
20
+ {%- endif %}
21
+ <!-- end of include categories.html -->
@@ -1,4 +1,4 @@
1
- {% comment %}
1
+ {%- comment -%}<!--
2
2
 
3
3
  Usage:
4
4
 
@@ -6,16 +6,16 @@ Enable the cookie consent script by setting the "_data/setup.yml" item `enable-c
6
6
 
7
7
  Configure the text for the message and the buttons in "_data/text-for.yml" for the items `tUsesCookies`, `tCookieOk` and `tMoreInfo`
8
8
 
9
- {% endcomment %}
10
- {% assign usesCookies = 'This site uses cookies' %}
11
- {% if site.data.text-for.tUsesCookies %}{% assign usesCookies = site.data.text-for.tUsesCookies %}{% endif %}
12
- {% assign cookieOk = 'OK' %}
13
- {% if site.data.text-for.tCookieOk %}{% assign cookieOk = site.data.text-for.tCookieOk %}{% endif %}
14
- {% assign moreInfo = 'More info' %}
15
- {% if site.data.text-for.tMoreInfo %}{% assign moreInfo = site.data.text-for.tMoreInfo %}{% endif %}
9
+ -->{%- endcomment -%}
10
+ {%- assign usesCookies = 'This site uses cookies' -%}
11
+ {%- if site.data.text-for.tUsesCookies -%}{%- assign usesCookies = site.data.text-for.tUsesCookies -%}{%- endif -%}
12
+ {%- assign cookieOk = 'OK' -%}
13
+ {%- if site.data.text-for.tCookieOk -%}{%- assign cookieOk = site.data.text-for.tCookieOk -%}{%- endif -%}
14
+ {%- assign moreInfo = 'More info' -%}
15
+ {%- if site.data.text-for.tMoreInfo -%}{%- assign moreInfo = site.data.text-for.tMoreInfo -%}{%- endif -%}
16
16
  <script type="text/javascript">
17
- window.cookieconsent_options = {"message":"{{ usesCookies }}","dismiss":"{{ cookieOk }}","learnMore":"{{ moreInfo}}","link":"/pages/cookie-consent/cookie-consent.html","theme":"dark-top"};
17
+ window.cookieconsent_options = {"message":"{{ usesCookies }}","dismiss":"{{ cookieOk }}","learnMore":"{{ moreInfo}}","link":"/pages/cookie-consent/cookie-consent.html | relative_url ","theme":"dark-top"};
18
18
  </script>
19
19
 
20
- <script type="text/javascript" src="/assets/js/cookieconsent.min.js"></script>
20
+ <script type="text/javascript" src="/assets/js/cookieconsent.min.js | relative_url "></script>
21
21
  <!-- End Cookie Consent plugin -->
@@ -1,50 +1,71 @@
1
- {% comment %}
1
+
2
+ <!-- include older-posts.html -->
3
+ {%- if jekyll.environment != 'production' and site.data.setup.fast-content-build -%}{%- else -%}
4
+ {%- comment -%}<!--
2
5
 
3
6
  Usage:
4
7
 
5
8
  Translations can be configure in the _data/text-for.yml file for the items `tOlderPosts` and `tMonths`.
6
9
 
7
- {% endcomment %}
10
+ -->{%- endcomment %}
8
11
  <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' %}
12
+ {%- assign olderPosts = 'Older Posts' -%}
13
+ {%- if site.data.text-for.tOlderPosts -%}{%- assign olderPosts = site.data.text-for.tOlderPosts -%}{%- endif -%}
14
+ {%- assign currentYear = "" -%}
15
+ {%- assign currentMonth = "" -%}
16
+ {%- assign yearDetails = false -%}
17
+ {%- assign monthDetails = false %}
15
18
  <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 %}
19
+ {%- for post in site.posts -%}
20
+ {%- assign postYear = post.date | date: "%Y" -%}
21
+ {%- assign postMonth = post.date | date: "%m" -%}
22
+ {%- if postYear != currentYear -%}
23
+ {%- assign currentYear = postYear -%}
24
+ {%- if monthDetails %}
25
+ </details>
26
+ {%- assign monthDetails == false -%}
27
+ {%- endif -%}
28
+ {%- if yearDetails %}
29
+ </details>
30
+ {%- assign yearDetails == false -%}
31
+ {%- endif %}
32
+ <details class="year-details">
33
+ <summary>{{ currentYear }}</summary>
34
+ {%- assign yearDetails = true -%}
35
+ {%- endif -%}
36
+ {%- if postMonth != currentMonth -%}
37
+ {%- if postMonth == '01' -%}{%- assign monthString = site.data.text-for.tMonths[1] -%}
38
+ {%- elsif postMonth == '02' -%}{%- assign monthString = site.data.text-for.tMonths[2] -%}
39
+ {%- elsif postMonth == '03' -%}{%- assign monthString = site.data.text-for.tMonths[3] -%}
40
+ {%- elsif postMonth == '04' -%}{%- assign monthString = site.data.text-for.tMonths[4] -%}
41
+ {%- elsif postMonth == '05' -%}{%- assign monthString = site.data.text-for.tMonths[5] -%}
42
+ {%- elsif postMonth == '06' -%}{%- assign monthString = site.data.text-for.tMonths[6] -%}
43
+ {%- elsif postMonth == '07' -%}{%- assign monthString = site.data.text-for.tMonths[7] -%}
44
+ {%- elsif postMonth == '08' -%}{%- assign monthString = site.data.text-for.tMonths[8] -%}
45
+ {%- elsif postMonth == '09' -%}{%- assign monthString = site.data.text-for.tMonths[9] -%}
46
+ {%- elsif postMonth == '10' -%}{%- assign monthString = site.data.text-for.tMonths[10] -%}
47
+ {%- elsif postMonth == '11' -%}{%- assign monthString = site.data.text-for.tMonths[11] -%}
48
+ {%- elsif postMonth == '12' -%}{%- assign monthString = site.data.text-for.tMonths[12] -%}
49
+ {%- endif -%}
50
+ {%- assign currentMonth = postMonth -%}
51
+ {%- if monthDetails %}
52
+ </details>
53
+ {%- assign monthDetails == false -%}
54
+ {%- endif %}
55
+ <details class="month-details">
56
+ <summary>{{ monthString }}</summary>
57
+ {%- assign monthDetails = true -%}
58
+ {%- endif %}
59
+ <a href="{{ post.url | relative_url }}"><p>{{ post.title }}</p></a>
60
+ {%- endfor -%}
61
+ {%- if monthDetails %}
62
+ </details>
63
+ {%- assign monthDetails == false -%}
64
+ {%- endif %}
65
+ {%- if yearDetails %}
66
+ </details>
67
+ {%- assign yearDetails == false -%}
68
+ {%- endif %}
49
69
  </div>
50
-
70
+ {%- endif %}
71
+ <!-- end of include older-posts.html -->