Skip to content

Commit

Permalink
gSchool Blog
Browse files Browse the repository at this point in the history
* Middleman, Blog, Foundation
* "Blads of Steel" Theme
  • Loading branch information
Franklin Webber committed Jan 23, 2013
0 parents commit f90b121
Show file tree
Hide file tree
Showing 52 changed files with 15,529 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source :rubygems

gem "middleman"
gem "middleman-blog", "~> 3.1.1"
gem "zurb-foundation"
gem "builder"
gem "rack-contrib"
126 changes: 126 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
GEM
remote: http://rubygems.org/
specs:
activesupport (3.2.9)
i18n (~> 0.6)
multi_json (~> 1.0)
builder (3.0.4)
chunky_png (1.2.6)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.3.3)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
execjs (1.4.0)
multi_json (~> 1.0)
ffi (1.2.0)
fssm (0.2.9)
haml (3.1.7)
hike (1.2.1)
http_router (0.10.2)
rack (>= 1.0.0)
url_mount (~> 0.2.1)
i18n (0.6.1)
listen (0.5.3)
maruku (0.6.1)
syntax (>= 1.0.0)
middleman (3.0.6)
middleman-core (= 3.0.6)
middleman-more (= 3.0.6)
middleman-sprockets (~> 3.0.2)
middleman-blog (3.1.1)
maruku (~> 0.6.0)
middleman-core (~> 3.0.1)
tzinfo (~> 0.3.0)
middleman-core (3.0.6)
activesupport (~> 3.2.6)
bundler (~> 1.1)
listen (~> 0.5.2)
rack (~> 1.4.1)
rack-test (~> 0.6.1)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
thor (~> 0.15.4)
tilt (~> 1.3.1)
middleman-more (3.0.6)
coffee-script (~> 2.2.0)
coffee-script-source (~> 1.3.3)
compass (>= 0.12.2)
execjs (~> 1.4.0)
haml (>= 3.1.6)
i18n (~> 0.6.0)
maruku (~> 0.6.0)
middleman-core (= 3.0.6)
padrino-helpers (= 0.10.7)
sass (>= 3.1.20)
uglifier (~> 1.2.6)
middleman-sprockets (3.0.4)
middleman-more (~> 3.0.1)
sprockets (~> 2.1, < 2.5)
sprockets-sass (~> 0.8.0)
modular-scale (1.0.2)
compass (>= 0.11.5)
sassy-math (>= 1.2)
multi_json (1.5.0)
padrino-core (0.10.7)
activesupport (~> 3.2.0)
http_router (~> 0.10.2)
sinatra (~> 1.3.1)
thor (~> 0.15.2)
tilt (~> 1.3.0)
padrino-helpers (0.10.7)
i18n (~> 0.6)
padrino-core (= 0.10.7)
rack (1.4.1)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack-protection (1.3.2)
rack
rack-test (0.6.2)
rack (>= 1.0)
rake (10.0.0)
rb-fsevent (0.9.2)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
sass (3.2.3)
sassy-math (1.2)
compass (~> 0.11)
sinatra (1.3.3)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
sprockets (2.4.5)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-sass (0.8.0)
sprockets (~> 2.0)
tilt (~> 1.1)
syntax (1.0.0)
thor (0.15.4)
tilt (1.3.3)
tzinfo (0.3.35)
uglifier (1.2.7)
execjs (>= 0.3.0)
multi_json (~> 1.3)
url_mount (0.2.1)
rack
zurb-foundation (3.2.3)
compass (>= 0.12.2)
modular-scale (>= 1.0.2)
rake
sass (>= 3.2.0)

PLATFORMS
ruby

DEPENDENCIES
builder
middleman
middleman-blog (~> 3.1.1)
rack-contrib
zurb-foundation
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: bundle exec middleman server -p $PORT
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# gSchool Blog


## Installation

```
$ bundle install
```

## Creating an Article

```
$ middleman article "Article Title"
```

## Viewing Your Work

```
$ middleman
```

## Publishing to Heroku

```
$ heroku create --stack cedar
$ git push heroku master
```
100 changes: 100 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
###
# Compass
###

# ZURB Foundation
require "zurb-foundation"

