beautiful-jekyll-theme 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/404.html +13 -0
  3. data/{LICENSE.txt → LICENSE} +14 -5
  4. data/README.md +207 -203
  5. data/_data/ui-text.yml +494 -0
  6. data/_includes/comments.html +6 -0
  7. data/_includes/disqus.html +16 -14
  8. data/_includes/ext-css.html +7 -0
  9. data/_includes/ext-js.html +7 -0
  10. data/_includes/fb-comment.html +14 -0
  11. data/_includes/footer-minimal.html +6 -7
  12. data/_includes/footer-scripts.html +14 -16
  13. data/_includes/footer.html +23 -168
  14. data/_includes/google_analytics.html +13 -11
  15. data/_includes/gtag.html +11 -0
  16. data/_includes/gtm_body.html +6 -0
  17. data/_includes/gtm_head.html +9 -0
  18. data/_includes/head.html +41 -19
  19. data/_includes/header.html +37 -29
  20. data/_includes/matomo.html +17 -0
  21. data/_includes/nav.html +21 -23
  22. data/_includes/readtime.html +16 -0
  23. data/_includes/social-networks-links.html +207 -0
  24. data/_includes/social-share.html +25 -22
  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 +4 -2
  29. data/_layouts/default.html +1 -1
  30. data/_layouts/home.html +75 -0
  31. data/_layouts/minimal.html +3 -3
  32. data/_layouts/page.html +1 -5
  33. data/_layouts/post.html +35 -11
  34. data/assets/css/main.css +233 -74
  35. data/assets/css/normalize.css +1 -1
  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/js/main.js +21 -19
  45. data/assets/js/staticman.js +54 -0
  46. data/{assets/feed.xml → feed.xml} +8 -4
  47. data/tags.html +36 -0
  48. metadata +53 -17
  49. data/_includes/navbarlink.html +0 -16
  50. data/_layouts/tag_index.html +0 -41
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: 94b3bb8d1335221cb96108ff4f6e43cc7a361fdad53d092a79ad54b74e80179a
4
+ data.tar.gz: 837530eb135de944806b6ab2b4d93699d347212e52f091afa179e01130c84544
5
5
  SHA512:
