ghpages logic