- 10 oz pkg frozen spinach, thawed, drained, chopped
- 3 eggs
- 12 oz cottage cheese
- 3 TBsp flour
- 2 TBsp butter, melted
- 8 oz shredded cheddar cheese
// SCSS | |
nav { | |
&.top-nav { li { margin:{ top:0; left:0; }}} // some comment | |
} | |
vs. | |
// Sass | |
nav | |
&.top-nav |
desc "copy dot files for deployment" | |
task :copydot do | |
exclusions = [".", "..", ".DS_Store"] | |
Dir["#{source_dir}/**/.*"].each do |file| | |
if (!File.directory?(file) && !exclusions.include?(file)) | |
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}")); | |
end | |
end | |
end |
- Nathan Weizenbaum » @nex3
{% capture partial %} bold italic link {% endcapture %}
Be aware this is a preview. Don't merge this into your main branch and run along using it. I've tested it a lot but there may be issues I'm unaware of. Create a test branch for your blog before you continue. When everything gets cleared up, I'll release this feature and you can pull from the master branch.
First be sure you have a remote pointing to the Octopress repository. git remote -v
should return something like this:
octopress git://github.com/imathis/octopress.git (fetch)
desc "Edit a post (defaults to most recent)" | |
task :edit_post, :title do |t, args| | |
args.with_defaults(:title => false) | |
posts = Dir.glob("#{source_dir}/#{posts_dir}/*.*") | |
post = (args.title) ? post = posts.keep_if {|post| post =~ /#{args.title}/}.last : posts.last | |
if post | |
puts "Opening #{post} with #{editor}..." | |
system "#{ENV['EDITOR']} #{post} &" | |
else | |
puts "No posts were found with \"#{args.title}\" in the title." |
Why I don't like automated time delayed publishing of drafts in Octopress:
- It's not hard to publish a draft when you want to.
- It may be hard to set up due to development environment issues.
- There are lots of edge cases that aren't obvious at first. Supporting this won't be easy.
- People could accidentally push a broken site.
You're working on a plugin for Octopress and your task timer goes off. Your blog just starts generating and deploying in the background but you're in a development branch working on some feature. Result: your script generates your test site, but not your blog, and pushes it live in the background.
<h1>CSS3 Checkbox Styles</h1> | |
<!-- Slide ONE --> | |
<div class="slideOne"> | |
<input type="checkbox" value="None" id="slideOne" name="check" /> | |
<label for="slideOne"></label> | |
</div> | |
<!-- Slide TWO --> | |
<div class="slideTwo"> |