Permalink
Browse files

Version 0.9

  • Loading branch information...
1 parent 21411d9 commit 499a8bf90467e6bac5af618dc303799b2470eb7b @georgi committed Feb 8, 2010
View
@@ -1,76 +0,0 @@
-body {
- line-height:1.5;
- font-family:"Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
- color:#000;
- background:none;
- font-size:10pt;
-}
-
-.container {
- background:none;
-}
-
-h1,h2,h3,h4,h5,h6 {
- font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;
-}
-
-code {
- font:.9em "Courier New", Monaco, Courier, monospace;
-}
-
-img {
- float:left;
- margin:1.5em 1.5em 1.5em 0;
-}
-
-a img {
- border:none;
-}
-
-p img.top {
- margin-top:0;
-}
-
-hr {
- background:#ccc;
- color:#ccc;
- width:100%;
- height:2px;
- border:none;
- margin:2em 0;
- padding:0;
-}
-
-blockquote {
- font-style:italic;
- font-size:.9em;
- margin:1.5em;
- padding:1em;
-}
-
-.small {
- font-size:.9em;
-}
-
-.large {
- font-size:1.1em;
-}
-
-.quiet {
- color:#999;
-}
-
-.hide {
- display:none;
-}
-
-a:link,a:visited {
- background:transparent;
- font-weight:700;
- text-decoration:underline;
-}
-
-a:link:after,a:visited:after {
- content:" (" attr(href) ") ";
- font-size:90%;
-}
View
@@ -1,91 +0,0 @@
-html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
-blockquote, pre, a, abbr, acronym, address, del, dfn, img,
-q, fieldset, form, label, legend, table,
-caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- font-weight: inherit;
- font-style: inherit;
- font-size: 100%;
- font-family: inherit;
- vertical-align: baseline;
-}
-
-body {
- line-height: 1.5;
- background: #fff;
- margin:0.5em 0;
- font-size: 80%;
- color: #222;
- font-family: Arial, sans-serif;
-}
-
-p {
- margin-bottom: 1em;
-}
-
-a {
- color: #444;
-}
-
-a:visited {
- color: #444;
-}
-
-h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
- text-decoration: none;
-}
-
-h1 { font-size: 2em; line-height: 1; margin-top: 1em; margin-bottom: 1em; }
-h2 { font-size: 1.5em; margin-top: 0.75em; margin-bottom: 0.75em; }
-h3 { font-size: 1.3em; line-height: 1; margin-top: 1.7em; margin-bottom: 1em; }
-h4 { font-size: 1.2em; line-height: 1.25; margin-top: 1.25em; margin-bottom: 1.25em; }
-h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
-h6 { font-size: 1em; font-weight: bold; }
-
-hr {
- height: 1px;
- color: #ccc;
-}
-
-.container {
- width: 600px;
- margin: 0 auto;
-}
-
-.article {
-}
-
-.article h2 {
- margin-top:0px;
-}
-
-.article .date {
- color: #666;
-}
-
-.article .tags a {
- color: #69c;
- text-decoration: none;
-}
-
-.comments {
- margin-bottom: 2em;
-}
-
-.comments .comment, .preview .comment {
- margin-top: 2em;
- border: 1px solid #ccc;
-}
-
-.comments .comment .top, .preview .comment .top {
- background: #F0F0F0;
- color: #333;
- padding: 3px 5px;
-}
-
-.comments .comment .body, .preview .comment .body {
- background: #F8F8F8;
- padding: 3px 5px;
-}
View
@@ -9,26 +9,23 @@ when 'init'
Shinmun::Blog.init ARGV[1]
when 'post'
- blog = Shinmun::Blog.new('.')
- post = blog.create_post(:title => ARGV[1], :date => Date.today)
- path = blog.post_file(post)
-
- `git checkout master posts`
-
- exec "#{ENV['EDITOR']} #{path}"
+ post = Shinmun::Post.new(:title => ARGV[1], :date => Date.today)
+ post.save
-when 'page'
- blog = Shinmun::Blog.new('.')
- post = blog.create_page(:title => ARGV[1])
- path = blog.post_file(post)
+ puts "Created post '#{post.path}'"
- `git checkout master pages`
+when 'page'
+ post = Shinmun::Post.new(:title => ARGV[1])
+ post.save
- exec "#{ENV['EDITOR']} #{path}"
+ puts "Created page '#{post.path}'"
else
puts "Usage:"
puts " shinmun init dir - creates a new blog"
puts " shinmun post 'Title of the post' - create a new post"
puts " shinmun page 'Title of the page' - create a new page"
+ exit
end
+
+
View
@@ -1,10 +1,11 @@
+$:.unshift '../../kontrol/lib'
+
require 'rubygems'
require 'fileutils'
require 'bluecloth'
require 'rubypants'
require 'coderay'
require 'kontrol'
-require 'git_store'
begin; require 'redcloth'; rescue LoadError; end
Oops, something went wrong. Retry.

0 comments on commit 499a8bf

Please sign in to comment.