bloggy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +3 -3
- data/lib/bloggy/version.rb +1 -1
- data/lib/generators/jekyll/blog/USAGE +1 -0
- data/lib/generators/jekyll/blog/blog_generator.rb +5 -4
- data/lib/generators/jekyll/blog/templates/config/jekyll/css/{screen.css → screen.css.tt} +0 -0
- data/lib/generators/jekyll/blog/templates/config/jekyll/css/{syntax.css → syntax.css.tt} +0 -0
- data/lib/generators/jekyll/blog/templates/{config/jekyll/tasks/gen.rake → tasks/gen.rake.tt} +0 -0
- data/lib/generators/jekyll/blog/templates/{config/jekyll/tasks/new_post.rake → tasks/new_post.rake.tt} +0 -0
- metadata +6 -9
- data/lib/.DS_Store +0 -0
- data/lib/generators/jekyll/.DS_Store +0 -0
- data/lib/generators/jekyll/blog/templates/.DS_Store +0 -0
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -22,11 +22,11 @@ All config elements you are used to in your jekyll blog are still present (and t
|
|
22
22
|
|
23
23
|
Once you run
|
24
24
|
|
25
|
-
$ rails g jekyll:blog
|
25
|
+
$ rails g jekyll:blog
|
26
26
|
|
27
|
-
you will find the
|
27
|
+
you will find the file structure you are used to seeing for creating blog posts, editing default layout etc. inside of the config/jekyll directory. There you can add add the same commands you would from a normal jekyll installation (they are provided at the <a href="https://github.com/mojombo/jekyll/wiki/Configuration">Jekyll configuration page</a>). So now just configure to your liking. (edit the default.html inside of _layouts for your main page and the post.html and page.html files for the corresponding results).
|
28
28
|
|
29
|
-
I have provided a rake task to name and open your
|
29
|
+
I have provided a rake task to name and open your new blog post in textmate as default but feel free to change it to use the editor of your choice. To use it just run
|
30
30
|
|
31
31
|
$ rake np post-title
|
32
32
|
|
data/lib/bloggy/version.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
class Jekyll::BlogGenerator < Rails::Generators::NamedBase
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
argument :name, :type => :string, :default => "blog"
|
3
4
|
|
4
5
|
def copy_config_file
|
5
6
|
copy_file 'config/jekyll/_config.yml.tt', 'config/jekyll/_config.yml'
|
@@ -9,10 +10,10 @@ class Jekyll::BlogGenerator < Rails::Generators::NamedBase
|
|
9
10
|
copy_file 'config/jekyll/_layouts/page.html.tt', 'config/jekyll/_layouts/page.html'
|
10
11
|
copy_file 'config/jekyll/_layouts/post.html.tt', 'config/jekyll/_layouts/post.html'
|
11
12
|
copy_file 'config/jekyll/_posts/2012-04-25-a-test-post.markdown.tt', 'config/jekyll/_posts/2012-04-25-a-test-post.markdown'
|
12
|
-
copy_file 'config/jekyll/css/screen.css', 'config/jekyll/css/screen.css'
|
13
|
-
copy_file 'config/jekyll/css/syntax.css', 'config/jekyll/css/syntax.css'
|
14
|
-
copy_file '
|
15
|
-
copy_file '
|
13
|
+
copy_file 'config/jekyll/css/screen.css.tt', 'config/jekyll/css/screen.css'
|
14
|
+
copy_file 'config/jekyll/css/syntax.css.tt', 'config/jekyll/css/syntax.css'
|
15
|
+
copy_file 'tasks/new_post.rake.tt', 'lib/tasks/new_post.rake'
|
16
|
+
copy_file 'tasks/gen.rake.tt', 'lib/tasks/gen.rake'
|
16
17
|
end
|
17
18
|
|
18
19
|
def create_blog source = 'config/jekyll', destination = 'public/blog'
|
File without changes
|
File without changes
|
data/lib/generators/jekyll/blog/templates/{config/jekyll/tasks/gen.rake → tasks/gen.rake.tt}
RENAMED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bloggy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -232,24 +232,21 @@ files:
|
|
232
232
|
- README.md
|
233
233
|
- Rakefile
|
234
234
|
- bloggy.gemspec
|
235
|
-
- lib/.DS_Store
|
236
235
|
- lib/bloggy.rb
|
237
236
|
- lib/bloggy/version.rb
|
238
|
-
- lib/generators/jekyll/.DS_Store
|
239
237
|
- lib/generators/jekyll/blog/USAGE
|
240
238
|
- lib/generators/jekyll/blog/blog_generator.rb
|
241
|
-
- lib/generators/jekyll/blog/templates/.DS_Store
|
242
239
|
- lib/generators/jekyll/blog/templates/config/jekyll/_config.yml.tt
|
243
240
|
- lib/generators/jekyll/blog/templates/config/jekyll/_layouts/default.html.tt
|
244
241
|
- lib/generators/jekyll/blog/templates/config/jekyll/_layouts/page.html.tt
|
245
242
|
- lib/generators/jekyll/blog/templates/config/jekyll/_layouts/post.html.tt
|
246
243
|
- lib/generators/jekyll/blog/templates/config/jekyll/_posts/2012-04-25-a-test-post.markdown.tt
|
247
244
|
- lib/generators/jekyll/blog/templates/config/jekyll/atom.xml.tt
|
248
|
-
- lib/generators/jekyll/blog/templates/config/jekyll/css/screen.css
|
249
|
-
- lib/generators/jekyll/blog/templates/config/jekyll/css/syntax.css
|
245
|
+
- lib/generators/jekyll/blog/templates/config/jekyll/css/screen.css.tt
|
246
|
+
- lib/generators/jekyll/blog/templates/config/jekyll/css/syntax.css.tt
|
250
247
|
- lib/generators/jekyll/blog/templates/config/jekyll/index.html.tt
|
251
|
-
- lib/generators/jekyll/blog/templates/
|
252
|
-
- lib/generators/jekyll/blog/templates/
|
248
|
+
- lib/generators/jekyll/blog/templates/tasks/gen.rake.tt
|
249
|
+
- lib/generators/jekyll/blog/templates/tasks/new_post.rake.tt
|
253
250
|
- test/helper.rb
|
254
251
|
- test/test_generate_blog.rb
|
255
252
|
homepage: http://github.com/zbruhnke/bloggy
|
data/lib/.DS_Store
DELETED
Binary file
|
Binary file
|
Binary file
|