harms-columns-front-page 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3dc4e6b63484ad051332950588ecd2e79bb58561
4
- data.tar.gz: 6dd5d8bfa874cfbb51ab8e192e032e256f455e7c
3
+ metadata.gz: eb54a65b9580490d09900992d8fbf0346b09b2be
4
+ data.tar.gz: 393a296e9b6088262ae2a4832438a557b5da08db
5
5
  SHA512:
6
- metadata.gz: 29a4c17f07ecd32cfa8f138ec63040bad35e3cc0a8b15716ed517ecc295f0f1742f2b19ba44bcd82ee17d902a52e388bcd310be879829a24499438ab05cec72e
7
- data.tar.gz: b207fb2c5bf9031a2808661f77a5b20857680227faea1c4983a5ec8ca7306b99b6a89946938b94b23f3a9ee4091d3b4ed5e65809ca669264a9e5745bff957a5a
6
+ metadata.gz: 55dbdd8fdac87c412bc7bc0a404ccb618a1b1a6442e787cde6406d9dbe0224e969edfccc08dd644417483c9b605e26af7181e750b89df169d03700ea3de089f6
7
+ data.tar.gz: ab165388fdfa9982dbfe8199df87ec8a1fafeea73ae320693a4f5e92571982c66a2914bd551f560ee8a27a47ba9195590b6b94f3f0fefcccc72361b91f90ffb1
data/README.md CHANGED
@@ -1,70 +1,139 @@
1
- # harms-columns-front-page
1
+ # harms-columns-front-page [![Gem Version](https://badge.fury.io/rb/harms-columns-front-page.svg)](https://badge.fury.io/rb/harms-columns-front-page)
2
2
 
3
3
  This Jekyll theme was developed as part of a bachelor thesis.
4
4
 
5
- Jekyll is a static site generator based on ruby.
5
+ Jekyll is a static site generator based on ruby. For more information visit <https://jekyllrb.com/>.
6
+
7
+ <br>
6
8
 
7
9
  ## How to install Jekyll
10
+
11
+ <br>
12
+
8
13
  ### On Windows
