Skip to content

Commit

Permalink
simple naive mockup
Browse files Browse the repository at this point in the history
  • Loading branch information
sishen committed Feb 20, 2013
1 parent 9857af7 commit f2ae963
Show file tree
Hide file tree
Showing 25 changed files with 1,266 additions and 476 deletions.
23 changes: 12 additions & 11 deletions Gemfile
Expand Up @@ -6,24 +6,25 @@ gem "thin"
gem "rack-contrib"

gem "middleman"
gem "middleman-blog", "~> 3.1.1"
gem "middleman-livereload", :git => "git://github.com/middleman/middleman-livereload.git"
gem "middleman-smusher", :git => "git://github.com/middleman/middleman-smusher.git"
gem "middleman-smusher", :git => "git://github.com/middleman/middleman-smusher.git"
gem "middleman-syntax", :git => "git://github.com/middleman/middleman-syntax.git"
gem "middleman-favicon-maker", :git => "git://github.com/follmann/middleman-favicon-maker.git"


gem "slim"
gem "compass-rgbapng"
gem "bootstrap-sass"
gem "sassy-buttons"

# For feed.xml.builder
gem "builder", "~> 3.0.0"

gem "kramdown"
gem "pygments.rb"

# Faster JSON
gem 'oj'

group :development do
gem 'heroku'
gem 'foreman'
gem 'therubyracer'
gem 'oj'
end

group :production do
gem 'therubyracer-heroku'
gem 'oj'
end
55 changes: 25 additions & 30 deletions Gemfile.lock
Expand Up @@ -24,6 +24,14 @@ GIT
middleman (>= 3.0.0)
smusher (~> 0.4.9)

GIT
remote: git://github.com/middleman/middleman-syntax.git
revision: 3ef724daba555a5022c7435cb05c212b4c239f07
specs:
middleman-syntax (1.0.1)
middleman-core (~> 3.0)
pygments.rb (~> 0.3)

