The 5th iteration of ESI website. Main goals:
- Static site hosted on GitHub Pages
- Easy content creation and editing
- Pages for:
- Events
- Sponsors
- Teams
- Games
- Short Links
All easily solved and maintained by Jekyll!
Notes: Follows the example file in _drafts/1995-01-01-template.md
- Create a new file in the folder
_events/
- Name the file
<date of event>-<name of event>.md
(e.g.2016-09-01-smash-weekly.md
is the Smash Weekly on Sept 1st, 2016) - In the new file add the metadata and fill in the content:
- Leave content which is unknown or non-existent blank
--- layout: "event" title: "General Meeting" date: 2016-01-01 00:00:00 date-end: 2016-01-01 00:00:00 categories: "event" location: "Round Meeting Room" games: - "lol" tags: - "something" image-link: "/images/logos/esi/esi.png" event-link: ticket-link: rules-link: description: "This is a general meeting" --- // Event info
- Leave content which is unknown or non-existent blank
- Add event discription with links, images, text, headers, etc.
- Markdown styling (symbolized by the
.md
extension) follows the following syntax
- Markdown styling (symbolized by the
- Pre-Setup
- Are you on Linux or OSX/MacOS?
- You have a good console! Proceed.
- Optional GitHub for Desktop
- Are you on Windows?
- Download Git and GitHub for Desktop
- Git includes the amazing Git Bash console!
- Are you on Linux or OSX/MacOS?
- Clone this repository into a good folder
- Use:
git clone https://github.com/esportsinitiative/esportsinitiative.github.io.git
- NOTICE: If you installed GitHub for Desktop you could clone through that for simplicity :)
- Use:
- Proceed to either the Setup - Local or Setup - Docker instructions.
- Install Ruby:
- Are you on Linux or OSX/MacOS?
- Installing Ruby
- Are you on Windows?
- Installed with RubyInstaller
- Remember to check the box to add Ruby to your path
- Are you on Linux or OSX/MacOS?
- Install Jekyll
- Navigate to the project folder. (Command
pwd
should print something like.../esportsinitiative.github.io/
)- Navigate with the
cd
(change directory) andls
(list) commands
- Navigate with the
- Install the required gems:
bundle install
- Bring up the Jekyll site locally:
bundle exec jekyll serve
- Navigate to the site:
http://127.0.0.1:4000
NOTE: There are problems with the auto rebuilding support, at least on Windows, as such this method will be less produce when making edits. This also
- Install Docker
- Navigate to the project folder. (Command
pwd
should print something like.../esportsinitiative.github.io/
) - Either run:
- Docker:
# Replace `pwd` with $pwd` on PowerShell docker build -t esi . docker run -it --rm -v `pwd`:/srv/jekyll -p 4000:4000 esi bash jekyll serve # If the site doesn't reload between changes reload the server with # ctrl + c # jekyll serve
- Docker Compose
docker-compose up
- Docker:
- Navigate to the site:
http://127.0.0.1:4000
It helped us! May it help you!
- Jekyll
- Bootstrap
- Font Awesome Icons
- Sass Bootstrap
- Flex Boxes <3
- Jekyll Data Files
- Jekyll Collections
Building stuff:
- Use liquid in .yaml front matter (e.g. when creating posts) discussed here