9
- Step 1: Download the latest ruby installer from <https://rubyinstaller.org/> and install ruby.
14
+ This guide is based on [this article](https://davidburela.wordpress.com/2015/11/28/easily-install-jekyll-on-windows-with-3-command-prompt-entries-and-chocolatey/) by David Burela.
15
+
16
+
17
+ **Step 1:** Install the chocolatey package manager by following [these instructions](https://chocolatey.org/install) on their site.
18
+
19
+ **Step 2:** Install Ruby by running the following command in the command prompt:
20
+
21
+ choco install ruby -y
22
+
23
+ Make sure you install all 3 MSYS2 components when a new command prompt window opens with the Ruby Installer.
24
+
25
+ **Step 3:** Install Bundler by running:
26
+
27
+ gem install bundler
28
+
29
+ **Step 4:** And finally you can install Jekyll by running:
30
+
31
+ gem install jekyll
32
+
33
+ And now you're ready to go with Jekyll!
10
34
 
11
- Step 2: Open your terminal and execute the following commands:
35
+ <br>
12
36
 
13
- First install Jekyll by running:
37
+ ### On Linux
38
+
39
+ This guide is based on Step 1 of [this tutorial](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-jekyll-development-site-on-ubuntu-16-04) by Melissa Anderson. I have not yet tested it myself.
40
+
41
+ **Step 1:** Update your package list by running the following command in the terminal:
42
+
43
+ sudo apt-get update
44
+
45
+ **Step 2:** Install Ruby, make and gcc by running:
46
+
47
+ sudo apt-get install ruby ruby-dev make gcc
48
+
49
+ **Step 3:** Install Jekyll and Bundler by running:
50
+
51
+ sudo gem install jekyll bundler
52
+
53
+ And now you're ready to go with Jekyll!
54
+
55
+ <br>
56
+
57
+ ### On Mac
58
+ If you're using a Mac, then Ruby should already be installed on your machine.
59
+
60
+ **Step 1:** Run the following command to install Jekyll and Bundler:
14
61
 
15
62
  gem install jekyll bundler
16
63
 
17
- Then make a new Jekyll project by running:
64
+ And that's it, you're ready to go with Jekyll!
65
+
66
+ <br>
67
+
68
+ ## How to create a Jekyll site
18
69
 
19
- jekyll new your-project-name
70
+ **Step 1:** Run the following command in the command prompt to create a new Jekyll project:
20
71
 
21
- Then enter the project directory by running:
72
+ jekyll new project-name
22
73
 
23
- cd your-project-name
74
+ **Step 2:** Enter the project directory by running:
24
75
 
25
- You can test your jekyll site by running:
76
+ cd project-name
77
+
78
+ **Step 3:** Run the following command to build your Jekyll site and preview it locally under <http://localhost:4000>.
26
79
 
27
80
  bundle exec jekyll serve
28
81
 
29
- Now you can head over to <http://localhost:4000> in your browser and view your jekyll site.
82
+ The files for your website are located in the `_site` folder inside of your project folder.
83
+
84
+ <br>
30
85
 
31
86
  ## How to install the theme
32
87
 
33
- Step 1: Add this line to the bottom of your Jekyll site's `Gemfile`:
88
+ **Step 1:** Add this line to the bottom of your Jekyll site's `Gemfile`:
34
89
 
35
90
  ```ruby
36
91
  gem "harms-columns-front-page"
37
92
  ```
38
- Step 2: Install the theme by running this in the terminal:
93
+ **Step 2:** Install the theme by running this in the terminal:
39
94
 
40
95
  bundle
41
96
 
42
- Step 3: Add this lines to the bottom of your Jekyll site's `_config.yml`:
97
+ **Step 3:** In your Jekyll site's `_config.yml`, find the line that starts with `theme:` and replace it with this line:
43
98
 
44
99
  ```yaml
45
100
  theme: harms-columns-front-page
101
+ ```
102
+
103
+ **Step 4:** Then find the section that starts with `gem:` and add the following entries to the list:
104
+
105
+ ```yaml
46
106
  gems:
47
- - jekyll-lunr-js-search
107
+ - jekyll-autoprefixer
108
+ - jekyll-minifier
48
109
  ```
49
110
 
50
- Step 4: And then run the following command in the terminal:
111
+ **Step 5:** Run the following command in the terminal:
51
112
 
52
113
  bundle exec jekyll serve
53
114
 
54
115
  Now you can head over to <http://localhost:4000> in your browser and view the new theme on your jekyll site.
55
116
 
117
+ <br>
118
+
56
119
  ## Updating
57
120
 
58
121
  If you've already installed this theme for your Jekyll site, you can update it by running the following command in the terminal:
59
122
 
60
123
  bundle update
61
124
 
125
+ <br>
126
+
62
127
  ## Usage
63
128
 
129
+ <br>
130
+
64
131
  ### Global options
65
132
  The following options are available to use in your Jekyll site's `_config.yml`.
66
133
 
67
- **Site Title**
134
+ <br>
135
+
136
+ #### _Site Title_
68
137
 
69
138
  Appears in the header and as the title of your browser window.
70
139
 
@@ -72,7 +141,9 @@ Appears in the header and as the title of your browser window.
72
141
  title: Your title here
73
142
  ```
74
143
 
75
- **Site Description**
144
+ <br>
145
+
146
+ #### _Site Description_
76
147
 
77
148
  This is the meta description of your site.
78
149
 
@@ -80,15 +151,79 @@ This is the meta description of your site.
80
151
  description: Your site description here.
81
152
  ```
82
153
 
83
- **Profile Image**
154
+ <br>
155
+
156
+ #### _Profile/Logo Image_
84
157
 
85
- This image will appear as a little profile image in your header.
158
+ This image will appear as a little profile or logo image in your header.
86
159
 
87
160
  ```yaml
88
161
  profile-image: path/to/your/image/here.jpg
89
162
  ```
90
163
 
91
- **Favicon**
164
+ <br>
165
+
166
+ #### _Site Language_
167
+
168
+ Sets the language attribute of the html element of your site. This is important for search engines and browsers.
169
+
170
+ ```yaml
171
+ lang: en
172
+ ```
173
+
174
+ <br>
175
+
176
+ #### _Color of the header_
177
+
178
+ You can customize the background color of the header. The color code can be provided as rgb, rgba or hex. When using hex, please make sure to wrap the color code in single quotes like this:
179
+
180
+ ```yaml
181
+ header-color: '#2FEB8D'
182
+ ```
183
+
184
+ <br>
185
+
186
+ #### _Color of the front page columns_
187
+
188
+ You can customize the background color of the columns on the front page. The color code can be provided as rgb, rgba or hex. When using hex, please make sure to wrap the color code in single quotes like this:
189
+
190
+ ```yaml
191
+ columns-color: '#FFFFFF'
192
+ ```
193
+
194
+ <br>
195
+
196
+ #### _Color of the site's h1_
197
+
198
+ You can customize the color of the site's h1 heading. The color code can be provided as rgb, rgba or hex. When using hex, please make sure to wrap the color code in single quotes like this:
199
+
200
+ ```yaml
201
+ h1-color: '#282828'
202
+ ```
203
+
204
+ <br>
205
+
206
+ #### _Color of the site's h2_
207
+
208
+ You can customize the color of the site's h2 heading. The color code can be provided as rgb, rgba or hex. When using hex, please make sure to wrap the color code in single quotes like this:
209
+
210
+ ```yaml
211
+ h2-color: '#2FEB8D'
212
+ ```
213
+
214
+ <br>
215
+
216
+ #### _Color of the site's links and buttons_
217
+
218
+ You can customize the color of the site's links and buttons. The color code can be provided as rgb, rgba or hex. When using hex, please make sure to wrap the color code in single quotes like this:
219
+
220
+ ```yaml
221
+ link-color: '#12ADFF'
222
+ ```
223
+
224
+ <br>
225
+
226
+ #### _Favicon_
92
227
 
93
228
  The favicon will appear as the icon alongside the title of your site in the browser window. Please use a png-file.
94
229
 
@@ -96,7 +231,9 @@ The favicon will appear as the icon alongside the title of your site in the brow
96
231
  favicon: path/to/your/favicon/here.png
97
232
  ```
98
233
 
99
- **Subtitle**
234
+ <br>
235
+
236
+ #### _Subtitle_
100
237
 
101
238
  The subtitle will appear in your header under the site title.
102
239
 
@@ -104,18 +241,11 @@ The subtitle will appear in your header under the site title.
104
241
  subtitle: Your subtitle here
105
242
  ```
106
243
 
107
- **Social Links**
244
+ <br>
108
245
 
109
- The links to your social profiles will appear in the footer of your site. You have to specify a title and the link url like so:
246
+ #### _Social Links_
110
247
 
111
- ```yaml
112
- social:
113
- - title: Link 1
114
- url: http://www.your-first-link-here.com
115
- - title: Link 2
116
- url: http://www.your-second-link-here.com
117
- ```
118
- Optionally you can specify the path to an icon that should be used for the link instead of the title.
248
+ The links to your social profiles will appear in the footer of your site. You have to specify a title and the link url. Optionally you can specify the path to an icon that should be used for the link instead of the title.:
119
249
 
120
250
  ```yaml
121
251
  social:
@@ -127,16 +257,22 @@ social:
127
257
  icon: path/to/social/icon/1.jpg
128
258
  ```
129
259
 
130
- **Footer Copyright Text**
260
+ <br>
261
+
262
+ #### _Footer Copyright Text_
131
263
 
132
264
  You can add your name to the copyright section in the footer.
133
265
 
134
266
  ```yaml
135
267
  footer-copyright: Year and name here
136
268
  ```
137
- **Home columns**
269
+
270
+ <br>
271
+
272
+ #### _Home columns_
138
273
 
139
274
  Here you can add content for the column section on the home page. You have to specify a heading and the content. The button url is optional: if it is not set, there will be no button for that column on your site.
275
+
140
276
  ```yaml
141
277
  home-columns:
142
278
  - heading: Your heading 1 here
@@ -152,32 +288,245 @@ home-columns:
152
288
  button-url: http://www.your-link-3-here.com
153
289
  ```
154
290
 
155
- ### Page and posts options
291
+ <br>
292
+
293
+ ### Page options
294
+
295
+ The following options are available to use in each of your Jekyll site's pages front matter.
156
296
 
157
- The following options are available to use in each of your Jekyll pages or posts front matter.
297
+ <br>
158
298
 
159
- **Layout**
299
+ #### _Accordion for saving space_
160
300
 
161
- You can specify a layout for a page/post like this:
301
+ If you're having a page that contains large amounts of contents, you can save space by displaying them as an accordion. The sections of the accordion can be opened and closed. No configuration in the front matter is needed. Simply use this syntax in your page's markdown:
302
+
303
+ ```markdown
304
+ <div id="accordion" markdown="block">
305
+
306
+ ### Section 1 heading
307
+ <div markdown="block">
308
+ Section 1 content
309
+ </div>
310
+
311
+ ### Section 2 heading
312
+ <div markdown="block">
313
+ Section 2 content
314
+ </div>
315
+
316
+ ### Section 3 heading
317
+ <div markdown="block">
318
+ Section 3 content
319
+ </div>
320
+
321
+ </div>
322
+ ```
323
+
324
+ <br>
325
+
326
+ #### _Layout_
327
+
328
+ You can specify a layout for a page like this:
162
329
 
163
330
  ```yaml
164
331
  layout: layout-name-here
165
332
  ```
166
333
 
167
334
  The available layouts are:
168
- * `home`: Default layout for the home page
169
- * `page`: Default layout for subpages
170
- * `post`: Default layout for posts
335
+ * `home` - for the front page
336
+ * `page` - for pages
337
+ * `post` - for posts
171
338
 
172
- **Title**
339
+ <br>
173
340
 
174
- This specifies the title of your page/post, which will appear on top of the page/post (except for the home page) and in the title of your browser window behind your site title.
341
+ #### _Featured image_
342
+
343
+ You can specify a path to a featured image for a page. It will then be used instead of the default header.
175
344
 
176
345
  ```yaml
177
- title: Your page/post title here
346
+ featured-image: /assets/img/your-image.jpg
178
347
  ```
179
348
 
180
- TODO: Write further options for the posts and pages.
349
+ <br>
350
+
351
+ #### _Title_
352
+
353
+ This specifies the title of your page, which will appear on top of the page (except for the front page) and in the title of your browser window behind your site title.
354
+
355
+ ```yaml
356
+ title: Your page title here
357
+ ```
358
+
359
+ <br>
360
+
361
+ #### _Permalink_
362
+
363
+ This specifies the permalink of your page and therefore the url your page will be avaialable at (www.your-site-name.com/your-page-permalink-here)
364
+
365
+ ```yaml
366
+ permalink: /your-page-permalink-here/
367
+ ```
368
+
369
+ <br>
370
+
371
+ #### _Display the page in the navigation menu_
372
+
373
+ With this variable you can specify if this page should appear in one of the navigation menus. If you don't specify this variable, the page won't be accessible over any navigation menu. To place a page in the main navigation located on top of the screen, use this line:
374
+
375
+ ```yaml
376
+ nav: main
377
+ ```
378
+
379
+ To place a page in the navigation links down in the footer, use this line:
380
+
381
+ ```yaml
382
+ nav: footer
383
+ ```
384
+
385
+ <br>
386
+
387
+ #### _Order of the navigation menus_
388
+
389
+ If you want to have your pages in a navigation menu in a specific order you can archieve this by assigning positions to every one of them.
390
+
391
+ ```yaml
392
+ nav-position: 1
393
+ ```
394
+
395
+ <br>
396
+
397
+ #### _Show post list on a page_
398
+
399
+ If you want to display a list of posts beneath the main content of a page, you can do this by setting a variable with the category of posts you want to show. If the variable is not set, the page will not have blog posts on it.
400
+
401
+ ```yaml
402
+ show-category: News
403
+ ```
404
+
405
+ Simultaneously you can specify a maximum number of posts to display. When this variable is not set, all posts of the category are displayed.
406
+
407
+ ```yaml
408
+ post-limit: 3
409
+ ```
410
+
411
+ <br>
412
+
413
+ #### _Filter posts by tag_
414
+
415
+ If you're displaying a post list on a page and you want to give your site's visitors the ability to filter that list by different tags, you can do this by setting this variable. A list of buttons with the different tags to choose from will appear:
416
+
417
+ ```yaml
418
+ tag-filter: true
419
+ ```
420
+
421
+ Simultaneously you should specify the text that should be used for the button that shows all posts again after filtering, like so:
422
+
423
+ ```yaml
424
+ show-all-filter-label: Show all posts
425
+ ```
426
+
427
+ <br>
428
+
429
+ ### Post options
430
+
431
+ <br>
432
+
433
+ #### _Accordion for saving space_
434
+
435
+ If you're having a post that contains large amounts of contents, you can save space by displaying them as an accordion. The sections of the accordion can be opened and closed. No configuration in the front matter is needed. Simply use this syntax in your post's markdown:
436
+
437
+ ```markdown
438
+ <div id="accordion" markdown="block">
439
+
440
+ ### Section 1 heading
441
+ <div markdown="block">
442
+ Section 1 content
443
+ </div>
444
+
445
+ ### Section 2 heading
446
+ <div markdown="block">
447
+ Section 2 content
448
+ </div>
449
+
450
+ ### Section 3 heading
451
+ <div markdown="block">
452
+ Section 3 content
453
+ </div>
454
+
455
+ </div>
456
+ ```
457
+
458
+ <br>
459
+
460
+ #### _Featured image_
461
+
462
+ You can specify a path to a featured image for a post. It will then be used instead of the default header and as a preview image in lists in which the post appears.
463
+
464
+ ```yaml
465
+ featured-image: /assets/img/your-image.jpg
466
+ ```
467
+
468
+ <br>
469
+
470
+ #### _Layout_
471
+
472
+ You can specify a layout for a post like this:
473
+
474
+ ```yaml
475
+ layout: layout-name-here
476
+ ```
477
+
478
+ The available layouts are:
479
+ * `home` - for the front page
480
+ * `page` - for pages
481
+ * `post` - for posts
482
+
483
+ <br>
484
+
485
+ #### _Title_
486
+
487
+ This specifies the title of your post, which will appear on top of the page (except for the front page) and in the title of your browser window behind your site title. Also it appears as the post title in post listings.
488
+
489
+ ```yaml
490
+ title: Your post title here
491
+ ```
492
+
493
+ <br>
494
+
495
+ #### _Publishing date_
496
+
497
+ If a publishing date is set for your post, it will be displayed alongside the content.
498
+
499
+ ```yaml
500
+ publishing-date: 27.10.2016
501
+ ```
502
+
503
+ <br>
504
+
505
+ #### _Category_
506
+
507
+ You can specify a category to which a post belongs. You can then display all posts of a blog-category on a page for example.
508
+
509
+ ```yaml
510
+ category: Events
511
+ ```
512
+
513
+ <br>
514
+
515
+ #### _Tags_
516
+
517
+ You can specify tags for posts as something like subcategories. They can be used to filter posts of the same category in a post list.
518
+
519
+ ```yaml
520
+ tags: Tournament
521
+ ```
522
+
523
+ One post can have multiple tags. Please specify them as a list like so:
524
+
525
+ ```yaml
526
+ tags:
527
+ - Tournament
528
+ - Football
529
+ ```
181
530
 
182
531
  <!-- ## Contributing
183
532
 
@@ -191,6 +540,8 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
191
540
 
192
541
  When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released. -->
193
542
 
543
+ <br>
544
+
194
545
  ## License
195
546
 
196
547
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).