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.
- checksums.yaml +5 -5
- data/404.html +13 -0
- data/{LICENSE.txt → LICENSE} +6 -6
- data/README.md +185 -210
- data/_data/ui-text.yml +494 -0
- data/_includes/comments.html +6 -0
- data/_includes/disqus.html +18 -16
- data/_includes/ext-css.html +7 -0
- data/_includes/ext-js.html +7 -0
- data/_includes/fb-comment.html +16 -0
- data/_includes/footer-minimal.html +13 -14
- data/_includes/footer-scripts.html +16 -18
- data/_includes/footer.html +30 -170
- data/_includes/google_analytics.html +13 -11
- data/_includes/gtag.html +10 -0
- data/_includes/gtm_body.html +5 -0
- data/_includes/gtm_head.html +11 -0
- data/_includes/head.html +77 -45
- data/_includes/header.html +47 -39
- data/_includes/matomo.html +17 -0
- data/_includes/nav.html +38 -51
- data/_includes/readtime.html +16 -0
- data/_includes/social-networks-links.html +267 -0
- data/_includes/social-share.html +32 -24
- data/_includes/staticman-comment.html +22 -0
- data/_includes/staticman-comments.html +83 -0
- data/_includes/utterances-comment.html +13 -0
- data/_layouts/base.html +16 -9
- data/_layouts/default.html +2 -2
- data/_layouts/home.html +88 -0
- data/_layouts/minimal.html +14 -8
- data/_layouts/page.html +3 -7
- data/_layouts/post.html +40 -16
- data/assets/css/main-minimal.css +2 -2
- data/assets/css/main.css +531 -250
- data/assets/css/pygment_highlights.css +0 -5
- data/assets/css/staticman.css +180 -0
- data/assets/img/404-southpark.jpg +0 -0
- data/assets/img/avatar-icon.png +0 -0
- data/assets/img/bgimage.png +0 -0
- data/assets/img/hello_world.jpeg +0 -0
- data/assets/img/install-steps.gif +0 -0
- data/assets/img/path.jpg +0 -0
- data/assets/img/thumb.png +0 -0
- data/assets/js/main.js +64 -103
- data/assets/js/staticman.js +54 -0
- data/{assets/feed.xml → feed.xml} +8 -4
- data/tags.html +36 -0
- metadata +57 -28
- data/_includes/navbarlink.html +0 -16
- data/_layouts/tag_index.html +0 -41
- data/assets/css/bootstrap-theme.css +0 -476
- data/assets/css/bootstrap-theme.css.map +0 -1
- data/assets/css/bootstrap-theme.min.css +0 -5
- data/assets/css/bootstrap.css +0 -6566
- data/assets/css/bootstrap.css.map +0 -1
- data/assets/css/bootstrap.min.css +0 -5
- data/assets/css/normalize.css +0 -427
- data/assets/js/bootstrap.js +0 -2306
- data/assets/js/bootstrap.min.js +0 -7
- data/assets/js/jquery-1.11.2.min.js +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1e57ead3f6675c8b935b412b81df1194a5c775e2ab1b87aca545515bb33737d8
|
4
|
+
data.tar.gz: 7c4e5d9e80552d4136bd60760f9dfee7618a9aa3d091d35be01e170bfebbe91b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95c65a7c68d2240bb29156486497f06f12f7fb76df1eddf378cbc040b68a1e79009a3066035b11b4a2dd97a05efcc5fdbf2088cc1f5f6aa2fd30c9610b86e411
|
7
|
+
data.tar.gz: ba0797eef1325be2a89ffa352aa8780c35f7c7bff267cbd23c587262833b2f40f8f988491da4838de607799a6f58768c52910848ef87b0fc79617102c824bba1
|
data/404.html
ADDED
@@ -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>
|
data/{LICENSE.txt → LICENSE}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
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
|
-
|
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
|
-
|
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
|
1
|
+
# Beautiful Jekyll
|
2
2
|
|
3
|
-
[![
|
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
|
6
|
+
> *Copyright 2020 [Dean Attali](https://deanattali.com)*
|
7
7
|
|
8
|
-
**Beautiful
|
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
|
-
**
|
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://
|
14
|
-
<img src="https://
|
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
|
+
|
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
|
-
|
22
|
+
## Table of contents
|
19
23
|
|
20
|
-
|
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
|
-
|
33
|
+
# Features
|
23
34
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
49
|
+
# Build your website in 3 steps
|
32
50
|
|
33
|
-
|
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
|
-
|
36
|
-
gem "beautiful-jekyll-theme"
|
37
|
-
```
|
53
|
+
## The easy way (recommended!)
|
38
54
|
|
39
|
-
|
55
|
+
Getting started is *literally* as easy as 1-2-3 :smile:
|
40
56
|
|
41
|
-
|
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
|
-
|
59
|
+
![Installation steps](assets/img/install-steps.gif)
|
46
60
|
|
47
|
-
|
48
|
-
$ bundle
|
49
|
-
```
|
61
|
+
### 1. Fork this project
|
50
62
|
|
51
|
-
|
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
|
-
|
65
|
+
### 2. Rename the project to `<yourusername>.github.io`
|
54
66
|
|
55
|
-
|
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
|
-
###
|
69
|
+
### 3. Customize your website settings
|
58
70
|
|
59
|
-
|
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
|
-
|
73
|
+
### 4. Congratulations! You have a website!
|
62
74
|
|
63
|
-
|
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
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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 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: '//', '/' }}">← 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 →</a>
|
134
|
-
</li>
|
135
|
-
{% endif %}
|
136
|
-
</ul>
|
137
|
-
{% endif %}
|
138
103
|
```
|
139
104
|
|
140
|
-
|
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
|
-
```
|
143
|
-
|
144
|
-
|
145
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
118
|
+
If you don't include YAML then your file will not use this template.
|
153
119
|
|
154
|
-
|
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
|
-
|
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
|
-
|
124
|
+
## Main paramaters
|
168
125
|
|
169
|
-
|
126
|
+
These are the basic YAML parameters that you are most likely to use on most pages.
|
170
127
|
|
171
|
-
|
172
|
-
|
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
|
-
|
136
|
+
## Less commonly used parameters
|
176
137
|
|
177
|
-
|
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
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
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
|
-
|
152
|
+
## Advanced parameters
|
205
153
|
|
206
|
-
|
154
|
+
These are advanced parameters that are only useful for people who need very fine control over their website.
|
207
155
|
|
208
|
-
|
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 <html> 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
|
-
|
211
|
-
rss-footer: true
|
212
|
-
```
|
166
|
+
## Page types
|
213
167
|
|
214
|
-
|
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
|
-
|
174
|
+
# Showcased users (success stories!)
|
217
175
|
|
218
|
-
|
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
|
-
|
178
|
+
## Project/company websites
|
223
179
|
|
224
|
-
|
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
|
-
|
195
|
+
## Personal websites
|
235
196
|
|
236
|
-
|
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
|
-
|
211
|
+
# FAQ and support
|
239
212
|
|
240
|
-
|
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
|
-
|
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
|
-
|
217
|
+
### What if I don't want the website to be `https://<yourusername>.github.io`?
|
247
218
|
|
248
|
-
|
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
|
-
|
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
|
-
|
223
|
+
Now your website will be at `https://<yourusername>.github.io\MyAwesomeProject`.
|
255
224
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
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
|
-
|
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
|
-
|
251
|
+
# Credits
|
275
252
|
|
276
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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.
|