forked from MLH/mlh-hackathon-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request MLH#19 from dtemir/fix-stylesheet-reference
Fix stylesheet reference
- Loading branch information
Showing
8 changed files
with
44 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
_site | ||
.sass-cache | ||
.jekyll-metadata | ||
.jekyll-cache | ||
node_modules/ | ||
.DS_Store | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.2.4 | ||
2.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
ruby "2.2.4" | ||
ruby "2.7.0" | ||
|
||
gem "jekyll" | ||
gem "jekyll-watch" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,19 +17,32 @@ Advantages: | |
|
||
## Getting Started | ||
|
||
1. Create a [GitHub][create-account] account if you haven't already. | ||
2. Fork this repository to your own account. [Click here to fork this repo][fork-repo]. | ||
3. Edit [`_config.yml`][config] to configure for your own hackathon website. | ||
1. Create a [GitHub][create-account] account if you haven't already | ||
2. Fork this repository to your own account. [Click here to fork this repo][fork-repo] | ||
3. Edit [`_config.yml`][config] to configure for your own hackathon website | ||
4. That's it - you should be able to access at `https://[github username].github.io/mlh-hackathon-boilerplate/` | ||
|
||
[create-account]: https://github.com/join | ||
[fork-repo]: https://github.com/MLH/mlh-hackathon-boilerplate/fork | ||
|
||
### Run Locally | ||
|
||
If you would like to populate and test the website locally, follow these steps: | ||
|
||
1. Install Jekyll prerequisites by following one of the [guides][jekyll-guides] | ||
2. Install Jekyll and bundler gems `gem install jekyll bundler` | ||
3. Build and serve the site locally `bundle exec jekyll serve` | ||
4. Head over to [http://localhost:4000/][localhost] | ||
5. Make sure everything looks good | ||
|
||
[jekyll-guides]: https://jekyllrb.com/docs/installation/ | ||
[localhost]: http://localhost:4000/ | ||
|
||
### Setting up a custom domain | ||
|
||
Want to configure for your own custom domain? Great! Through our excellent partners [Domain.com][domain-com], Major League Hacking is offering free domains to student hackathon organizers. Reach out to [[email protected]][email-mlh] to obtain your free coupon code. | ||
|
||
1. Register your domain. | ||
1. Register your domain | ||
2. Update the domain `www` to `CNAME [github username].github.io` | ||
3. Update the domain `@` to `A 192.30.252.153` and `A 192.30.252.154` | ||
4. Update the `CNAME` in your GitHub fork of `mlh-hackathon-boilerplate` to your new domain (i.e. `examplehacks.com`) | ||
|
@@ -42,14 +55,18 @@ Want to configure for your own custom domain? Great! Through our excellent partn | |
|
||
### Setting up SSL | ||
|
||
We'd highly recommend looking into [Cloudflare][cloudflare] for SSL with your domain. It's compatible with [GitHub Pages][github-pages] and this project. | ||
GitHub Pages now provides you with an option to Enforce HTTPS which will create an SSL certificate for you. All you need is to select the Enforce HTTPS checkmark when setting up custom domain in the step above. | ||
|
||
Give the process some time, but if it has not completed after several minutes, click **Remove** next to your domain name, retype the domain name, and then click **Save**. This will restart the SSL issuing process. | ||
|
||
If you setup HTTPS correctly, make sure you do not refernece HTTP anywhere on your website. Servinig [mixed][mixed] content will make your website less secure. | ||
|
||
[cloudflare]: https://cloudflare.com | ||
[mixed]: https://docs.github.com/en/pages/getting-started-with-github-pages/securing-your-github-pages-site-with-https#resolving-problems-with-mixed-content | ||
|
||
## Contributing | ||
|
||
Our boilerplate is written entirely in [Jekyll][jekyll], which GitHub automatically compiles. This dramatically reduces the technical barrier needed to setup a hackathon website. We'd love to receive your contributions towards making this even better. A couple of things to note: | ||
|
||
- We can't accept custom plugins because it's not supported by [GitHub Pages][github-pages]. | ||
- If adding any external images or components, please ensure you have the correct permission to use them. | ||
- We advise creating a GitHub issue first explaining the issue. | ||
- We can't accept custom plugins because it's not supported by [GitHub Pages][github-pages] | ||
- If adding any external images or components, please ensure you have the correct permission to use them | ||
- We advise creating a GitHub issue first explaining the issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.