GEM
remote: http://rubygems.org/
specs:
Expand All @@ -33,6 +41,7 @@ GEM
addressable (2.3.2)
bootstrap-sass (2.2.2.0)
sass (~> 3.2)
builder (3.0.4)
chunky_png (1.2.7)
coffee-script (2.2.0)
coffee-script-source
Expand All @@ -50,7 +59,6 @@ GEM
addressable (>= 2.1.1)
eventmachine (>= 0.12.9)
eventmachine (1.0.0)
excon (0.16.10)
execjs (1.4.0)
multi_json (~> 1.0)
favicon_maker (0.0.9)
Expand All @@ -60,31 +68,25 @@ GEM
thor (>= 0.13.6)
fssm (0.2.9)
haml (3.1.7)
heroku (2.34.0)
heroku-api (~> 0.3.7)
launchy (>= 0.3.2)
netrc (~> 0.7.7)
rest-client (~> 1.6.1)
rubyzip
heroku-api (0.3.7)
excon (~> 0.16.10)
hike (1.2.1)
http_router (0.10.2)
rack (>= 1.0.0)
url_mount (~> 0.2.1)
httpclient (2.3.2)
i18n (0.6.1)
json (1.7.6)
launchy (2.1.2)
addressable (~> 2.3)
libv8 (3.11.8.13)
kramdown (0.14.2)
listen (0.5.3)
maruku (0.6.1)
syntax (>= 1.0.0)
middleman (3.0.9)
middleman-core (= 3.0.9)
middleman-more (= 3.0.9)
middleman-sprockets (~> 3.0.6)
middleman-blog (3.1.1)
maruku (~> 0.6.0)
middleman-core (~> 3.0.1)
tzinfo (~> 0.3.0)
middleman-core (3.0.9)
activesupport (~> 3.2.6)
bundler (~> 1.1)
Expand All @@ -111,11 +113,9 @@ GEM
middleman-more (>= 3.0.1)
sprockets (~> 2.1, < 2.5)
sprockets-sass (~> 0.9.0)
mime-types (1.19)
mini_magick (3.4)
subexec (~> 0.2.1)
multi_json (1.5.0)
netrc (0.7.7)
oj (2.0.0)
padrino-core (0.10.7)
activesupport (~> 3.2.0)
Expand All @@ -126,6 +126,10 @@ GEM
padrino-helpers (0.10.7)
i18n (~> 0.6)
padrino-core (= 0.10.7)
posix-spawn (0.3.6)
pygments.rb (0.3.7)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0)
rack (1.4.1)
rack-contrib (1.1.0)
rack (>= 0.9.1)
Expand All @@ -139,10 +143,6 @@ GEM
rb-fsevent (0.9.3)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
ref (1.0.2)
rest-client (1.6.7)
mime-types (>= 1.16)
rubyzip (0.9.9)
sass (3.2.5)
sassy-buttons (0.1.4)
compass (>= 0.12.2)
Expand All @@ -151,9 +151,6 @@ GEM
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
slim (1.3.6)
temple (~> 0.5.5)
tilt (~> 1.3.3)
smusher (0.4.9)
httpclient (>= 2.2)
json
Expand All @@ -168,39 +165,37 @@ GEM
tilt (~> 1.1)
subexec (0.2.2)
syntax (1.0.0)
temple (0.5.5)
therubyracer (0.11.2)
libv8 (~> 3.11.8.12)
ref
therubyracer-heroku (0.8.1.pre3)
thin (1.5.0)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 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
yajl-ruby (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
bootstrap-sass
builder (~> 3.0.0)
compass-rgbapng
foreman
heroku
kramdown
middleman
middleman-blog (~> 3.1.1)
middleman-favicon-maker!
middleman-livereload!
middleman-smusher!
middleman-syntax!
oj
pygments.rb
rack-contrib
sassy-buttons
slim
therubyracer
therubyracer-heroku
thin
39 changes: 3 additions & 36 deletions README.md
@@ -1,37 +1,4 @@
# [Middleman](http://middlemanapp.com/) & [Twitter Bootstrap](http://twitter.github.com/bootstrap/)
teahour.fm
==========

## A simple Middleman starting point

demo:

[http://middleman-bootstrap.herokuapp.com/](http://middleman-bootstrap.herokuapp.com/)

supports:

* [Slim](http://slim-lang.com/)
* [CoffeeScript](http://coffeescript.org/)
* [Sass](http://sass-lang.com/)
* [Compass](http://compass-style.org/)
* [TwitterBootstrap](http://twitter.github.com/bootstrap/)
* [jQuery](http://jquery.com/)
* [Modernizr](http://modernizr.com/)
* [FontAwesome](http://fortawesome.github.com/Font-Awesome/)

install:


```
$ git clone git://github.com/fujimogn/middleman-bootstrap.git #{APP_DIR} && cd #{APP_DIR}
( $ gem install bundle --pre )
$ bundle install --without production
$ bower install
```

deploy:

```
$ heroku create middleman-bootstrap --stack cedar
$ git add .
$ git commit -m "first commit"
$ git push heroku master
```
Chinese Podcast focusing on programming, entrepreneurship and other geeky topics.
51 changes: 39 additions & 12 deletions config.rb
@@ -1,3 +1,32 @@
###
# Blog settings
###

Time.zone = "Beijing"

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 = "layouts/podcast"
# 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

page "/feed.xml", :layout => false

###
# Compass
###
Expand Down Expand Up @@ -49,27 +78,27 @@
# end
# end

# Slim configuration
set :slim, {
:format => :html5,
:attr_wrapper => '"',
:indent => ' ',
:pretty => true,
:sort_attrs => false
}
#activate :syntax

# Methods defined in the helpers block are available in templates
helpers do
def disqus_identifier(podcast)
podcast.data["disqus_identifier"] || podcast.title.parameterize
end
end

# Assets PATH
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'

set :markdown_engine, :kramdown
#set :markdown, fenced_code_blocks: true, autolink: true, smartypants: true

# Livereload
# use: https://github.com/middleman/middleman-livereload
activate :livereload



# Build-specific configuration
configure :build do

Expand Down Expand Up @@ -101,5 +130,3 @@
activate :gzip

end


1 change: 0 additions & 1 deletion config.ru
Expand Up @@ -34,4 +34,3 @@ run lambda{ |env|
[ 404, { 'Content-Type' => 'text/html' }, ['File not found!'] ]
end
}

15 changes: 8 additions & 7 deletions data/site.yml
@@ -1,10 +1,11 @@
lang: en
title: Middleman Site
description: description here.
lang: zh
title: Teahour.fm
description: The chinese tech podcast focusing on programming, entrepreneurship and other geeky topics.
keywords:
- keyword1
- keyword2
- keyword3
author: author name
- chinese tech podcast
- web design and development
- mobile design and development
- startup, entrepreneurship
author: Dingding Ye

google_analytics_id: UA-30635535-2
39 changes: 39 additions & 0 deletions source/2013-01-19-1st_beginning.html.markdown
@@ -0,0 +1,39 @@
---
title: "The beginning of Teahour.fm show"
date: 2013-01-19 23:00 +08:00
tags: ruby, ruby community, railscasts china, ruby china, javascript mvc
mp3_link: http://screencasts.b0.upaiyun.com/podcasts/nil_podcast_1.m4a
duration: 1:59:27
host: Terry Tai
---

迈出了第一步,由 [Terry Tai](http://terrytai.com) 主持,参与嘉宾有 [Daneil Lv](http://lvguoning.com)[Dingding Ye](http://yedingding.com)。三位 Teahour.fm 的主持人讨论了自己经常听的 podcasts 和国内 Ruby/Rails 社区的现状和发展,包括 [Ruby China](http://ruby-china.org)[RailsCasts China](http://railscasts-china.org)。之后是技术话题,讨论了自己使用过的各种 Javascript 框架。

<h6>
<a href="#" class="toggle-notes">Show Notes</a>
</h6>

<section class="notes" markdown="1">
* [Grammar Girl](http://grammar.quickanddirtytips.com/)
* [The public speaker](http://publicspeaker.quickanddirtytips.com/)
* [Tiny4Voice](https://itunes.apple.com/cn/podcast/tiny4voice)
* [This American Life](http://www.thisamericanlife.org/)
* [The Change Log](http://thechangelog.com/)
* [5by5](http://5by5.tv/)
* [Back to Work](http://5by5.tv/b2w)
* [ESL](http://www.eslpod.com/)
* [Mixergy](http://mixergy.com/)
* [Pragmatic.ly](https://pragmatic.ly)
* [Intridea](http://intridea.com)
* [Spine.js](http://spinejs.com/)
* [Backbone.js](http://backbonejs.org/)
* [Ember.js](http://emberjs.com/)
* [Angular.js](http://angularjs.org/)
* [Meteor](http://meteor.com/)
* [pomo](https://github.com/visionmedia/pomo)
* [Crush It](http://crushitbook.com/)
* [Throne of JS Content on InfoQ](http://www.infoq.com/throne_of_js/)
* [THRONE OF JS](http://throneofjs.com/)
* [RubyMotion](http://www.rubymotion.com/)
* [Aaron Swartz](http://en.wikipedia.org/wiki/Aaron_Swartz)
</section>

0 comments on commit f2ae963

Please sign in to comment.