6
- metadata.gz: 8b24f20b66910fd259a6e99f4798e93ca8a2ab2c078aa8a43185fb1c80aff99ac265e5ede084ce86d4751d23fb3f84d3be7d52975385a500a0d59fa061da1c70
7
- data.tar.gz: b4707c42db0ba8e729827909ca04bc4829b9bc3ac7a4beefca5c3a3519e1819ca9271bc0df44c68e0a1a315392caa26cecf98f60d4c360adf732f92f5ef0f470
6
+ metadata.gz: 4d99b58ae41f5d94fe5004cd21a74d191d75b689fbbee5c6b2a7bd8437d3fbb70710cf1b72a27443eb1a5cc3c91e351d507566d5268d7ddf1c3ae213501fecc9
7
+ data.tar.gz: 4c49e3f1cfdcf537441422babc0f45b17738e8a42d2f69746c15980fb0a590596a2791a27d28b8ab8340d77feccddcbb18169cb70d23e27d3a396a052ec1877a
@@ -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
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Dean Attali
3
+ Copyright (c) 2015-2018 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,22 @@ 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.
22
+
23
+
24
+
25
+ staticman integration
26
+ =================================================================================
27
+
28
+ The MIT License (MIT)
29
+
30
+ Copyright (c) 2013-2018 Michael Rose
data/README.md CHANGED
@@ -1,279 +1,271 @@
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)
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 an awesome website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](https://deanattali.com/beautiful-jekyll) 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 [supporting me](http://paypal.me/daattali) or [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://paypal.me/daattali">
14
+ <img height="40" src="https://camo.githubusercontent.com/0e9e5cac101f7093336b4589c380ab5dcfdcbab0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74776f6c66736f6e2f70617970616c2d6769746875622d627574746f6e40312e302e302f646973742f627574746f6e2e737667" />
15
+ </a>&nbsp;&nbsp;
16
+ <a style="display: inline-block;" href="https://github.com/sponsors/daattali">
17
+ <img height="40" src="https://i.imgur.com/034B8vq.png" />
15
18
  </a>
16
19
  </p>
17
20
 
18
- ![Screenshot](./screenshot.png)
21
+ ### Table of contents
19
22
 
20
- ## Prerequisites
23
+ - [Build your website in 3 steps](#build-your-website-in-3-steps)
24
+ - [Add your own content](#add-your-own-content)
25
+ - [Last important thing: parameters for each page](#last-important-thing-parameters-for-each-page)
26
+ - [Features](#features)
27
+ - [Supported YAML front matter parameters](#supported-yaml-front-matter-parameters)
28
+ - [Showcased users (success stories!)](#showcased-users-success-stories)
29
+ - [Advanced: Using `remote_theme`](#advanced-using-remote_theme)
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
+ ## Build your website in 3 steps
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
+ Getting started is *literally* as easy as 1-2-3 :smile:
30
36
 
31
- ## Installation
37
+ 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.
32
38
 
33
- To use the Beautiful-Jekyll theme, add this line to your Jekyll site's `Gemfile`:
39
+ ![Installation steps](assets/img/install-steps.gif)
34
40
 
35
- ```ruby
36
- gem "beautiful-jekyll-theme"
37
- ```
41
+ ### 1. Fork this project
38
42
 
39
- Then add this line to your Jekyll site's `_config.yml`:
43
+ 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.
40
44
 
41
- ```yaml
42
- theme: beautiful-jekyll-theme
43
- ```
45
+ ### 2. Rename the project to `<yourusername>.github.io`
44
46
 
45
- And finally execute:
47
+ 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.
46
48
 
47
- ```
48
- $ bundle
49
- ```
49
+ ### 3. Customize your website settings
50
+
51
+ 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.
50
52
 
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`.
53
+ ### 4. Congratulations! You have a website!
52
54
 
53
- ## Usage
55
+ 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.
54
56
 
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.
57
+ 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 :)**
56
58
 
57
- ### Adding content
59
+ ---
58
60
 
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.
61
+ ## Add your own content
60
62
 
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.
63
+ To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file directly. It's much easier to write markdown than HTML, so I suggest you do that (use [this great tutorial](https://markdowntutorial.com/) if you need to learn markdown in 5 minutes). You can look at some files on this site to get an idea of how to write markdown. 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 that generated the pretty text. Very easy!
62
64
 
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`:
65
+ 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.
64
66
 
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
- ```
67
+ 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.
79
68
 
80
- ### Adding an index page
69
+ ## Last important thing: parameters for each page
81
70
 
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:
71
+ 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-yaml-front-matter-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:
83
72
 
84
- ```html
73
+ ```
85
74
  ---
86
- layout: page
87
- title: My Website
88
- subtitle: Some short description of my site
89
75
  ---
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
76
  ```
139
77
 
140
- You'll also need to add these lines to your `_config.yml` because the code above uses pagination:
78
+ 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
79
 
142
- ```yaml
143
- paginate: 5
144
- gems:
145
- - jekyll-paginate
80
+ ```
81
+ ---
82
+ title: Contact me
83
+ subtitle: Here you'll find all the ways to get in touch with me
84
+ ---
146
85
  ```
147
86
 
148
- Make sure there is no `index.md` file (if there is one, then delete it).
149
-
150
- ### Creating a navigation bar
87
+ You can look at the top of [`aboutme.md`](https://raw.githubusercontent.com/daattali/beautiful-jekyll/master/aboutme.md) as an example.
151
88
 
152
- Add these lines to your `_config.yml` file to get a demo navigation bar:
89
+ **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.**
153
90
 
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
- ```
91
+ If you don't include YAML then your file will not use this template.
164
92
 
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.
93
+ ## Features
166
94
 
167
- #### Displaying an image in the navigation bar
95
+ ### Mobile-first
168
96
 
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.
97
+ **Beautiful Jekyll** is designed to look great on both large-screen and small-screen (mobile) devices. Load up your site on your phone or your gigantic iMac, and the site will work well on both, though it will look slightly different.
170
98
 
171
- ```yaml
172
- avatar: "/path/to/image.png"
173
- ```
99
+ ### Highly customizable
174
100
 
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`:
101
+ Many personalization settings in `_config.yml`, such as setting your name and site's description, changing the background colour/image, setting your avatar to add a little image in the navigation bar, customizing the links in the menus, customizing what social media links to show in the footer, etc.
176
102
 
177
- ```yaml
178
- title-img: "/path/to/image.png"
179
- ```
103
+ ### Allowing users to leave comments
180
104
 
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
- ```
105
+ If you want to enable comments on your site, Beautiful Jekyll supports several different commenting platforms you can choose from: [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), [Utterances](https://utteranc.es/), and [Staticman](https://staticman.net). If any of these are set in the configuration file, then all blog posts will have comments turned on by default. To turn off comments on a particular blog post, add `comments: false` to the YAML front matter. If you want to add comments on the bottom of a non-blog page, add `comments: true` to the YAML front matter.
203
106
 
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.
107
+ #### Disqus comments
205
108
 
206
- #### Add an RSS feed link to the footer
109
+ To use Disqus, simply sign up to [Disqus](https://disqus.com/) and add your Disqus shortname to the `disqus` parameter in the `_config.yml` file.
207
110
 
208
- You can add an icon that will link to an RSS feed of your blog by including the following parameter in `_config.yml`:
111
+ #### Facebook comments
209
112
 
210
- ```yaml
211
- rss-footer: true
212
- ```
113
+ To use Facebook comments, create a Facebook app using [Facebook developers](https://developers.facebook.com/docs/apps/register), and add the Facebook App ID to the `fb_comment_id` parameter in `_config.yml`.
213
114
 
214
- #### Add your website's name to the footer
115
+ #### Utterances comments
215
116
 
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`:
117
+ To use [Utterances comments](https://utteranc.es/), follow these steps: (1) Enable Issues in your GitHub repository, (2) Install the Utterances app in your repository (go to https://github.com/apps/utterances), (3) Fill in the `repository` parameter in the utterances section of the `_config.yml` file.
217
118
 
218
- ```yaml
219
- url-pretty: "MyWebsite.com"
220
- ```
119
+ #### Staticman comments
221
120
 
222
- ### Buttons for sharing blog posts on social media
121
+ To use Staticman, you first need to invite `staticmanlab` as a collaborator to your repository (by going to your repository **Settings** page, navigate to the **Collaborators** tab, and add the username `staticmanlab`), and then accept the invitation by going to `https://staticman3.herokuapp.com/v3/connect/github/<username>/<repo-name>`. Lastly, fill in the `staticman` parameters in the Staticman section of `_config.yml`. You may also choose a different Staticman instance other than `staticmanlab`.
223
122
 
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`:
123
+ Optional: You may want to configure a webhook to prevent old inactive branches (representing approved comments) from stacking up. You can refer to [Staticman's documentation](https://staticman.net/docs/webhooks) for details. Make sure to input the **Payload URL** according to your chosen `endpoint`. For example, the default `endpoint` is `https://staticman3.herokuapp.com/v3/entry/github/`, so the corresponding **Payload URL** should be `https://staticman3.herokuapp.com/v1/webhook`.
225
124
 
226
- ```yaml
227
- share-links-active:
228
- twitter: false
229
- facebook: false
230
- google: false
231
- linkedin: false
232
- ```
233
125
 
234
- These settings will remove all four buttons. You can use `true` instead of `false` for any buttons that you want to keep.
126
+ ### Adding Google Analytics to track page views
235
127
 
236
- ### Allowing users to leave comments
128
+ Beautiful Jekyll lets you easily add Google Analytics to all your pages. This will let you 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](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `google_analytics` parameter in `_config.yml`.
237
129
 
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`:
130
+ ### Sharing blog posts on social media
239
131
 
240
- ```yaml
241
- disqus: yourshortname
242
- ```
132
+ By default, all blog posts will have buttons at the bottom of the post to allow people to share the current page on Twitter/Facebook/LinkedIn. You can choose to enable/disable specific social media websites in the `_config.yml` file. You can also turn off the social media buttons on specific blog posts using `social-share: false` in the YAML front matter.
243
133
 
244
- ### Adding Google Analytics to track page views
134
+ ### Page types
245
135
 
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`:
136
+ - **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.
137
+ - **page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
138
+ - **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!).
139
+ - **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.
140
+ - 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!
247
141
 
248
- ```yaml
249
- google_analytics: yourid
250
- ```
251
-
252
- ### YAML parameter you can use to personalize each page
142
+ ## Supported YAML front matter parameters
253
143
 
254
- These are all the parameters you can place inside a page's YAML front matter that Beautiful-Jekyll supports.
144
+ These are the main parameters you can place inside a page's YAML front matter that **Beautiful Jekyll** supports.
255
145
 
256
146
  Parameter | Description
257
147
  ----------- | -----------
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).
148
+ title | Page or blog post title
149
+ subtitle | Short description of page or blog post that goes under the title
150
+ tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, self help, finance]`
151
+ 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](https://deanattali.com/) as an example).
152
+ comments | If you want do add comments to a specific page, use `comments: true`. Comments are automatically enabled on blog posts; to turn comments off for a specific post, use `comments: false`. Comments only work if you enable at least one provider(Facebook, disqus, staticman) in `_config.yml` file.
153
+ 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`. If you want to turn it off by default, locate the line `show-avatar: true` in the file `_config.yml` and change the `true` to `false`; then you can selectively turn it on in specific pages using `show-avatar: true`.
154
+ 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`.
155
+ readtime | If you want to show how many minutes it will take to read a post in the header, add `readtime: true`.
264
156
  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`)
157
+ 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).
158
+ use-site-title | If you want to use the site title rather than page title as HTML document title (ie. browser tab title), use `use-site-title: true`. When set, the document title will take the format `Site Title - Site Description` (eg. `My website - A virtual proof that name is awesome!`). By default, it will use `Page Title` if it exists, or `Site Title` otherwise.
159
+ language | HTML language code to be set on &lt;html&gt; element (see [W3Schools website](https://www.w3schools.com/tags/ref_language_codes.asp) for more info on this topic). Language can also be set site-wide in `_config.yml`.
160
+ layout | What type of page this is (default is `post` for blog posts and `page` for other pages. You can use `minimal` if you don't want a header and footer). The `index.html` file should use the `home` layout to show all the blog posts.
161
+ 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.
162
+ 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.
163
+ js | List of local JavaScript files to include in the page (eg. `/assets/js/mypage.js`)
164
+ 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="`
268
165
  css | List of local CSS files to include in the page
269
- ex-css | List of external CSS files to include in the page
166
+ ext-css | List of external CSS files to include in the page. External CSS files using SRI (see `ext-js` parameter) are also supported.
270
167
  googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
271
168
 
272
- ## Contributions
169
+ ### Advanced features (including how to use a custom URL address for your site)
170
+
171
+ 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 are applicable to any Jekyll site. It describes how I used a custom URL for my site (deanattali.com instead of daattali.github.io), how to add a Google-powered search into your site, and provides a few more details about having an RSS feed.
172
+
173
+ ## Showcased users (success stories!)
174
+
175
+ 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.
273
176
 
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).
177
+ ### Project/company websites
275
178
 
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).
179
+ | Website | Description |
180
+ | :------ |:----------- |
181
+ | [repidemicsconsortium.org/](https://www.repidemicsconsortium.org/) | R Epidemics Consortium |
182
+ | [vaccineimpact.org](https://www.vaccineimpact.org/) | Vaccine Impact Modelling Consortium |
183
+ | [derekogle.com/fishR](http://derekogle.com/fishR/) | Using R for Fisheries Analyses |
184
+ | [bigdata.juju.solutions](http://bigdata.juju.solutions) | Creating Big Data solutions Juju Solutions |
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 |
193
+
194
+
195
+ ### Personal websites
196
+
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 |
210
+
211
+ ## Advanced: Using `remote_theme`
212
+
213
+ Instead of forking this repository, it's possible to use GitHub's `remote_theme` feature. This is an advanced feature only suitable for people who are familiar with GitHub's remote themes feature and who know how to write jekyll sites from scratch. You can either use remote themes directly on GitHub or a Jekyll plugin - you should look up the official documentation for whichever method you want to use.
214
+
215
+ Regardless of which of the two methods you choose, after setting up beautiful-jekyll as a remote theme you'll need to:
216
+
217
+ - Edit the `_config.yml` file (or create it if it doesn't exist) and add a line `remote_theme: daattali/beautiful-jekyll` (make sure to remove any previous `theme` or `remote_theme` parameters that may have been there before).
218
+ - Go through beautiful-jekyll's `_config.yml` file and copy any settings you want to use into your project's config file.
219
+ - Some features will not work because of missing files that you'll need to copy from beautiful-jekyll into your project. To enable the `tags` feature, you need to copy `tags.html`. To enable the RSS feed, copy `feed.xml`. If you use staticman comments, copy `staticman.yml` and `_data/ui-text.yml`.
220
+ - Create any pages/blog posts using the YAML parameters and layouts available in Beautiful-Jekyll that are mentioned above.
221
+ - If you want the home page to include a feed of all blog posts, create an `index.html` file and use `layout: home` in its YAML.
222
+ - If you want to replace any file served from beautiful-jekyll (such as a CSS file, a layout, or an include), you'll need to place it with the exact same path in your own jekyll repo (e.g. `/assets/css/main.css`)
223
+
224
+ Below is a summary of the steps required to set up a site with remote themes:
225
+
226
+ #### Remote themes with a GitHub repository
227
+
228
+ - Create a new repository or go to an existing repository.
229
+ - Go to _Settings_, scroll down to the _GitHub Pages_ section, and choose "master branch" as the source (not "master branch /docs folder"!).
230
+
231
+ #### Remote themes with a Ruby Jekyll site
232
+
233
+ - Create a new jekyll site using `jekyll new <projectname>`.
234
+ - Add `gem "jekyll-remote-theme"` to your Gemfile and then run `bundle install` to install the plugin.
235
+ - Add `- jekyll-remote-theme` to the plugins section of your `_config.yml` file to activate the plugin.
236
+ - Serve the jekyll site as usual (e.g. `bundle exec jekyll serve -H 0.0.0.0`)
237
+
238
+ ## FAQ and support
239
+
240
+ If you need any help, I suggest heading over to the [Jekyll support forum](https://talk.jekyllrb.com/).
241
+
242
+ 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.
243
+
244
+ #### What if I don't want the website to be `https://<yourusername>.github.io`?
245
+
246
+ 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`.
247
+
248
+ 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"!).
249
+
250
+ #### 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 ...?
251
+
252
+ 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.
253
+
254
+ #### How do I add a favicon to my site?
255
+
256
+ Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
257
+
258
+ #### How do I move the blog to another page instead of having it on the home page?
259
+
260
+ 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/"`).
261
+
262
+ #### What size do you recommend using for the `bigimg` photos?
263
+
264
+ 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.
265
+
266
+ #### How do I use MathJax equations in my posts?
267
+
268
+ 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.
277
269
 
278
270
  ## Credits
279
271
 
@@ -281,4 +273,16 @@ This template was not made entirely from scratch. I would like to give special t
281
273
  - [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
274
  - [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.
283
275
 
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.
276
+ 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.
277
+
278
+ ## Contributions
279
+
280
+ If you find anything wrong 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!
281
+
282
+ Thank you to [all contributors](https://github.com/daattali/beautiful-jekyll/graphs/contributors). Special thanks to [@OCram85](https://github.com/OCram85) and [@abelcheung](https://github.com/abelcheung) for contributing multiple times as well as helping with discussions.
283
+
284
+ If you do fork or clone this project to use as a template for your site, I would appreciate if you keep the link in the footer to this project. I've noticed that several people who forked this repo removed the attribution and I would prefer to get the recognition if you do use this :)
285
+
286
+ ## Known limitations
287
+
288
+ - 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.