beautiful-jekyll-theme 2.2.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +98 -65
  3. data/_includes/disqus.html +11 -11
  4. data/_includes/ext-css.html +2 -2
  5. data/_includes/fb-comment.html +12 -10
  6. data/_includes/footer-minimal.html +11 -11
  7. data/_includes/footer-scripts.html +2 -2
  8. data/_includes/footer.html +11 -6
  9. data/_includes/google_analytics.html +8 -8
  10. data/_includes/gtag.html +2 -3
  11. data/_includes/gtm_body.html +3 -4
  12. data/_includes/gtm_head.html +9 -7
  13. data/_includes/head.html +75 -45
  14. data/_includes/header.html +12 -12
  15. data/_includes/nav.html +33 -44
  16. data/_includes/readtime.html +10 -10
  17. data/_includes/social-networks-links.html +78 -30
  18. data/_includes/social-share.html +8 -3
  19. data/_includes/staticman-comments.html +8 -8
  20. data/_layouts/base.html +13 -8
  21. data/_layouts/default.html +1 -1
  22. data/_layouts/home.html +25 -12
  23. data/_layouts/minimal.html +11 -5
  24. data/_layouts/page.html +2 -2
  25. data/_layouts/post.html +8 -8
  26. data/assets/css/main-minimal.css +2 -2
  27. data/assets/css/main.css +352 -230
  28. data/assets/css/staticman.css +2 -2
  29. data/assets/img/thumb.png +0 -0
  30. data/assets/js/jquery-3.4.1.min.js +2 -0
  31. data/assets/js/main.js +58 -99
  32. data/assets/js/staticman.js +13 -13
  33. data/staticman.yml +110 -0
  34. metadata +19 -12
  35. data/assets/css/bootstrap-theme.css +0 -476
  36. data/assets/css/bootstrap-theme.css.map +0 -1
  37. data/assets/css/bootstrap-theme.min.css +0 -5
  38. data/assets/css/bootstrap.css +0 -6566
  39. data/assets/css/bootstrap.css.map +0 -1
  40. data/assets/css/bootstrap.min.css +0 -5
  41. data/assets/css/normalize.css +0 -427
  42. data/assets/js/bootstrap.js +0 -2306
  43. data/assets/js/bootstrap.min.js +0 -7
  44. data/assets/js/jquery-1.11.2.min.js +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13abeddaf7631ad4c6dd69586d347daa2efea67223809756ff4a72875e2af73e
4
- data.tar.gz: 857382212af724f0ea8fd4f24fa3d122f37cddacd0284a537cec558fe1f35ec8
3
+ metadata.gz: 4d8b59dc9b92ac72d4fb06b368d9ed8bf85eb660b02d2b488b2cd0ec5dc6e523
4
+ data.tar.gz: 62db8a1cdb5fb75bdbb0bffeb381298df5121a3af0b8b710b017088b77bb27e6
5
5
  SHA512:
