$(function() { 
  
  if($("#archive").length == 0) {window.location = "/#" + window.location.pathname} 
  
  $("p.show-all a").click(function(e){
    var link = $(this)
        
    $.ajax({
      type: "GET",
      url: link.attr('href'),
      success: function(html){
        link.parents('.read-more:first').append(html)
        link.parent().remove()
      }
    })      
    
    e.preventDefault()      
  })
  
})