beautiful-jekyll-theme 1.1.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/404.html +13 -0
  3. data/{LICENSE.txt → LICENSE} +6 -6
  4. data/README.md +185 -210
  5. data/_data/ui-text.yml +494 -0
  6. data/_includes/comments.html +6 -0
  7. data/_includes/disqus.html +18 -16
  8. data/_includes/ext-css.html +7 -0
  9. data/_includes/ext-js.html +7 -0
  10. data/_includes/fb-comment.html +16 -0
  11. data/_includes/footer-minimal.html +13 -14
  12. data/_includes/footer-scripts.html +16 -18
  13. data/_includes/footer.html +30 -170
  14. data/_includes/google_analytics.html +13 -11
  15. data/_includes/gtag.html +10 -0
  16. data/_includes/gtm_body.html +5 -0
  17. data/_includes/gtm_head.html +11 -0
  18. data/_includes/head.html +77 -45
  19. data/_includes/header.html +47 -39
  20. data/_includes/matomo.html +17 -0
  21. data/_includes/nav.html +38 -51
  22. data/_includes/readtime.html +16 -0
  23. data/_includes/social-networks-links.html +267 -0
  24. data/_includes/social-share.html +32 -24
  25. data/_includes/staticman-comment.html +22 -0
  26. data/_includes/staticman-comments.html +83 -0
  27. data/_includes/utterances-comment.html +13 -0
  28. data/_layouts/base.html +16 -9
  29. data/_layouts/default.html +2 -2
  30. data/_layouts/home.html +88 -0
  31. data/_layouts/minimal.html +14 -8
  32. data/_layouts/page.html +3 -7
  33. data/_layouts/post.html +40 -16
  34. data/assets/css/main-minimal.css +2 -2
  35. data/assets/css/main.css +531 -250
  36. data/assets/css/pygment_highlights.css +0 -5
  37. data/assets/css/staticman.css +180 -0
  38. data/assets/img/404-southpark.jpg +0 -0
  39. data/assets/img/avatar-icon.png +0 -0
  40. data/assets/img/bgimage.png +0 -0
  41. data/assets/img/hello_world.jpeg +0 -0
  42. data/assets/img/install-steps.gif +0 -0
  43. data/assets/img/path.jpg +0 -0
  44. data/assets/img/thumb.png +0 -0
  45. data/assets/js/main.js +64 -103
  46. data/assets/js/staticman.js +54 -0
  47. data/{assets/feed.xml → feed.xml} +8 -4
  48. data/tags.html +36 -0
  49. metadata +57 -28
  50. data/_includes/navbarlink.html +0 -16
  51. data/_layouts/tag_index.html +0 -41
  52. data/assets/css/bootstrap-theme.css +0 -476
  53. data/assets/css/bootstrap-theme.css.map +0 -1
  54. data/assets/css/bootstrap-theme.min.css +0 -5
  55. data/assets/css/bootstrap.css +0 -6566
  56. data/assets/css/bootstrap.css.map +0 -1
  57. data/assets/css/bootstrap.min.css +0 -5
  58. data/assets/css/normalize.css +0 -427
  59. data/assets/js/bootstrap.js +0 -2306
  60. data/assets/js/bootstrap.min.js +0 -7
  61. data/assets/js/jquery-1.11.2.min.js +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e22e6b8c219c66cefeb5751135e880dd609e4aa6
4
- data.tar.gz: 7fc061f987ac6d190f4f99c15f8bae0ecbbb6611
2
+ SHA256:
3
+ metadata.gz: 1e57ead3f6675c8b935b412b81df1194a5c775e2ab1b87aca545515bb33737d8
4
+ data.tar.gz: 7c4e5d9e80552d4136bd60760f9dfee7618a9aa3d091d35be01e170bfebbe91b
5
5
  SHA512:
6
- metadata.gz: 8b24f20b66910fd259a6e99f4798e93ca8a2ab2c078aa8a43185fb1c80aff99ac265e5ede084ce86d4751d23fb3f84d3be7d52975385a500a0d59fa061da1c70
7
- data.tar.gz: b4707c42db0ba8e729827909ca04bc4829b9bc3ac7a4beefca5c3a3519e1819ca9271bc0df44c68e0a1a315392caa26cecf98f60d4c360adf732f92f5ef0f470
6
+ metadata.gz: 95c65a7c68d2240bb29156486497f06f12f7fb76df1eddf378cbc040b68a1e79009a3066035b11b4a2dd97a05efcc5fdbf2088cc1f5f6aa2fd30c9610b86e411
7
+ data.tar.gz: ba0797eef1325be2a89ffa352aa8780c35f7c7bff267cbd23c587262833b2f40f8f988491da4838de607799a6f58768c52910848ef87b0fc79617102c824bba1
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ title: 404 - Page not found
4
+ permalink: /404.html
5
+ ---
6
+
7
+ <div class="text-center">
8
+ <h1>Whoops, this page doesn't exist.</h1>
9
+ <h1>Move along. (404 error)</h1>
10
+ <br/>
11
+
12
+ <img src="{{ 'assets/img/404-southpark.jpg' | relative_url }}" />
13
+ </div>
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
- Copyright (c) 2016 Dean Attali
3
+ Copyright (c) 2020 Dean Attali
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
9
  copies of the Software, and to permit persons to whom the Software is
