Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

make more newbie friendly: 'jekyll new blog' creates blog scaffold #631

Closed
tpo opened this Issue · 9 comments

4 participants

Tomáš Pospíšek Jake Bellacera Yutaka Ichibangase Parker Moore
Tomáš Pospíšek

'jekyll new blog' will create a new blog scaffold. You should have recieved a pull request that implements the feature.

Here's a demo:

$ jekyll new blog
Generated basic structure in blog
Please do 'cd blog && jekyll --server'
You then should be able to reach your site at http://localhost:4000

$ cd blog && jekyll --server
WARNING: Could not read configuration. Using defaults (and options).
No such file or directory - /tmp/blog/_config.yml
Building site: /tmp/blog -> /tmp/blog/_site
Successfully generated site: /tmp/blog -> /tmp/blog/_site
[2012-08-28 09:30:47] INFO WEBrick 1.3.1
[2012-08-28 09:30:47] INFO ruby 1.8.7 (2011-06-30) [x86_64-linux]
[2012-08-28 09:30:52] INFO WEBrick::HTTPServer#start: pid=11964 port=4000

$ find
.
./index.markdown
./_includes
./_posts
./_posts/2012-08-28-hello-world.markdown
./_site
./_site/2012
./_site/2012/08
./_site/2012/08/28
./_site/2012/08/28/hello-world.html
./_site/index.html
./_layouts
./_layouts/default.html

Jake Bellacera

+1 I like!

Yutaka Ichibangase

I'm about to start blogging with Jekyll and this is the feature I want.
I made a quick modification to do this 'jekyll new blog' feature.

https://github.com/ichiban/jekyll/tree/new_subcommand

Tomáš Pospíšek
Tomáš Pospíšek
Yutaka Ichibangase

I didn't fork nor copy&paste your commit.
I just started writing it as soon as i saw this issue and didn't notice your commit on #632.
Yours is better, simpler. Mine is doing too much and messy (I should chdir as you mentioned).

Tomáš Pospíšek
Yutaka Ichibangase

So writing stuff like File.open('_layouts/default.html') should
be portable.

Wow, that's new to me. Thanx!

You are including a DOCTYPE, title and setting charset to UTF-8. Is that
more robust (i.e. the better wiser to go?) ?

After the quick dirty modification, I'm thinking that the code for this 'jekyll new blog' feature sits on a wrong place.
It has to be refactored and where should the code be moved?
My answer is somewhere out of Jekyll's source code.

I'm not sure that this feature, as we implemented separetely, is a way to go in the first place.
Jekyll is a cool tool and It's a static site generator not a blogging engine.
Providing a blogging starting point should not be Jekyll's job but Octopress', Jekyll-Bootstrap's or other projects'

Tomáš Pospíšek
Parker Moore
Owner

Closing in favour of discussion on #632.

Parker Moore parkr closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.