You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Advanced: local development](#advanced-local-development)
20
+
-[Credits and contributions](#credits)
24
21
25
22
## Prerequisites
26
23
@@ -54,7 +51,7 @@ You can now visit your shiny new website, which will be seeded with several samp
54
51
55
52
**Note:** The video above goes through the setup for a user with username `daattalitest`. I only edited one setting in the `_config.yml` file in the video, but **you should actually go through the rest of the settings as well. Don't be lazy, go through all the settings :)**
56
53
57
-
###Add your own content
54
+
## Add your own content
58
55
59
56
To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file directly. It is much easier to write markdown than HTML, so I suggest you do that (use the [tutorial I mentioned above](http://markdowntutorial.com/) if you need to learn markdown). 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 is a word in bold, a link, bullet points), and if you click on the pencil icon to edit the file, you will see the markdown that generated the pretty text. Very easy!
60
57
@@ -64,7 +61,7 @@ Any file that you add inside the [`_posts`](./_posts) directory will be treated
64
61
65
62
As mentioned previously, you can use [prose.io](http://prose.io/) to add or edit files instead of doing it directly on GitHub, it can be a little easier that way.
66
63
67
-
###Last important thing: YAML front matter ("parameters" for a page)
64
+
## Last important thing: YAML front matter ("parameters" for a page)
68
65
69
66
In order to have your new pages use this template and not just be plain pages, you need to add [YAML front matter](http://jekyllrb.com/docs/frontmatter/) to the top of each page. This is where you'll give each page some parameters that I made available, such as a title and subtitle. I'll go into more detail about what parameters are available later. If you don't want to use any parameters on your new page (this also means having no title), then use the empty YAML front matter:
70
67
@@ -87,37 +84,41 @@ You can look at the top of [`aboutme.md`](./aboutme.md) or [`index.html`](./inde
87
84
**Important takeaway: ALWAYS add the YAML front matter to EVERY page, which is two lines with three dashes. If you have any parameters, they go between the two lines.**
88
85
If you don't include YAML then your file will not use the template.
89
86
90
-
## Basic Features
87
+
## Features
91
88
92
-
####Mobile-first
89
+
### Mobile-first
93
90
**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.
94
91
95
-
#### Personalization
92
+
###Customizable
96
93
97
94
Many personalization settings in `_config.yml`, such as setting your name and site's description, 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.
98
95
99
-
####Allowing users to leave comments
96
+
### Allowing users to leave comments
100
97
101
98
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 to the `disqus` parameter in the `_config.yml`.
102
99
103
100
If the `disqus` parameter is 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.
104
101
105
-
####Adding Google Analytics to track page views
102
+
### Adding Google Analytics to track page views
106
103
107
104
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](http://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `google_analytics` parameter in `_config.yml`.
108
105
109
-
####Sharing blog posts on social media
106
+
### Sharing blog posts on social media
110
107
111
108
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.
112
109
113
-
#### Page types
110
+
### RSS feed
111
+
112
+
Beautiful Jekyll automatically generates a simple RSS feed of your blog posts, to allow others to subscribe to your posts. If you want to add a link to your RSS feed in the footer of every page, find the `rss: false` line in `_config.yml` and change it to `rss: true`.
113
+
114
+
### Page types
114
115
115
116
-**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.
116
117
-**page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
117
118
-**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.
118
119
- 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!
119
120
120
-
####YAML front matter parameters
121
+
### YAML front matter parameters
121
122
122
123
These are the main parameters you can place inside a page's YAML front matter that **Beautiful Jekyll** supports.
123
124
@@ -137,31 +138,25 @@ css | List of local CSS files to include in the page
137
138
ex-css | List of external CSS files to include in the page
138
139
googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
139
140
140
-
### RSS feed
141
-
142
-
Beautiful Jekyll automatically generates a simple RSS feed of your blog posts, to allow others to subscribe to your posts. If you want to add a link to your RSS feed in the footer of every page, find the `rss: false` line in `_config.yml` and change it to `rss: true`.
143
-
144
-
### GitHub Project page vs user page
141
+
### Setting up a Project Page (rather than a User Page)
145
142
146
143
If you're not sure what the difference is, then ignore this section.
147
144
148
145
If you want to use this theme for a project page for a specific repository instead of your main GitHub user page, that's no problem. The demo for this site ([daattali.github.io/beautiful-jekyll](http://deanattali.com/beautiful-jekyll)) is actually set up as a project page while my personal site ([daattali.github.io](http://deanattali.com)) is a regular user page. The only difference is that in the `_config.yml`, you should set `baseurl` to be `/projectname` instead of `""`.
149
146
150
147
To set up a GitHub Project page, simply fork this repository into a branch called `gh-pages` in your repository. Whatever is under the `gh-pages` branch will be served by Jekyll. Your site will be at `http://username.github.io/projectname/`.
151
148
152
-
---
153
-
154
149
### Advanced features (including how to use a custom URL address for your site)
155
150
156
151
I wrote [a blog post](http://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.
157
152
158
-
### Featured users (success stories!)
153
+
##Showcased users (success stories!)
159
154
160
155
To my huge surprise, Beautiful Jekyll has been used in over 500 websites in its first 6 months alone! Here is a hand-picked selection of some websites that use Beautiful Jekyll.
161
156
162
157
Want your website featured here? [Contact me](http://deanattali.com/aboutme#contact) to let me know about your website.
163
158
164
-
####Project/company websites
159
+
### Project/company websites
165
160
166
161
| Website | Description |
167
162
| :------ |:----------- |
@@ -175,7 +170,7 @@ Want your website featured here? [Contact me](http://deanattali.com/aboutme#cont
@@ -191,7 +186,7 @@ Want your website featured here? [Contact me](http://deanattali.com/aboutme#cont
191
186
|[otomatikmuhendis.com](http://otomatikmuhendis.com/)| Olcay Bayram | Software engineer |
192
187
193
188
194
-
### Very advanced: Local development using Docker
189
+
##Avanced: Local development using Docker
195
190
196
191
Beautiful Jekyll is meant to be so simple to use that you can do it all within the browser. However, if you'd like to develop locally on your own machine, that's possible too if you're comfortable with command line. Follow these simple steps to do that with Docker:
197
192
@@ -209,22 +204,22 @@ Disclaimer: I personally am NOT using local development so I don't know much abo
209
204
Aditionally, if you choose to deploy Jekyll using a local ruby installation, you can tell Jekyll to automatically categorize your blog posts by tags. You just need to set `link-tags: true` in `_config.yml`. Jekyll will then generate a new page for each unique tag which lists all of the posts that belong to that tag.
210
205
211
206
212
-
### Credits
207
+
## Credits
213
208
214
209
This template was not made entirely from scratch. I would like to give special thanks to:
215
210
- [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.
216
211
- [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.
217
212
218
213
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.
219
214
220
-
### Contributions
215
+
## Contributions
221
216
222
217
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!
223
218
224
219
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).
225
220
226
221
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 :)
227
222
228
-
### Known limitations
223
+
## Known limitations
229
224
230
225
- If you have a project page and you want a custom 404 page, you must have a custom domain. See https://help.github.com/articles/custom-404-pages/. This means that if you have a regular User Page you can use the 404 page from this theme, but if it's a website for a specific repository, the 404 page will not be used.
0 commit comments