Skip to content

avikde/pennea.github.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Setup and usage ##Install ruby Linux, Mac, Windows...

##Install bundler From the command line (aka Terminal or shell): gem install bundler

##Clone the repo Then make a directory for the site repository, navigate to it in the command line, and clone the repo to your computer:

cd location/to/hold/repo
git clone https://github.com/tobanw/lagom.git

The cloning url is always listed on GitHub.

##Install Jekyll and its dependencies From the repository directory, simply run bundle install This command will use Gemfile (in the repository) to generate the Gemfile.lock and install the dependencies specified therein.

Basic local usage

To launch a local webserver that will build and show the site, as well as watch for any changes, run this from the command line:

cd path/to/pennea-repo
bundle exec jekyll serve

Leave that terminal window running (you can see it rebuilding the site every time you edit a file) and point your browser to http://localhost:4000.

Note: Jekyll will not automatically track changes to _config.yml, so if you modify that file, you need to shut down the server (Ctrl+C) and relaunch it.

Publishing to the web

Just push your changes to the github repo and github will do the rest.

Adding content

You can (and should) look at existing instances to see how to add content. Here's an outline to get started:

Blog posts

A blog post is simply a markdown file in the _posts/ folder that is categorized as a blog in the metadata. To add a post, create a markdown file with the appropriate filename format (YYYY-MM-DD-name-of-post.md) and fill in the post metadata as follows, being sure to include blog under categories:

---
layout: post
title:  "Name of post"
date:   2015-07-29 23:31:00
categories: blog
---

Then add your content (written in markdown).

Events

Events are just posts with different metadata: the categories should include event and the fields guest and location should be added. The date field should be the event start time. For example:

---
layout: post
guest:  "Guest name"
title: "Name of event"
date:   2015-08-15 18:30:00
location: "Building, Room number<br>Street address"
categories: event
---

Pages

Pages such as about are simply markdown files in the root directory of the repo. The permalink field can be used to specify the url of the page.

Tips and tricks

  • 'for loops' go in reverse filename order, so posts --- which are named by date --- get displayed newest first

Quirks

  • github appears to only regenerate the site if there are changes in the repo --- as such, things like the event sidebar which only shows upcoming events won't update, which could result in past events showing up

About

jekyll site for Penn Effective Altruism

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 58.9%
  • HTML 33.0%
  • Ruby 8.1%