6
- metadata.gz: 7eaac63fe4233d66e59494114dc9ff1489ee97acb49a5b6cf218fe0551e388d1c7c1da30679ebe89e8ba045b7067377edafc9ac3d626bad89f7c47392ca9f051
7
- data.tar.gz: ff74408ddacd8eed700f44a68865cfecc98f8e9fec71c5e8fb21b212b3fcd58ea337f7b7aad0ba26d927eb1a2c0b78b48b5663b069f5cfdbe0166ccae79f5088
6
+ metadata.gz: 8aba279446b8aa539d9419ada18f91ab42e33fba348678c2aa40770a4249625250cf3fc293c3b683f10d1c666b559a359d5a9a882aa2d0965952d2fffbed1cac
7
+ data.tar.gz: 85802295e3b5c95a2405758fba3dd2029a300dfb2a851ec8868a634cde067edb86ef4d6244160340f7eb74e583a4b781a76e72d3f9256c402fda25bdd32cacef
data/README.md CHANGED
@@ -1,55 +1,58 @@
1
+ [![](https://i.imgur.com/zNBkzj1.png)](https://xscode.com/daattali/beautiful-jekyll)
2
+
1
3
  # Beautiful Jekyll
2
4
 
3
- ![Beautiful Jekyll CI](https://github.com/daattali/beautiful-jekyll/workflows/Beautiful%20Jekyll%20CI/badge.svg)
5
+ [![xscode](https://img.shields.io/badge/Available%20on-xs%3Acode-blue?style=?style=plastic&logo=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/wDltzBKAAAAlUlEQVR42uzXSwqAMAwE0Mn9L+3Ggtgkk35QwcnSJo9S+yGwM9DCooCbgn4YrJ4CIPUcQF7/XSBbx2TEz4sAZ2q1RAECBAiYBlCtvwN+KiYAlG7UDGj59MViT9hOwEqAhYCtAsUZvL6I6W8c2wcbd+LIWSCHSTeSAAECngN4xxIDSK9f4B9t377Wd7H5Nt7/Xz8eAgwAvesLRjYYPuUAAAAASUVORK5CYII=)](https://xscode.com/daattali/beautiful-jekyll)
4
6
  [![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme)
5
7
 
6
- > *Copyright 2020 [Dean Attali](https://deanattali.com)*
8
+ > *Created by [Dean Attali](https://deanattali.com)* · [Demo](https://beautifuljekyll.com/)
7
9
 
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://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).
10
+ **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
11
 
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.**
12
+ **If you enjoy this theme, please consider [supporting me](https://github.com/sponsors/daattali) for developing and maintaining it for over 5 years.**
11
13
 
12
14
  <p align="center">
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
15
  <a style="display: inline-block;" href="https://github.com/sponsors/daattali">
17
16
  <img height="40" src="https://i.imgur.com/034B8vq.png" />
18
17
  </a>
18
+ &nbsp;&nbsp;
19
+ <a style="display: inline-block;" href="https://paypal.me/daattali">
20
+ <img height="40" src="https://camo.githubusercontent.com/0e9e5cac101f7093336b4589c380ab5dcfdcbab0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74776f6c66736f6e2f70617970616c2d6769746875622d627574746f6e40312e302e302f646973742f627574746f6e2e737667" />
21
+ </a>
19
22
  </p>
20
23
 
21
- ### Table of contents
24
+ ## Table of contents
22
25
 
23
26
  - [Features](#features)
24
- - [Build your website in 3 steps](#build-your-website-in-3-steps)
27
+ - [**Build your website in 3 steps**](#build-your-website-in-3-steps)
25
28
  - [Add your own content](#add-your-own-content)
26
- - [Last important thing: parameters for each page](#last-important-thing-parameters-for-each-page)
27
- - [Supported YAML front matter parameters](#supported-yaml-front-matter-parameters)
29
+ - [Customizing parameters for each page](#customizing-parameters-for-each-page)
30
+ - [Supported parameters](#supported-parameters)
28
31
  - [Showcased users (success stories!)](#showcased-users-success-stories)
29
32
  - [FAQ and support](#faq-and-support)
30
33
  - [Credits and contributions](#credits)
31
34
 
32
- ## Features
35
+ # Features
33
36
 
34
37
  - **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes.
38
+ - **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit.
35
39
  - **Mobile-first**: Designed to look great on both large-screen and small-screen (mobile) devices.
36
40
  - **Highly customizable**: Many personalization settings such as changing the background colour/image, adding a logo.
37
- - **Two-level navigation menu**: If you have many pages and your menu is getting cluttered, separate your menu into two levels.
38
- - **Flexible usage**: Install Beautiful Jekyll directly from GitHub or using a Ruby gem - choose the right [development method](#build-your-website-in-3-steps) for you.
41
+ - **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.
39
42
  - **Battle-tested**: By using Beautiful Jekyll, you'll be joining tens of thousands of users who used this theme since 2015.
40
43
  - **Links to your social media**: You can easily add links to any of your social media accounts in the footer of every page.
41
- - **Comments support**: Add comments to any page using one of the supported commenting platforms: [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), [Utterances](https://utteranc.es/), or [Staticman](https://staticman.net).
42
- - **Sharing blog posts on social media**: By default, all blog posts have buttons to allow people to share on Twitter/Facebook/LinkedIn.
44
+ - **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).
45
+ - **Share blog posts on social media**: By default, all blog posts have buttons to allow people to share on Twitter/Facebook/LinkedIn.
43
46
  - **Tags**: Any blog post can be tagged with keywords, and an index page showing all the tags is automatically generated.
44
47
  - **Tracking analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website.
45
48
  - **Photos support**: Any page can have a cover photo around its title, and any blog post can have an associated image.
46
49
  - **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.
47
50
 
48
- ## Build your website in 3 steps
51
+ # Build your website in 3 steps
49
52
 
50
53
  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.
51
54
 
52
- ### The easy way (recommended!)
55
+ ## The easy way (recommended!)
53
56
 
54
57
  Getting started is *literally* as easy as 1-2-3 :smile:
55
58
 
@@ -57,40 +60,44 @@ Scroll down to see the steps involved, but here is a 40-second video just as a r
57
60
 
58
61
  ![Installation steps](assets/img/install-steps.gif)
59
62
 
60
- #### 1. Fork this project
63
+ ### 1. Fork this project
61
64
 
62
65
  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.
63
66
 
64
- #### 2. Rename the project to `<yourusername>.github.io`
67
+ ### 2. Rename the project to `<yourusername>.github.io`
65
68
 
66
69
  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.
67
70
 
68
- #### 3. Customize your website settings
71
+ ### 3. Customize your website settings
69
72
 
70
73
  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.
71
74
 
72
- #### 4. Congratulations! You have a website!
75
+ ### 4. Congratulations! You have a website!
73
76
 
74
77
  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.
75
78
 
76
79
  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 :)**
77
80
 
78
- ### The hard way (using ruby gems)
81
+ ## The hard way (using ruby gems)
79
82
 
80
83
  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).
81
84
 
82
85
 
83
- ## Add your own content
86
+ # Add your own content
87
+
88
+ 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.
84
89
 
85
- 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!
90
+ 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!
86
91
 
87
92
  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.
88
93
 
94
+ 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`.
95
+
89
96
  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.
90
97
 
91
- ## Last important thing: parameters for each page
98
+ # Customizing parameters for each page
92
99
 
93
- 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:
100
+ **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:
94
101
 
95
102
  ```
96
103
  ---
@@ -112,34 +119,54 @@ You can look at the top of [`aboutme.md`](https://raw.githubusercontent.com/daat
112
119
 
113
120
  If you don't include YAML then your file will not use this template.
114
121
 
115
- ## Supported YAML front matter parameters
122
+ # Supported parameters
123
+
124
+ 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.
125
+
126
+ ## Main parameters
116
127
 
117
- These are the main parameters you can place inside a page's YAML front matter that **Beautiful Jekyll** supports.
128
+ These are the basic YAML parameters that you are most likely to use on most pages.
118
129
 
119
130
  Parameter | Description
120
131
  ----------- | -----------
121
132
  title | Page or blog post title
122
133
  subtitle | Short description of page or blog post that goes under the title
123
- tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, self help, finance]`
124
- 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).
125
- 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.
126
- 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`.
127
- 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`.
128
- readtime | If you want to show how many minutes it will take to read a post in the header, add `readtime: true`.
129
- 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.
130
- 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).
131
- 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.
132
- 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`.
133
- 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.
134
+ tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, analysis, finance]`
135
+ 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"}`.
136
+ 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`.
137
+
138
+ ## Less commonly used parameters
139
+
140
+ These are parameters that you may not use often, but can come in handy sometimes.
141
+
142
+ Parameter | Description
143
+ ----------- | -----------
144
+ readtime | If you want a post to show how many minutes it will take to read it, use `readtime: true`.
145
+ 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`.
146
+ 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.
147
+ 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.
148
+ 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`.
149
+ 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`
134
150
  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.
135
151
  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.
152
+ 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.
153
+ description | A brief description of the page (used in search engines and when the page is shared).
154
+
155
+ ## Advanced parameters
156
+
157
+ These are advanced parameters that are only useful for people who need very fine control over their website.
158
+
159
+ Parameter | Description
160
+ ----------- | -----------
161
+ 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`)
162
+ language | HTML language code to be set on the page's &lt;html&gt; element.
163
+ 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`.
136
164
  js | List of local JavaScript files to include in the page (eg. `/assets/js/mypage.js`)
137
165
  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="`
138
166
  css | List of local CSS files to include in the page
139
167
  ext-css | List of external CSS files to include in the page. External CSS files using SRI (see `ext-js` parameter) are also supported.
140
- googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
141
168
 
142
- ### Page types
169
+ ## Page types
143
170
 
144
171
  - **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.
145
172
  - **page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
@@ -147,18 +174,17 @@ googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lob
147
174
  - **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.
148
175
  - 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!
149
176
 
150
- ## Showcased users (success stories!)
177
+ # Showcased users (success stories!)
151
178
 
152
- 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.
179
+ Beautiful Jekyll has been used in tens of thousands of websites since 2015. Here is a sample of some websites that use Beautiful Jekyll. If you'd like to showcase yourself and join this list, any level of [sponsorship](https://github.com/sponsors/daattali) will grant you that perk!
153
180
 
154
- ### Project/company websites
181
+ ## Project/company websites
155
182
 
156
183
  | Website | Description |
157
184
  | :------ |:----------- |
158
185
  | [repidemicsconsortium.org/](https://www.repidemicsconsortium.org/) | R Epidemics Consortium |
159
186
  | [vaccineimpact.org](https://www.vaccineimpact.org/) | Vaccine Impact Modelling Consortium |
160
187
  | [derekogle.com/fishR](http://derekogle.com/fishR/) | Using R for Fisheries Analyses |
161
- | [bigdata.juju.solutions](http://bigdata.juju.solutions) | Creating Big Data solutions Juju Solutions |
162
188
  | [joecks.github.io/clipboard-actions](http://joecks.github.io/clipboard-actions/) | Clipboard Actions - an Android app |
163
189
  | [deanattali.com/shinyjs](http://deanattali.com/shinyjs/) | shinyjs - an R package |
164
190
  | [blabel.github.io](http://blabel.github.io) | Library for canonicalising blank node labels in RDF graphs |
@@ -169,7 +195,7 @@ Beautiful Jekyll has been used in over 500 websites in its first 6 months, and t
169
195
  | [terremotocentroitalia.info](https://www.terremotocentroitalia.info/) | Information about the 2016 Italy earthquake |
170
196
 
171
197
 
172
- ### Personal websites
198
+ ## Personal websites
173
199
 
174
200
  | Website | Who | What |
175
201
  | :------ |:--- | :--- |
@@ -185,52 +211,59 @@ Beautiful Jekyll has been used in over 500 websites in its first 6 months, and t
185
211
  | [ocram85.com](https://ocram85.com) | Marco Blessing | A personal blog about PowerShell and automation |
186
212
  | [khanna.cc](https://khanna.cc/) | Harry Khanna | Law and software |
187
213
 
188
- ## FAQ and support
214
+ # FAQ and support
189
215
 
190
216
  If you need any help, I suggest heading over to the [Jekyll support forum](https://talk.jekyllrb.com/).
191
217
 
192
218
  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.
193
219
 
194
- #### What if I don't want the website to be `https://<yourusername>.github.io`?
220
+ **If you really wany my personal help, please visit https://xscode.com/daattali/beautiful-jekyll to hire my services.**
221
+
222
+ - ### How do I add a favicon to my site?
195
223
 
196
- 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`.
224
+ Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
197
225
 
198
- 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"!).
226
+ - ### 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 ...?
199
227
 
200
- Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
228
+ 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.
201
229
 
202
- #### 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 ...?
230
+ - ### What if I want to use a custom domain for my site?
203
231
 
204
- 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.
232
+ GitHub lets you have your website for free using their `github.io` domain. If you want your own domain (such as `https://myname.com`), it's easy and will cost about $10-$15 per year. First you need to buy a domain name (I recommend [Namecheap](https://namecheap.pxf.io/daattali)) and then follow the [instructions GitHub provides](https://docs.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site).
205
233
 
206
- #### How do I add a favicon to my site?
234
+ - ### What if I want a free domain, but not `https://<yourusername>.github.io`?
207
235
 
208
- Easy! Just place a valid `favicon.ico` in the root directory of your project. And then wait! It can take a while to update.
236
+ 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`.
209
237
 
210
- #### How do I move the blog to another page instead of having it on the home page?
238
+ 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"!).
211
239
 
212
- 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/"`).
240
+ Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
213
241
 
214
- #### What size do you recommend using for the `bigimg` photos?
242
+ - ### How do I move the blog to another page instead of having it on the home page?
215
243
 
216
- 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.
244
+ The default style of Beautiful Jekyll is to feature the blog feed on the front page. For some 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/"`).
217
245
 
218
- #### How do I use MathJax equations in my posts?
246
+ - ### What size do you recommend using for the `cover-img` photos?
219
247
 
220
- 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.
248
+ 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.
221
249
 
222
- ## Contributions
250
+ - ### How do I use math equations in my posts?
251
+
252
+ 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.
253
+
254
+ # Contributions
223
255
 
224
256
  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!
225
257
 
226
258
  You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali) to help keep beautiful-jekyll well-maintained.
227
259
 
228
- ## Credits
260
+ # Credits
229
261
 
230
262
  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.
231
263
 
232
264
  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.
233
265
 
234
- ## Known limitations
266
+ # Known limitations
235
267
 
236
268
  - 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.
269
+
@@ -1,19 +1,19 @@
1
1
  {%- if site.disqus -%}
2
2
  <div class="disqus-comments">
3
- <div class="comments">
3
+ <div class="comments">
4
4
  <div id="disqus_thread"></div>
5
5
  <script type="text/javascript">
6
- var disqus_shortname = '{{ site.disqus }}';
7
- /* ensure that pages with query string get the same discussion */
8
- var url_parts = window.location.href.split("?");
9
- var disqus_url = url_parts[0];
10
- (function() {
11
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
12
- dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
13
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
14
- })();
6
+ var disqus_shortname = '{{ site.disqus }}';
7
+ /* ensure that pages with query string get the same discussion */
8
+ var url_parts = window.location.href.split("?");
9
+ var disqus_url = url_parts[0];
10
+ (function() {
11
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
12
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
13
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
14
+ })();
15
15
  </script>
16
16
  <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
17
- </div>
17
+ </div>
18
18
  </div>
19
19
  {%- endif -%}
@@ -1,7 +1,7 @@
1
1
  {% if include.css.sri %}
2
2
  <link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
3
3
  {% elsif include.css.href %}
4
- <link rel="stylesheet" href="{{ include.css.href }}" />
4
+ <link rel="stylesheet" href="{{ include.css.href }}">
5
5
  {% else %}
6
- <link rel="stylesheet" href="{{ include.css }}" />
6
+ <link rel="stylesheet" href="{{ include.css }}">
7
7
  {% endif %}
@@ -1,14 +1,16 @@
1
1
  {%- if site.fb_comment_id -%}
2
2
  <div class="comments">
3
- <div id="fb-root"></div>
4
- <script>(function(d, s, id) {
5
- var js, fjs = d.getElementsByTagName(s)[0];
6
- if (d.getElementById(id)) return;
7
- js = d.createElement(s); js.id = id;
8
- js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
9
- fjs.parentNode.insertBefore(js, fjs);
10
- }(document, 'script', 'facebook-jssdk'));</script>
11
- <div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
12
- <noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
3
+ <div id="fb-root"></div>
4
+ <script>
5
+ (function(d, s, id) {
6
+ var js, fjs = d.getElementsByTagName(s)[0];
7
+ if (d.getElementById(id)) return;
8
+ js = d.createElement(s); js.id = id;
9
+ js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
10
+ fjs.parentNode.insertBefore(js, fjs);
11
+ }(document, 'script', 'facebook-jssdk'));
12
+ </script>
13
+ <div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
14
+ <noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
13
15
  </div>
14
16
  {%- endif -%}
@@ -1,18 +1,18 @@
1
1
  <footer class="footer-min">
2
2
  <div class="text-muted">
3
- {% if site.author %}
4
- {{ site.author }}
5
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
6
- {% endif %}
7
- {% if page.date %}
8
- {{ page.date }}
9
- {% else %}
10
- {{ site.time | date: '%Y' }}
11
- {% endif %}
3
+ {% if site.author %}
4
+ {{ site.author }}
5
+ &nbsp;&nbsp;&bull;&nbsp;&nbsp;
6
+ {% endif %}
7
+ {% if page.date %}
8
+ {{ page.date }}
9
+ {% else %}
10
+ {{ site.time | date: '%Y' }}
11
+ {% endif %}
12
12
 
13
13
  {% if site.url-pretty %}
14
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
15
- <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
14
+ &nbsp;&nbsp;&bull;&nbsp;&nbsp;
15
+ <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
16
16
  {% endif %}
17
17
  </div>
18
18
  </footer>
@@ -9,9 +9,9 @@
9
9
  <!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
10
10
  {% if js contains 'jquery' %}
11
11
  <script>
12
- if (typeof jQuery == 'undefined') {
12
+ if (typeof jQuery == 'undefined') {
13
13
  document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
14
- }
14
+ }
15
15
  </script>
16
16
  {% else %}
17
17
  <script src="{{ js | relative_url }}"></script>
@@ -1,18 +1,23 @@
1
1
  <footer>
2
- <div class="container beautiful-jekyll-footer">
2
+ <div class="container-md beautiful-jekyll-footer">
3
3
  <div class="row">
4
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
4
+ <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
5
5
  {% include social-networks-links.html %}
6
+ {% if page.footer-extra %}
7
+ <div class="footer-custom-content">
8
+ {% include {{ page.footer-extra }} %}
9
+ </div>
10
+ {% endif %}
6
11
  <p class="copyright text-muted">
7
12
  {% if site.author %}
8
- {{ site.author }}
9
- &nbsp;&bull;&nbsp;
13
+ {{ site.author }}
14
+ &nbsp;&bull;&nbsp;
10
15
  {% endif %}
11
16
  {{ site.time | date: '%Y' }}
12
17
 
13
18
  {% if site.url-pretty %}
14
- &nbsp;&bull;&nbsp;
15
- <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
19
+ &nbsp;&bull;&nbsp;
20
+ <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
16
21
  {% endif %}
17
22
 
18
23
  {% if site.matomo %}