10
10
  furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,284 +1,259 @@
1
- # Beautiful-Jekyll Theme (beautiful-jekyll-theme gem)
1
+ # Beautiful Jekyll
2
2
 
3
- [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/daattali/20)
3
+ [![Beautiful Jekyll CI](https://github.com/daattali/beautiful-jekyll/workflows/Beautiful%20Jekyll%20CI/badge.svg)](https://github.com/daattali/beautiful-jekyll/actions?query=branch%3Amaster+event%3Apush+workflow%3A%22Beautiful+Jekyll+CI%22)
4
4
  [![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme)
5
5
 
6
- > *Copyright 2016 [Dean Attali](http://deanattali.com)*
6
+ > *Copyright 2020 [Dean Attali](https://deanattali.com)*
7
7
 
8
- **Beautiful-Jekyll** is a ready-to-use Jekyll theme to help you create an awesome website quickly. Perfect for personal blogs or simple project websites, with a focus on responsive and clean design. You can look at [my personal website](http://deanattali.com) to see it in use, or see examples of websites other people created using this theme [here](https://github.com/daattali/beautiful-jekyll#showcased-users-success-stories).
8
+ **Beautiful Jekyll** is a ready-to-use template to help you create a beautiful website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](https://beautifuljekyll.com) of what you'll get after just two minutes. You can also look at [my personal website](https://deanattali.com) to see it in use, or see examples of websites other people created using this theme [below](#showcased-users-success-stories).
9
9
 
10
- **This theme was developed for non-commerical purposes. For commerical usage, or if you enjoy this theme, please consider [supporting me](https://www.paypal.me/daattali/20) for the development and continuous maintenance of this template.**
10
+ **If you enjoy this theme, please consider [sponsoring me](https://github.com/sponsors/daattali) for developing and maintaining it for over 5 years.**
11
11
 
12
12
  <p align="center">
13
- <a href="https://www.paypal.me/daattali">
14
- <img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" />
13
+ <a style="display: inline-block;" href="https://github.com/sponsors/daattali">
14
+ <img height="40" src="https://i.imgur.com/034B8vq.png" />
15
+ </a>
16
+ &nbsp;&nbsp;
17
+ <a style="display: inline-block;" href="https://paypal.me/daattali">
18
+ <img height="40" src="https://camo.githubusercontent.com/0e9e5cac101f7093336b4589c380ab5dcfdcbab0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74776f6c66736f6e2f70617970616c2d6769746875622d627574746f6e40312e302e302f646973742f627574746f6e2e737667" />
15
19
  </a>
16
20
  </p>
17
21
 
18
- ![Screenshot](./screenshot.png)
22
+ ## Table of contents
19
23
 
20
- ## Prerequisites
24
+ - [Features](#features)
25
+ - [**Build your website in 3 steps**](#build-your-website-in-3-steps)
26
+ - [Add your own content](#add-your-own-content)
27
+ - [Customizing parameters for each page](#customizing-parameters-for-each-page)
28
+ - [Supported parameters](#supported-parameters)
29
+ - [Showcased users (success stories!)](#showcased-users-success-stories)
30
+ - [FAQ and support](#faq-and-support)
31
+ - [Credits and contributions](#credits)
21
32
 
22
- To use this theme's gem, you need to first have a functioning Jekyll website. If you don't, there are many resources online for how to set up a Jekyll site. Here are the basic commands to get a minimal Jekyll site set up in Ubuntu:
33
+ # Features
23
34
 
24
- ```
25
- $ sudo apt-get update
26
- $ sudo apt-get install ruby ruby-dev make gcc
27
- $ sudo gem install jekyll bundler
28
- $ jekyll new ~/mysite
29
- ```
35
+ - **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes.
36
+ - **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit.
37
+ - **Mobile-first**: Designed to look great on both large-screen and small-screen (mobile) devices.
38
+ - **Highly customizable**: Many personalization settings such as changing the background colour/image, adding a logo.
39
+ - **Flexible usage**: Use Beautiful Jekyll directly on GitHub or using a Ruby gem - choose the best [development method](#build-your-website-in-3-steps) for you.
40
+ - **Battle-tested**: By using Beautiful Jekyll, you'll be joining tens of thousands of users who used this theme since 2015.
41
+ - **Links to your social media**: You can easily add links to any of your social media accounts in the footer of every page.
42
+ - **Comments support**: Add comments to any page using either [Disqus](https://disqus.com/), [Facebook comments](https://developers.facebook.com/docs/plugins/comments), [Utterances](https://utteranc.es/), or [Staticman](https://staticman.net).
43
+ - **Share blog posts on social media**: By default, all blog posts have buttons to allow people to share on Twitter/Facebook/LinkedIn.
44
+ - **Tags**: Any blog post can be tagged with keywords, and an index page showing all the tags is automatically generated.
45
+ - **Tracking analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website.
46
+ - **Photos support**: Any page can have a cover photo around its title, and any blog post can have an associated image.
47
+ - **More advanced features**: I wrote [a blog post](https://deanattali.com/2015/03/12/beautiful-jekyll-how-to-build-a-site-in-minutes/) describing some more advanced features that I used in my website that can be used in any beautiful-jekyll site.
30
48
 
31
- ## Installation
49
+ # Build your website in 3 steps
32
50
 
33
- To use the Beautiful-Jekyll theme, add this line to your Jekyll site's `Gemfile`:
51
+ There's a very easy way to use this theme, and there's a hard way. For most people (including myself!), I suggest going the easy route. If you're an advanced user and want to tinker with the hard way (using ruby gems), then [skip the easy way](https://github.com/daattali/beautiful-jekyll#the-hard-way-using-ruby-gems) if you know what you're doing.
34
52
 
35
- ```ruby
36
- gem "beautiful-jekyll-theme"
37
- ```
53
+ ## The easy way (recommended!)
38
54
 
39
- Then add this line to your Jekyll site's `_config.yml`:
55
+ Getting started is *literally* as easy as 1-2-3 :smile:
40
56
 
41
- ```yaml
42
- theme: beautiful-jekyll-theme
43
- ```
57
+ Scroll down to see the steps involved, but here is a 40-second video just as a reference as you work through the steps. If you don't already have a [GitHub account](https://github.com/join), you'll need to sign up.
44
58
 
45
- And finally execute:
59
+ ![Installation steps](assets/img/install-steps.gif)
46
60
 
47
- ```
48
- $ bundle
49
- ```
61
+ ### 1. Fork this project
50
62
 
51
- To preview your site, run `bundle exec jekyll serve` (optionally with the `--host 0.0.0.0` flag if needed) and open your browser at `http://localhost:4000`.
63
+ Fork this project by clicking the __*Fork*__ button at the top right corner of this page. Forking means that you now copied this entire project and all the files into your account.
52
64
 
53
- ## Usage
65
+ ### 2. Rename the project to `<yourusername>.github.io`
54
66
 
55
- Using Beautiful-Jekyll is very simple, but you should take a few minutes to read through the features it supports to learn how to use it.
67
+ Click on __*Settings*__ at the top (the cog icon) and on that page you'll have an option to rename the project (*repository name*). This will create a website with the **Beautiful Jekyll** template that will be available at `https://<yourusername>.github.io` within a couple minutes. Check out the [FAQ](#faq-and-support) if you want to use a different project name.
56
68
 
57
- ### Adding content
69
+ ### 3. Customize your website settings
58
70
 
59
- You can now start adding pages to your site. Beautiful-Jekyll supports three layouts: `post`, `page`, and `minimal`. In order to use Beautiful-Jekyll's template, a page must have its `layout` parameter set to one of these options in the YAML.
71
+ Edit the `_config.yml` file to change any settings you want. To edit the file, click on it to view the file and then click on the pencil icon to edit it (watch the video tutorial above if you're confused). The settings in the file are self-explanatory and I added comments inside the file to help you understand what each setting does. Any line that begins with a hashtag (`#`) is a comment, and the other lines are actual settings.
60
72
 
61
- Any blog posts (pages under the `_posts` directory) should use the `post` layout, while most other pages should use the `page` layout. You can use the `minimal` layout if you want a page with minimal styling, without the bulky navigation bar and footer.
73
+ ### 4. Congratulations! You have a website!
62
74
 
63
- Instead of remembering to manually add the layout parameter to every page's YAML, I recommend you add the following lines to your `_config.yml` so that all blog posts will automatically have layout `post` and all other pages will have layout `page`:
75
+ After you save your changes to the config file (by clicking on *Commit changes* as the video tutorial shows), your website should be ready in a minute or two at `https://<yourusername>.github.io`. Every time you make a change to any file, your website will get rebuilt and should be updated in about a minute or so. Your website will be initialized with several sample blog posts and a couple other pages.
64
76
 
65
- ```yaml
66
- defaults:
67
- -
68
- scope:
69
- path: ""
70
- type: "posts"
71
- values:
72
- layout: "post"
73
- -
74
- scope:
75
- path: ""
76
- values:
77
- layout: "page"
78
- ```
77
+ Note that in the video above I only edited one setting in the `_config.yml` file. **You should actually go through the rest of the settings as well. Don't be lazy, go through all the settings :)**
78
+
79
+ ## The hard way (using ruby gems)
80
+
81
+ If you followed the easy method above, then you already have your site and you can skip this section! If you want to install beautiful-jekyll using ruby gems instead, follow the [advanced installation instructions](https://beautifuljekyll.com/getstarted/#install-steps-hard).
82
+
83
+
84
+ # Add your own content
85
+
86
+ To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file. It's much easier to write markdown than HTML, so I suggest you do that ([here's a great tutorial](https://markdowntutorial.com/) if you need to learn markdown in 5 minutes). You can look at some files on this demo site to get an idea of how to write markdown.
79
87
 
80
- ### Adding an index page
88
+ To look at existing files, click on any file that ends in `.md`, for example [`aboutme.md`](./aboutme.md). On the next page you can see some nicely formatted text (there's a word in bold, a link, a few bullet points), and if you click on the pencil icon to edit the file, you'll see the markdown code that generated the pretty text. Very easy!
81
89
 
82
- Feel free to create the index page (homepage) of your site however you'd like. If you want to have an index page similar to the one at [deanattali.com](http://deanattali.com), then create `index.html` as follows:
90
+ In contrast, look at [`tags.html`](./tags.html). That's how your write HTML - not as pretty. So stick with markdown if you don't know HTML.
83
91
 
84
- ```html
92
+ Any markdown or HTML file that you create will be available on your website under `https://<yourusername>.github.io/<pagename>`. For example, if you create a file `about.md` (or `about.html`) then it'll exist at `https://<yourusername>.github.io/about`.
93
+
94
+ Files you create inside the [`_posts`](./_posts) directory will be treated as blog entries. You can look at the existing files there to get an idea of how to write blog posts. Note the format of the blog post files - they must follow the naming convention of `YEAR-MONTH-DAY-title.md`. After you successfully add your own post, you can delete the existing files inside [`_posts`](./_posts) to remove the sample posts, as those are just demo posts to help you learn.
95
+
96
+ # Customizing parameters for each page
97
+
98
+ **One last important thing**: In order to have your new pages use this template and not just be plain HTML pages, **you must add [YAML front matter](https://jekyllrb.com/docs/front-matter/) to the top of each page**. This is where you'll be able to give each page some extra parameters such as a title, a subtitle, or an image. [Below is a list of all available parameters](#supported-parameters). If you don't want to use any parameters on a page (this also means having no title), then use the empty YAML front matter:
99
+
100
+ ```
85
101
  ---
86
- layout: page
87
- title: My Website
88
- subtitle: Some short description of my site
89
102
  ---
90
-
91
- <div class="posts-list">
92
- {% for post in paginator.posts %}
93
- <article class="post-preview">
94
- <a href="{{ post.url }}">
95
- <h2 class="post-title">{{ post.title }}</h2>
96
- {% if post.subtitle %}
97
- <h3 class="post-subtitle">{{ post.subtitle }}</h3>
98
- {% endif %}
99
- </a>
100
-
101
- <p class="post-meta">
102
- Posted on {{ post.date | date: "%B %-d, %Y" }}
103
- </p>
104
-
105
- <div class="post-entry">
106
- {{ post.excerpt | strip_html | xml_escape | truncatewords: 50 }}
107
- {% assign excerpt_word_count = post.excerpt | number_of_words %}
108
- {% if post.content != post.excerpt or excerpt_word_count > 50 %}
109
- <a href="{{ post.url }}" class="post-read-more">[Read&nbsp;More]</a>
110
- {% endif %}
111
- </div>
112
-
113
- {% if post.tags.size > 0 %}
114
- <div class="blog-tags">
115
- Tags:
116
- {{ post.tags | join: ", " }}
117
- </div>
118
- {% endif %}
119
-
120
- </article>
121
- {% endfor %}
122
- </div>
123
-
124
- {% if paginator.total_pages > 1 %}
125
- <ul class="pager main-pager">
126
- {% if paginator.previous_page %}
127
- <li class="previous">
128
- <a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&larr; Newer Posts</a>
129
- </li>
130
- {% endif %}
131
- {% if paginator.next_page %}
132
- <li class="next">
133
- <a href="{{ paginator.next_page_path | replace: '//', '/' }}">Older Posts &rarr;</a>
134
- </li>
135
- {% endif %}
136
- </ul>
137
- {% endif %}
138
103
  ```
139
104
 
140
- You'll also need to add these lines to your `_config.yml` because the code above uses pagination:
105
+ If you do want to use any parameters, write them between these two lines. For example, you can have this at the top of a page:
141
106
 
142
- ```yaml
143
- paginate: 5
144
- gems:
145
- - jekyll-paginate
107
+ ```
108
+ ---
109
+ title: Contact me
110
+ subtitle: Here you'll find all the ways to get in touch with me
111
+ ---
146
112
  ```
147
113
 
148
- Make sure there is no `index.md` file (if there is one, then delete it).
114
+ You can look at the top of [`aboutme.md`](https://raw.githubusercontent.com/daattali/beautiful-jekyll/master/aboutme.md) as an example.
149
115
 
150
- ### Creating a navigation bar
116
+ **Important takeaway: ALWAYS add the YAML front matter, which is two lines with three dashes, to EVERY page. If you have any parameters, they go between the two lines.**
151
117
 
152
- Add these lines to your `_config.yml` file to get a demo navigation bar:
118
+ If you don't include YAML then your file will not use this template.
153
119
 
154
- ```yaml
155
- navbar-links:
156
- Home: ""
157
- About Me: "aboutme"
158
- Resources:
159
- - Beautiful Jekyll: "http://deanattali.com/beautiful-jekyll/"
160
- - Learn markdown: "http://www.markdowntutorial.com/"
161
- - GitHub Pages: "https://pages.github.com/"
162
- Author's home: "http://deanattali.com"
163
- ```
120
+ # Supported parameters
164
121
 
165
- Change these values to match the pages on your site. Each menu item is composed of a `key:value` pair, where the `key` is the text that shows up in the navigation bar, and `value` is the URL to link to. The URL can either be the name of a page on your site (eg. `""` will go to your homepage, `aboutme` will go to a page called `aboutme` on your site), or a URL to an external site beginning in `http`. If you want to define sub-menus, use the format that the `Resources` menu is using in the sample code above.
122
+ Below is a list of the parameters that **Beautiful Jekyll** supports (any of these can be added to the YAML front matter of any page). Remember to also look in the `_config.yml` file to see additional settings.
166
123
 
167
- #### Displaying an image in the navigation bar
124
+ ## Main paramaters
168
125
 
169
- You can add an image to the middle of the navigation bar by defining the `avatar` parameter in `_config.yml`. The image should be a square (width = height). This image will disappear once the user scrolls down in the page.
126
+ These are the basic YAML parameters that you are most likely to use on most pages.
170
127
 
171
- ```yaml
172
- avatar: "/path/to/image.png"
173
- ```
128
+ Parameter | Description
129
+ ----------- | -----------
130
+ title | Page or blog post title
131
+ subtitle | Short description of page or blog post that goes under the title
132
+ tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, analysis, finance]`
133
+ cover-img | Include a large full-width image at the top of the page. You can either provide the path to a single image (eg. `"/path/to/img"`) , or a list of images to cycle through (eg. `["/path/img1", "/path/img2"]`). If you want to add a caption to an image, then the image should be provided as `{"/path/to/img" : "Caption of image"}`.
134
+ comments | If you want do add comments to a specific page, use `comments: true`. Comments only work if you enable one of the comments providers (Facebook, disqus, staticman, utterances) in `_config.yml` file. Comments are automatically enabled on blog posts but not on other pages; to turn comments off for a specific post, use `comments: false`.
174
135
 
175
- You can also place an image in the top-left corner of the navigation bar instead of your website's title. This is done with the `title-img` parameter in `_config.yml`:
136
+ ## Less commonly used parameters
176
137
 
177
- ```yaml
178
- title-img: "/path/to/image.png"
179
- ```
138
+ These are parameters that you may not use often, but can come in handy sometimes.
180
139
 
181
- ### Add your name/email/social media links to the footer
182
-
183
- You can add contact information and social media links in the footer. They will be displayed as nice little logos, to give the footer a clean feel. Add the following to your `_config.yml` file:
184
-
185
- ```yaml
186
- author:
187
- name: Some Person
188
- email: "youremail@domain.com"
189
- facebook: yourname # eg. daattali
190
- github: yourname # eg. daattali
191
- twitter: yourname # eg. daattali
192
- telephone: yourphone # eg. +14159998888
193
- reddit: yourname # eg. daattali
194
- google-plus: +yourname # eg. +DeanAttali or 109424658772469020925
195
- linkedin: yourname # eg. daattali
196
- xing: yourname # eg. daattali
197
- stackoverflow: yourlink # eg. "3943160/daattali"
198
- snapchat: yourname # eg. daattali
199
- instagram: yourname # eg. daattali
200
- youtube: yourlink # eg. user/daattali or channel/daattali
201
- spotify: yourname # eg. daattali
202
- ```
140
+ Parameter | Description
141
+ ----------- | -----------
142
+ readtime | If you want a post to show how many minutes it will take to read it, use `readtime: true`.
143
+ show-avatar | If you have an avatar configured in the `_config.yml` but you want to turn it off on a specific page, use `show-avatar: false`.
144
+ thumbnail-img | For blog posts, if you want to add a thumbnail that'll show up next to the post's excerpt in the feed, use `thumbnail-img: /path/to/image`. If no thumbnail is provided, then `cover-img` will be used as the thumbnail. You can use `thumbnail-img: ""` to disable a thumbnail.
145
+ share-img | The image to use when sharing the page to social media. If not provided, then `cover-img` or `thumbnail-img` will be used.
146
+ social-share | By default, every blog post has buttons to share the page on social media. If you want to turn this feature off, use `social-share: false`.
147
+ nav-short | By default, the navigation bar gets shorter after scrolling down the page. If you want the navigation bar to always be short on a certain page, use `nav-short: true`
148
+ gh-repo   | If you want to show GitHub buttons at the top of a post, this sets the GitHub repo name (eg. `daattali/beautiful-jekyll`). You must also use the `gh-badge` parameter to specify what buttons to show.
149
+ gh-badge | Select which GitHub buttons to display. Available options are: [star, watch, fork, follow]. You must also use the `gh-repo` parameter to specify the GitHub repo.
150
+ layout | What type of page this is (default is `post` for blog posts and `page` for other pages). See _Page types_ section below for more information.
203
151
 
204
- Remove the lines that you don't want to display in the footer, and change `yourname` to the correct values in the links you want to keep.
152
+ ## Advanced parameters
205
153
 
206
- #### Add an RSS feed link to the footer
154
+ These are advanced parameters that are only useful for people who need very fine control over their website.
207
155
 
208
- You can add an icon that will link to an RSS feed of your blog by including the following parameter in `_config.yml`:
156
+ Parameter | Description
157
+ ----------- | -----------
158
+ footer-extra | If you want to include extra information in the footer, create an HTML file in the `_includes/` folder (for example `_includes/myinfo.html`) and set `footer-extra` to the name of the file (for example `footer-extra: myinfo.html`)
159
+ language | HTML language code to be set on the page's &lt;html&gt; element.
160
+ use-site-title | If you want to use the site title rather than the page title as the HTML document title, use `use-site-title: true`.
161
+ js | List of local JavaScript files to include in the page (eg. `/assets/js/mypage.js`)
162
+ ext-js | List of external JavaScript files to include in the page (eg. `//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js`). External JavaScript files that support [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) can be specified using the `href` and `sri` parameters eg.<br/>`href: "//code.jquery.com/jquery-3.1.1.min.js"`<br/>`sri: "sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="`
163
+ css | List of local CSS files to include in the page
164
+ ext-css | List of external CSS files to include in the page. External CSS files using SRI (see `ext-js` parameter) are also supported.
209
165
 
210
- ```yaml
211
- rss-footer: true
212
- ```
166
+ ## Page types
213
167
 
214
- #### Add your website's name to the footer
168
+ - **post** - To write a blog post, add a markdown or HTML file in the `_posts` folder. As long as you give it YAML front matter (the two lines of three dashes), it will automatically be rendered like a blog post. Look at the existing blog post files to see examples of how to use YAML parameters in blog posts.
169
+ - **page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
170
+ - **home** - The home layout is meant to act as the homepage of your blog posts - it will display all your blog posts, sorted from newest to oldest. A file using the `home` layout must be named `index.html` (not `index.md` or anything else!).
171
+ - **minimal** - If you want to create a page with minimal styling (ie. without the bulky navigation bar and footer), assign `layout: minimal` to the YAML front matter.
172
+ - If you want to completely bypass the template engine and just write your own HTML page, simply omit the YAML front matter. Only do this if you know how to write HTML!
215
173
 
216
- After all the contact info links, you can also add the name of your website by defining the `url-pretty` parameter in `_config.yml`:
174
+ # Showcased users (success stories!)
217
175
 
218
- ```yaml
219
- url-pretty: "MyWebsite.com"
220
- ```
176
+ Beautiful Jekyll has been used in over 500 websites in its first 6 months, and tens of thousands of times since its inception. Here is a sample of some websites that use Beautiful Jekyll.
221
177
 
222
- ### Buttons for sharing blog posts on social media
178
+ ## Project/company websites
223
179
 
224
- By default, every blog post will have buttons at the bottom for sharing the page on Twitter, Facebook, LinkedIn, and Google+. If you want to disable these buttons, add these lines to your `_config.yml`:
180
+ | Website | Description |
181
+ | :------ |:----------- |
182
+ | [repidemicsconsortium.org/](https://www.repidemicsconsortium.org/) | R Epidemics Consortium |
183
+ | [vaccineimpact.org](https://www.vaccineimpact.org/) | Vaccine Impact Modelling Consortium |
184
+ | [derekogle.com/fishR](http://derekogle.com/fishR/) | Using R for Fisheries Analyses |
185
+ | [joecks.github.io/clipboard-actions](http://joecks.github.io/clipboard-actions/) | Clipboard Actions - an Android app |
186
+ | [deanattali.com/shinyjs](http://deanattali.com/shinyjs/) | shinyjs - an R package |
187
+ | [blabel.github.io](http://blabel.github.io) | Library for canonicalising blank node labels in RDF graphs |
188
+ | [reactionic.github.io](http://reactionic.github.io) | Create iOS and Android apps with React and Ionic |
189
+ | [ja2-stracciatella.github.io](http://ja2-stracciatella.github.io) | Jagged Alliance 2 Stracciatella |
190
+ | [ddocent.com](http://ddocent.com/) | RADSeq Bioinformatics and Beyond |
191
+ | [guitarlessons.org](https://www.guitarlessons.org/) | Free online guitar lessons for all |
192
+ | [terremotocentroitalia.info](https://www.terremotocentroitalia.info/) | Information about the 2016 Italy earthquake |
225
193
 
226
- ```yaml
227
- share-links-active:
228
- twitter: false
229
- facebook: false
230
- google: false
231
- linkedin: false
232
- ```
233
194
 
234
- These settings will remove all four buttons. You can use `true` instead of `false` for any buttons that you want to keep.
195
+ ## Personal websites
235
196
 
236
- ### Allowing users to leave comments
197
+ | Website | Who | What |
198
+ | :------ |:--- | :--- |
199
+ | [deanattali.com](https://deanattali.com) | Dean Attali | Creator of Beautiful Jekyll |
200
+ | [ouzor.github.io](http://ouzor.github.io) | Juuso Parkkinen | Data scientist |
201
+ | [derekogle.com](http://derekogle.com/) | Derek Ogle | Professor of Mathematical Sciences and Natural Resources |
202
+ | [melyanna.github.io](http://melyanna.github.io/) | Melyanna | Shows off her nice art |
203
+ | [chauff.github.io](http://chauff.github.io/) | Claudia Hauff | Professor at Delft University of Technology |
204
+ | [kootenpv.github.io](http://kootenpv.github.io/) | Pascal van Kooten | Data analytics |
205
+ | [sjackman.ca](http://sjackman.ca) | Shaun Jackman | PhD candidate in bioinformatics |
206
+ | [anudit.in](http://www.anudit.in/) | Anudit Verma | Engineering student |
207
+ | [sharepointoscar.github.io](http://sharepointoscar.github.io) | Oscar Medina | Independent Hacker |
208
+ | [ocram85.com](https://ocram85.com) | Marco Blessing | A personal blog about PowerShell and automation |
209
+ | [khanna.cc](https://khanna.cc/) | Harry Khanna | Law and software |
237
210
 
238
- If you want to enable comments on your site, Beautiful-Jekyll supports the [Disqus](https://disqus.com/) comments plugin. To use it, simply sign up to Disqus and add your Disqus shortname (**not** the userid) to the `disqus` parameter in `_config.yml`:
211
+ # FAQ and support
239
212
 
240
- ```yaml
241
- disqus: yourshortname
242
- ```
213
+ If you need any help, I suggest heading over to the [Jekyll support forum](https://talk.jekyllrb.com/).
243
214
 
244
- ### Adding Google Analytics to track page views
215
+ Beautiful Jekyll is actively used by thousands of people with wildly varying degrees of competency, so it's impossible to answer all the questions that may arise. Below are answers to a few very common questions. Most questions that I get asked are not directly related to this theme, and instead are more general questions about Jekyll or web development. Many such questions can be answered by reading the [Jekyll documentation](https://jekyllrb.com/) or with Google.
245
216
 
246
- Beautiful-Jekyll lets you easily add Google Analytics to all your pages. This will allow you to track all sorts of information about visits to your website, such as how many times each page is viewed and where (geographically) your users come from. To add Google Analytics, simply sign up to [Google Analytics](http://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `google_analytics` parameter in `_config.yml`:
217
+ ### What if I don't want the website to be `https://<yourusername>.github.io`?
247
218
 
248
- ```yaml
249
- google_analytics: yourid
250
- ```
219
+ Every GitHub user can have one repository (repository = project) named `<yourusername>.github.io` and the website for that repository will be `https://<yourusername>.github.io`.
251
220
 
252
- ### YAML parameter you can use to personalize each page
221
+ If you want your project to be named something else, for example `MyAwesomeProject`, that's no problem! All you have to do is go to _Settings_ at the top right corner of the page, and rename your repository to `MyAwesomeProject` (**remember to click on the _Rename_ button to confirm!**). Then you need to scroll down to the _GitHub Pages_ section and choose "master branch" as the source (not "master branch /docs folder"!).
253
222
 
254
- These are all the parameters you can place inside a page's YAML front matter that Beautiful-Jekyll supports.
223
+ Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
255
224
 
256
- Parameter | Description
257
- ----------- | -----------
258
- layout | What type of page this is (default is `blog` for blog posts and `page` for other pages. You can use `minimal` if you don't want a header and footer).
259
- title | Page or blog post title.
260
- subtitle | Short description of page or blog post that goes under the title.
261
- bigimg | Include a large full-width image at the top of the page. You can either give the path to a single image, or provide a list of images to cycle through (see [my personal website](http://deanattali.com/) as an example).
262
- comments | Only applicable if the `disqus` parameter is set in the `_config.yml` file. All blog posts automatically have comments enabled. To enable comments on a specific page, use `comments: true`; to turn comments off for a specific blog post, use `comments: false`.
263
- social-share | If you don't want to show buttons to share a blog post on social media, use `social-share: false` (this feature is turned on by default).
264
- share-img | If you want to specify an image to use when sharing the page on Facebook or Twitter, then provide the image's full URL here.
265
- image | If you want to add a personalized image to your blog post that will show up next to the post's excerpt and on the post itself, use `image: /path/to/img.png`.
266
- js | List of local JavaScript files to include in the page (eg. `/js/mypage.js`)
267
- ext-js | List of external JavaScript files to include in the page (eg. `//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js`)
268
- css | List of local CSS files to include in the page
269
- ex-css | List of external CSS files to include in the page
270
- googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
225
+ ### How do I change the number of posts per page OR the colour of the navigation bar OR the image in the navigation bar OR ...?
226
+
227
+ Beautiful Jekyll is built to be very customizable, and as such, many questions about "how do I change ..." can be answered by looking at the `_config.yml` file. The configuration file has many adjustable parameters to customize your site.
228
+
229
+ ### How do I add a favicon to my site?
230
+
231
+ Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
232
+
233
+ ### How do I move the blog to another page instead of having it on the home page?
234
+
235
+ The default style of Beautiful Jekyll is to feature the blog feed on the front page. But for many sites that's not the ideal structure, and you may want to have a separate dedicated page for the blog posts. To have the blog hosted on a different URL (for example at `<mysite.com>/blog`), copy the `index.html` file into a folder with the same name as the desired page (for example, to `blog/index.html`), and in the `_config.yml` file you need to add a parameter `paginate_path: "/<page name>/page:num/"` (for example `paginate_path: "/blog/page:num/"`).
236
+
237
+ ### What size do you recommend using for the `cover-img` photos?
238
+
239
+ Unfortunately, this is a no-answer! There isn't a one-size-fits-all solution to this, because every person will view your site on a different browser with different dimensions. Some browsers will have very wide aspect ratio, some will be narrower, some will be vertical (such as phones), different phones have different screens, etc. The image will always be centered, so the only tip I can give is that you should make sure the important part of the image is in the middle so that it'll always show. Other than that, every browser will show a different clipping of the image.
240
+
241
+ ### How do I use MathJax equations in my posts?
242
+
243
+ MathJax can be easily integrated into your website with a one-line addition. You can see [this discussion](https://github.com/daattali/beautiful-jekyll/issues/195) for more information.
244
+
245
+ # Contributions
246
+
247
+ Thank you to [all past contributors](https://github.com/daattali/beautiful-jekyll/graphs/contributors). If you find any problems or would like to contribute in any way, feel free to create a pull request/open an issue/send me a message. Any comments are welcome!
271
248
 
272
- ## Contributions
249
+ You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali) to help keep beautiful-jekyll well-maintained.
273
250
 
274
- If you find anything wrong or would like to contribute in any way, feel free to submit a pull request/open an issue [on GitHub](https://github.com/daattali/beautiful-jekyll), or [send me a message](http://deanattali.com/contact).
251
+ # Credits
275
252
 
276
- Thank you to [all contributors](https://github.com/daattali/beautiful-jekyll/graphs/contributors). Special thanks to the following people with non-trivial contributions (in chronological order): [@hristoyankov](https://github.com/hristoyankov), [@jamesonzimmer](https://github.com/jamesonzimmer), [@XNerv](https://github.com/XNerv), [@epwalsh](https://github.com/epwalsh), [@rtlee9](https://github.com/rtlee9).
253
+ This template was not made *entirely* from scratch. I'd like to give special thanks to [Jekyll Now](https://github.com/barryclark/jekyll-now) and [Bootstrap Clean Blog](https://github.com/IronSummitMedia/startbootstrap-clean-blog), from whom I've taken several ideas initially.
277
254
 
278
- ## Credits
255
+ I'd also like to thank [Dr. Jekyll's Themes](https://drjekyllthemes.github.io/), [Jekyll Themes](http://jekyllthemes.org/), and another [Jekyll Themes](http://jekyllrc.github.io/jekyllthemes/) for featuring Beautiful Jekyll in their Jekyll theme directories.
279
256
 
280
- This template was not made entirely from scratch. I would like to give special thanks to:
281
- - [Barry Clark](https://github.com/barryclark) and his project [Jekyll Now](https://github.com/barryclark/jekyll-now), from whom I've taken several ideas and code snippets, as well as some documenation tips.
282
- - [Iron Summit Media](https://github.com/IronSummitMedia) and their project [Bootstrap Clean Blog](https://github.com/IronSummitMedia/startbootstrap-clean-blog), from which I've used some design ideas and some of the templating code for posts and pagination.
257
+ # Known limitations
283
258
 
284
- I'd also like to thank [Dr. Jekyll's Themes](http://drjekyllthemes.github.io/), [Jekyll Themes](http://jekyllthemes.org/), and another [Jekyll Themes](http://jekyllrc.github.io/jekyllthemes/) for featuring Beautiful Jekyll in their Jekyll theme directories.
259
+ - If there are many navigation bar links and an avatar, some of the links may get partially hidden behind the avatar. I suggest either re-thinking the number of links, or not using an avatar.