Skip to content

Commit 641392e

Browse files
committed
first commit
0 parents  commit 641392e

25 files changed

+700
-0
lines changed

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'middleman'
4+
gem 'middleman-blog'
5+
6+
gem 'builder'
7+
gem 'slim'

Gemfile.lock

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (3.2.12)
5+
i18n (~> 0.6)
6+
multi_json (~> 1.0)
7+
builder (3.0.4)
8+
chunky_png (1.2.8)
9+
coffee-script (2.2.0)
10+
coffee-script-source
11+
execjs
12+
coffee-script-source (1.6.3)
13+
compass (0.12.2)
14+
chunky_png (~> 1.2)
15+
fssm (>= 0.2.7)
16+
sass (~> 3.1)
17+
execjs (1.4.0)
18+
multi_json (~> 1.0)
19+
ffi (1.9.0)
20+
fssm (0.2.10)
21+
haml (4.0.3)
22+
tilt
23+
hike (1.2.3)
24+
i18n (0.6.4)
25+
kramdown (1.0.2)
26+
listen (1.2.2)
27+
rb-fsevent (>= 0.9.3)
28+
rb-inotify (>= 0.9)
29+
rb-kqueue (>= 0.2)
30+
maruku (0.6.1)
31+
syntax (>= 1.0.0)
32+
middleman (3.1.3)
33+
coffee-script (~> 2.2.0)
34+
compass (>= 0.12.2)
35+
execjs (~> 1.4.0)
36+
haml (>= 3.1.6)
37+
kramdown (~> 1.0.0)
38+
middleman-core (= 3.1.3)
39+
middleman-more (= 3.1.3)
40+
middleman-sprockets (>= 3.1.2)
41+
sass (>= 3.1.20)
42+
uglifier (~> 2.1.0)
43+
middleman-blog (3.2.0)
44+
maruku (~> 0.6.0)
45+
middleman-core (~> 3.0)
46+
tzinfo (~> 0.3.0)
47+
middleman-core (3.1.3)
48+
activesupport (~> 3.2.6)
49+
bundler (~> 1.1)
50+
i18n (~> 0.6.1)
51+
listen (~> 1.2.2)
52+
rack (>= 1.4.5)
53+
rack-test (~> 0.6.1)
54+
thor (>= 0.15.2, < 2.0)
55+
tilt (~> 1.3.6)
56+
middleman-more (3.1.3)
57+
middleman-sprockets (3.1.2)
58+
middleman-core (>= 3.0.14)
59+
middleman-more (>= 3.0.14)
60+
sprockets (~> 2.1)
61+
sprockets-helpers (~> 1.0.0)
62+
sprockets-sass (~> 1.0.0)
63+
multi_json (1.7.7)
64+
rack (1.5.2)
65+
rack-test (0.6.2)
66+
rack (>= 1.0)
67+
rb-fsevent (0.9.3)
68+
rb-inotify (0.9.0)
69+
ffi (>= 0.5.0)
70+
rb-kqueue (0.2.0)
71+
ffi (>= 0.5.0)
72+
sass (3.2.9)
73+
slim (1.2.2)
74+
temple (~> 0.4.0)
75+
tilt (~> 1.3.3)
76+
sprockets (2.10.0)
77+
hike (~> 1.2)
78+
multi_json (~> 1.0)
79+
rack (~> 1.0)
80+
tilt (~> 1.1, != 1.3.0)
81+
sprockets-helpers (1.0.1)
82+
sprockets (~> 2.0)
83+
sprockets-sass (1.0.1)
84+
sprockets (~> 2.0)
85+
tilt (~> 1.1)
86+
syntax (1.0.0)
87+
temple (0.4.0)
88+
thor (0.18.1)
89+
tilt (1.3.7)
90+
tzinfo (0.3.37)
91+
uglifier (2.1.2)
92+
execjs (>= 0.3.0)
93+
multi_json (~> 1.0, >= 1.0.2)
94+
95+
PLATFORMS
96+
ruby
97+
98+
DEPENDENCIES
99+
builder
100+
middleman
101+
middleman-blog
102+
slim

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 K-2052
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# What is this?
2+
3+
This is the source for [notes.OneAppOneBookOneMonth.com](http://notes.OneAppOneBookOneMonth.com).
4+
It uses slightly modified port of the [Scribble Theme](http://github.com/k2052/scribble.theme.middleman-blog)
5+
6+
Feel free to re-use anything just make sure you change the logo.

config.rb

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Require slim
2+
require 'slim'
3+
set :slim, :pretty => true
4+
5+
# Enable pretty URLS
6+
activate :directory_indexes
7+
8+
###
9+
# Blog settings
10+
###
11+
activate :blog do |blog|
12+
blog.sources = "/posts/:year-:month-:day-:title.html"
13+
blog.layout = 'article'
14+
end
15+
16+
###
17+
# Pages
18+
#333
19+
page "/feed.xml", :layout => false
20+
page "/about.html", :layout => 'page'
21+
22+
set :css_dir, 'stylesheets'
23+
set :js_dir, 'javascripts'
24+
set :images_dir, 'images'
25+
26+
###
27+
# Build-specific configuration
28+
###
29+
configure :build do
30+
# For example, change the Compass output style for deployment
31+
# activate :minify_css
32+
33+
# Minify Javascript on build
34+
# activate :minify_javascript
35+
36+
# Enable cache buster
37+
# activate :cache_buster
38+
39+
# Use relative URLs
40+
# activate :relative_assets
41+
42+
# Compress PNGs after build
43+
# First: gem install middleman-smusher
44+
# require "middleman-smusher"
45+
# activate :smusher
46+
47+
# Or use a different image path
48+
# set :http_path, "/Content/images/"
49+
end

data/site.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
title: I'm writing a book and an app in one month. These are my notes.
2+
url: http://notes.OneAppOneBookOneMonth.com
3+
author: K-2052
4+
google_analytics: # set tracking, remove from /includes/_ga.slim if unwanted.
5+
share: true
6+
7+
links:
8+
- name: About
9+
url: http://OneAppOneBookOneMonth.com
10+
external: true
11+
- name: Comment
12+
url: mailto:[email protected]
13+
external: true
14+
- name: RSS
15+
url: /feed.xml

source/404.slim

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
html
2+
head
3+
meta content='Scribble' property='og:title'
4+
title Scribble
5+
link href='/images/fav.png' rel='shortcut icon'
6+
link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'
7+
8+
link href='/stylesheets/style.css' rel='stylesheet' type='text/css'
9+
10+
meta content='width=device-width, initial-scale=1.0, user-scalable=no' name='viewport'
11+
meta content='text/html; charset=utf-8' http-equiv='content-type'
12+
meta content="/images/og.png" property="og:image"
13+
meta content="A jekyll theme. Because I scribble." property='og:description'
14+
meta content="blog" property="og:type"
15+
body
16+
.center
17+
img src="/images/404.png" alt="not found" width="160"
18+
p
19+
a href="/" class="main" target="_top" Back

source/_article.slim

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
article.content
2+
section.post
3+
h1.upcase
4+
.date ==article.date.to_s
5+
== article.title
6+
7+
.body== article.body
8+
9+
.signoff== partial 'includes/signoff', {:locals =>{:article => article}}
10+
11+
- if data['share']
12+
== partial 'includes/share'

source/feed.xml.builder

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
xml.instruct!
2+
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
3+
xml.title data['site'].title
4+
xml.id data['site'].url
5+
xml.link "href" => data['site'].url
6+
xml.link "href" => "#{data['site'].url}/feed.xml", "rel" => "self"
7+
xml.updated blog.articles.first.date.to_time.iso8601
8+
xml.author { xml.name data['site'].author }
9+
10+
blog.articles[0..5].each do |article|
11+
xml.entry do
12+
xml.title article.title
13+
xml.link "rel" => "alternate", "href" => article.url
14+
xml.id article.url
15+
xml.published article.date.to_time.iso8601
16+
xml.updated article.date.to_time.iso8601
17+
xml.author { xml.name "Article Author" }
18+
# xml.summary article.summary, "type" => "html"
19+
xml.content article.body, "type" => "html"
20+
end
21+
end
22+
end

source/images/404.png

29.7 KB
Loading

0 commit comments

Comments
 (0)