Middleman template based on jorge's setup