Yesterday, I wrote an article about the resources that I'm using to study Ruby. I included a link to Amazon's page for the Pragmatic Programmer's Ruby book, and then I wanted to use the nifty Amazon Associate's javascript doodad that makes a window pop up when you hover over the link. Go try it - it's really cool!

In order to get the javascript doodad to work, you need to add some script codes at the bottom of your page. Amazon suggests that you put it in the footer. So, where's the freakin' typo footer? Assuming that you're using the default azure theme, it's in:

/rails/your_typo_app_name/themes/azure/layouts

The file you want to edit is default.rhtml. If you look in that file, all the way at the bottom is the footer for your blog. In this div is where I stuck the Amazon script code.

Of course, it's not that easy. When I refreshed my browser window, I didn't see any change. I examed the source code and didn't see the new stuff in the footer. So, it looks like typo is caching something. How do we refresh or republish the typo stuff?

Simple. Open your typo's admin page. On the Blog Settings page, scroll alllll the way down to the bottom and click on "Empty Fragment Cache." This will make the change go live! Now the groovy javascript doodad from Amazon works just fine.

1 Response to “How to "republish" or refresh your Typo blog”

  1. Tdub Says:

    Tthanks for this post. I have been playing around with typo and pulling my hair out with the theme and why it would not refresh.

    Keep posting! -Tdub

Leave a Reply