Skip to content

Commit 90747c7

Browse files
authored
add note about project page vs user page
1 parent 6f40c10 commit 90747c7

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This template is built on top of [Jekyll](http://jekyllrb.com/) and can be used
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)
1717
- [Features](#features)
18+
- [Creating a User Page vs a Project Page]
1819
- [Showcased users (success stories!)](#showcased-users-success-stories)
1920
- [Advanced: local development](#advanced-local-development-using-docker)
2021
- [Credits and contributions](#credits)
@@ -81,7 +82,7 @@ subtitle: Here you'll find all the ways to get in touch with me
8182

8283
You can look at the top of [`aboutme.md`](./aboutme.md) or [`index.html`](./index.html) as more examples.
8384

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.**
85+
**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.**    
8586
If you don't include YAML then your file will not use the template.
8687

8788
## Features
@@ -138,17 +139,20 @@ css | List of local CSS files to include in the page
138139
ex-css | List of external CSS files to include in the page
139140
googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`)
140141

141-
### Setting up a Project Page (rather than a User Page)
142+
### Advanced features (including how to use a custom URL address for your site)
142143

143-
If you're not sure what the difference is, then ignore this section.
144+
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.
144145

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 `""`.
146+
## Creating a User Page vs a Project Page
146147

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/`.
148+
If you're not sure what the difference is, you can probably safely ignore this section.
148149

149-
### Advanced features (including how to use a custom URL address for your site)
150+
If you want to use this theme to host a website that will be available at `https://YOURUSERNAME.github.io`, then you do not need to read this section. That is called a User Page, you can only have one User Page in your GitHub account, and it is what you get by default when forking this project.
150151

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.
152+
If you want to use this theme to create a website for a particular repository, it will be available at `https://YOURUSERNAME.github.io/REPONAME`, and that is called a [Project Page](https://help.github.com/articles/user-organization-and-project-pages/). You can have a Project Page for each repository you have on GitHub. There are two important things to note when creating a project page:
153+
154+
1. In the configuration file (`_config.yml`), you should set `baseurl` to be `/projectname` instead of `""`.
155+
2. Project Pages are served from a branch named `gh-pages`, and you should be generating all the website content on that branch. When you fork Beautiful Jekyll, you'll already have a `gh-pages` branch but you should delete it and generate it again from the `master` branch. The reason is that the `gh-pages` branch in its current form does not have the updated code of Beautiful Jekyll, so you need to create that branch from the `master` branch (which is where all my new features and work go into).
152156

153157
## Showcased users (success stories!)
154158

0 commit comments

Comments
 (0)