# Change Compass configuration
# compass_config do |config|
# config.output_style = :compact
# end

###
# Page options, layouts, aliases and proxies
###

activate :blog do |blog|
# blog.prefix = "blog"
# blog.permalink = ":year/:month/:day/:title.html"
# blog.sources = ":year-:month-:day-:title.html"
# blog.taglink = "tags/:tag.html"
blog.layout = "article_layout"
blog.summary_separator = /(READMORE)/
# blog.summary_length = 250
# blog.year_link = ":year.html"
# blog.month_link = ":year/:month.html"
# blog.day_link = ":year/:month/:day.html"
# blog.default_extension = ".markdown"

blog.tag_template = "tag.html"
# blog.calendar_template = "calendar.html"

blog.paginate = true
# blog.per_page = 10
# blog.page_link = "page/:num"
end

# Per-page layout changes:
#
# With no layout
page "robots.txt", layout: false
page "humans.txt", layout: false
page "feed.xml", layout: false
page "style.html", layout: "raw"


#
# With alternative layout
# page "/path/to/file.html", :layout => :otherlayout
#
# A path which all have the same layout
# with_layout :admin do
# page "/admin/*"
# end

# Proxy (fake) files
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
# @which_fake_page = "Rendering a fake page with a variable"
# end

###
# Helpers
###

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes

# Methods defined in the helpers block are available in templates
# helpers do
# def some_helper
# "Helping"
# end
# end

set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'

# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
# activate :minify_css

# Minify Javascript on build
# activate :minify_javascript

# Enable cache buster
# activate :cache_buster

# Use relative URLs
# activate :relative_assets

# Compress PNGs after build
# First: gem install middleman-smusher
# require "middleman-smusher"
# activate :smusher

# Or use a different image path
# set :http_path, "/Content/images/"
end
1 change: 1 addition & 0 deletions data/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: gSchool Blog
11 changes: 11 additions & 0 deletions source/2012-01-01-example-article.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Example Article
date: 2012-01-01
tags: example
---

This is an example article. You probably want to delete it and write your own articles!

READMORE

I would like to share with you more details.
7 changes: 7 additions & 0 deletions source/2013-01-23-introduction.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Introduction
date: 2013-01-23 12:35 -07:00
tags:
---

I was born on the otherside of a town split in two.
23 changes: 23 additions & 0 deletions source/feed.xml.builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.title "Blog Name"
xml.subtitle "Blog subtitle"
xml.id "http://blog.url.com/"
xml.link "href" => "http://blog.url.com/"
xml.link "href" => "http://blog.url.com/feed.xml", "rel" => "self"
xml.updated blog.articles.first.date.to_time.iso8601
xml.author { xml.name "Blog Author" }

blog.articles[0..5].each do |article|
xml.entry do
xml.title article.title
xml.link "rel" => "alternate", "href" => article.url
xml.id article.url
xml.published article.date.to_time.iso8601
xml.updated article.date.to_time.iso8601
xml.author { xml.name "Article Author" }
xml.summary article.summary, "type" => "html"
xml.content article.body, "type" => "html"
end
end
end
12 changes: 12 additions & 0 deletions source/humans.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Foundation was made by ZURB, an interaction design and design strategy firm in Campbell, CA */
/* zurb.com */

/* Foundation Middleman template was made by Travis Vocino, ui/ux designer and startup guy in San Francisco, CA */
/* vocino.com */

/* humanstxt.org */

/* SITE */
Standards: HTML5, CSS3
Components: jQuery, Orbit, Reveal
Software: Coda, Textmate, Git
Binary file added source/images/foundation/orbit/bullets.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/left-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/mask-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/pause-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/right-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/rotator-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/foundation/orbit/timer-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions source/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Welcome to Middleman Foundation
pageable: true
per_page: 10
---
.row
.twelve.columns
- page_articles.each_with_index do |article, i|
.panel
%p
%h3
= link_to article.title, article
%span= article.date.strftime('%b %e')
%p= article.summary

.row
.six.columns
- if prev_page
.panel
%p
= link_to 'Previous page', prev_page

.six.columns
- if paginate
- if next_page
.panel
%p= link_to 'Next page', next_page
Loading

0 comments on commit f90b121

Please sign in to comment.