diff --git a/Rakefile b/Rakefile index 6684d2a..e727c00 100644 --- a/Rakefile +++ b/Rakefile @@ -59,12 +59,13 @@ end desc "Begin a new post in #{source_dir}/#{posts_dir}" task :new_post, :title do |t, args| require './plugins/titlecase.rb' + mkdir_p "#{source_dir}/#{posts_dir}" args.with_defaults(:title => 'new-post') title = args.title filename = "#{source_dir}/#{posts_dir}/#{Time.now.strftime('%Y-%m-%d')}-#{title.downcase.gsub(/&/,'and').gsub(/[,\.'":\(\)\[\]]/,'').gsub(/\W/, '-')}.#{new_post_ext}" puts "Creating new post: #{filename}" open(filename, 'w') do |post| - system "mkdir -p #{source_dir}/#{posts_dir}"; + system "mkdir -p #{source_dir}/#{posts_dir}/"; post.puts "---" post.puts "layout: post" post.puts "title: \"#{title.gsub(/&/,'&').titlecase}\"" diff --git a/source/_includes/head.html b/source/_includes/head.html index 34fb222..1b04754 100644 --- a/source/_includes/head.html +++ b/source/_includes/head.html @@ -22,10 +22,11 @@ - + + - - + + {% include google_analytics.html %} {% include google_plus_one.html %} diff --git a/source/_posts b/source/_posts deleted file mode 120000 index 6719156..0000000 --- a/source/_posts +++ /dev/null @@ -1 +0,0 @@ -/Users/bmathis/Dropbox/octopress/_assets/source/_posts \ No newline at end of file diff --git a/source/_posts/2011-07-22-octopress-20-surfaces.markdown b/source/_posts/2011-07-22-octopress-20-surfaces.markdown new file mode 100644 index 0000000..116033b --- /dev/null +++ b/source/_posts/2011-07-22-octopress-20-surfaces.markdown @@ -0,0 +1,15 @@ +--- +layout: post +title: "Octopress 2.0 Surfaces" +date: 2011-07-22 14:44 +comments: true +categories: release +--- + +Octopress is a framework designed for Jekyll, the static blogging engine powering Github Pages. So what is Jekyll? + +{% blockquote Jekyll Wiki https://github.com/mojombo/jekyll/wiki/Usage %} +Jekyll at its core is a text transformation engine. The concept behind the system is this: you give it text written in your favorite markup language, be that Markdown, Textile, or just plain HTML, and it churns that through a layout or series of layout files. Throughout that process you can tweak how you want the site URLs to look, what data gets displayed on the layout and more. +{% endblockquote %} + + diff --git a/source/docs/blogging/code/index.markdown b/source/docs/blogging/code/index.markdown index 0166cec..7c99583 100644 --- a/source/docs/blogging/code/index.markdown +++ b/source/docs/blogging/code/index.markdown @@ -28,86 +28,11 @@ them to the Vim rendered versions. Check out the [test page](/docs/blogging/code/test) to see the results. -## Gist Code embedding -All you need is the gist's id and you can easily embed it in your page. This actually downloads a cache of the gist and embeds it in a `