For different posts (generated through rake new_post[my_post]
), I want to add a javascript function that is to be only included in that post, and nowhere else on the blog.
I can do this by hand-editing the public/my_post/index.html
file but then every time I do a rake generate
, I will have to do this again.
Is there a built in way to make this happen in Octopress?
Cheers