Skip to content

Commit 83c6cbd

Browse files
authored
Update README.md
1 parent fbaec18 commit 83c6cbd

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

README.md

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ This template is built on top of [Jekyll](http://jekyllrb.com/) and can be used
1414
- [Build your website in 3 steps](#build-your-website-in-3-steps)
1515
- [Add your own content](#add-your-own-content)
1616
- [Last important thing: YAML front matter ("parameters" for a page)](#last-important-thing-yaml-front-matter-parameters-for-a-page)
17-
- [Basic features](#basic-features)
18-
- [Advanced features](#advanced-features-including-how-to-use-a-custom-url-address-for-your-site)
19-
- [Featured users (success stories!)](#featured-users-success-stories)
20-
- [Very advanced: local development](#very-advanced-local-development)
21-
- [Credits](#credits)
22-
- [Contributions](#contributions)
23-
- [Known limitations](#known-limitations)
17+
- [Features](#features)
18+
- [Showcased users (success stories!)](#showcased-users-success-stories)
19+
- [Advanced: local development](#advanced-local-development)
20+
- [Credits and contributions](#credits)
2421

2522
## Prerequisites
2623

@@ -54,7 +51,7 @@ You can now visit your shiny new website, which will be seeded with several samp
5451

5552
**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 :)**
5653

57-
### Add your own content
54+
## Add your own content
5855

5956
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!
6057

@@ -64,7 +61,7 @@ Any file that you add inside the [`_posts`](./_posts) directory will be treated
6461

6562
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.
6663

67-
### Last important thing: YAML front matter ("parameters" for a page)
64+
## Last important thing: YAML front matter ("parameters" for a page)
6865

6966
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:
7067

@@ -87,37 +84,41 @@ You can look at the top of [`aboutme.md`](./aboutme.md) or [`index.html`](./inde
8784
**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.**
8885
If you don't include YAML then your file will not use the template.
8986

90-
## Basic Features
87+
## Features
9188

92-
#### Mobile-first
89+
### Mobile-first
9390
**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.
9491

95-
#### Personalization
92+
### Customizable
9693

9794
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.
9895

99-
#### Allowing users to leave comments
96+
### Allowing users to leave comments
10097

10198
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`.
10299

103100
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.
104101

105-
#### Adding Google Analytics to track page views
102+
### Adding Google Analytics to track page views
106103

107104
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`.
108105

109-
#### Sharing blog posts on social media
106+
### Sharing blog posts on social media
110107

111108
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.
112109

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
114115

115116
- **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.
116117
- **page** - Any page outside the `_posts` folder that uses YAML front matter will have a very similar style to blog posts.
117118
- **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.
118119
- 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!
119120

120-
#### YAML front matter parameters
121+
### YAML front matter parameters
121122

122123
These are the main parameters you can place inside a page's YAML front matter that **Beautiful Jekyll** supports.
123124

@@ -137,31 +138,25 @@ css | List of local CSS files to include in the page
137138
ex-css | List of external CSS files to include in the page
138139
googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
139140

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)
145142

146143
If you're not sure what the difference is, then ignore this section.
147144

148145
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 `""`.
149146

150147
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/`.
151148

152-
---
153-
154149
### Advanced features (including how to use a custom URL address for your site)
155150

156151
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.
157152

158-
### Featured users (success stories!)
153+
## Showcased users (success stories!)
159154

160155
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.
161156

162157
Want your website featured here? [Contact me](http://deanattali.com/aboutme#contact) to let me know about your website.
163158

164-
#### Project/company websites
159+
### Project/company websites
165160

166161
| Website | Description |
167162
| :------ |:----------- |
@@ -175,7 +170,7 @@ Want your website featured here? [Contact me](http://deanattali.com/aboutme#cont
175170
| [ja2-stracciatella.github.io](http://ja2-stracciatella.github.io) | Jagged Alliance 2 Stracciatella |
176171
| [PatientOutcomeFunding.org](http://www.patientoutcomefunding.org/) | Patient Outcome Funding |
177172

178-
#### Personal websites
173+
### Personal websites
179174

180175
| Website | Who | What |
181176
| :------ |:--- | :--- |
@@ -191,7 +186,7 @@ Want your website featured here? [Contact me](http://deanattali.com/aboutme#cont
191186
| [otomatikmuhendis.com](http://otomatikmuhendis.com/) | Olcay Bayram | Software engineer |
192187

193188

194-
### Very advanced: Local development using Docker
189+
## Avanced: Local development using Docker
195190

196191
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:
197192

@@ -209,22 +204,22 @@ Disclaimer: I personally am NOT using local development so I don't know much abo
209204
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.
210205
211206
212-
### Credits
207+
## Credits
213208
214209
This template was not made entirely from scratch. I would like to give special thanks to:
215210
- [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.
216211
- [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.
217212
218213
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.
219214
220-
### Contributions
215+
## Contributions
221216
222217
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!
223218
224219
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).
225220
226221
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 :)
227222
228-
### Known limitations
223+
## Known limitations
229224
230225
- 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

Comments
 (0)