OpenTwinCities / opentwincities.github.com

Main website for the Open Twin Cities group
https://www.opentwincities.org/
20 stars 16 forks source link
hacktoberfest

Build Status

opentwincities.github.com

Main website for the Open Twin Cities group

About

This site is designed to run on Github (through Github pages) with Jekyll.

Run Locally (Docker)

  1. Install Docker.
  2. Run docker compose up
  3. Go to http://localhost:4000 in your web browser.

Run Locally (Host System)

  1. Install Ruby and NodeJS
    • If you are using rbenv, do a rbenv version and rbenv install whatever rbenv version reports
  2. Install OpenSSL dev files: sudo apt-get install libssl-dev
    • If using brew to install OpenSSL
      • brew install openssl
      • echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile or echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc
      • export LDFLAGS="-L/usr/local/opt/openssl/lib"
      • export CPPFLAGS="-I/usr/local/opt/openssl/include"
  3. gem install bundler
  4. bundle install
  5. bundle exec jekyll server --watch
  6. Go to http://localhost:4000 in your web browser.

GitHub runs the close-to-newest release of Jekyll, so be sure to bundle install often.

This should watch for changes, so there is no need to restart server while working on this. Also, for reference see the Jekyll install instructions.

Editing content

The idea of Jekyll is that it compiles things into static HTML, so most of the content is handled with basic HTML or Markdown in flat files in the repository.

If you just want to update content, consider using prose.io, as it is a nice web based interface for editing text files on Github.

If you want to include some type of icon in content, consider using an icon from the Foundation Icon Fonts that are already made available to all pages on OpenTwinCities.org.

Content Types

There are three main types of content on Open Twin Cities.

Blog Posts

General articles. Updates, recaps, discussion pieices. Basically any general content.

Blog posts live in /_posts and use the blog layout. All published blog posts will appear in the post listing pages. The first paragraph of a blog post will be displayed on post listing pages as an excerpt.

Metadata Variables

Events

A special type of Post for OTC associated events.

Event posts live in /events/_posts and use the event layout. All published events will appear in post listing pages (ordered by publication date) and event listing pages (ordered by date of the event). Again, the first paragraph of a blog post will be displayed on post listing pages as an excerpt.

Metadata Variables

Everything Else

Most static content will be a Post or Event. Only special static pages should not be a Post or Event (such as the Sponsorship page). Dynamic content pages, such as post/event listing pages, also fall into this category.

All other content uses the default layout, except for the homepage, which uses the home layout.

RSS Feeds

Open Twin Cities provides a couple of RSS feeds:

Both of these RSS feeds are linked to in the Head of every page on the site.

Giants