{"action":"closed","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/1235","labels_url":"https://api.github.com/repos/spf13/hugo/issues/1235/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/1235/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/1235/events","html_url":"https://github.com/spf13/hugo/issues/1235","id":91532170,"number":1235,"title":".IsHome also picking up 404.html","user":{"login":"RickCogley","id":512328,"avatar_url":"https://avatars.githubusercontent.com/u/512328?v=3","gravatar_id":"","url":"https://api.github.com/users/RickCogley","html_url":"https://github.com/RickCogley","followers_url":"https://api.github.com/users/RickCogley/followers","following_url":"https://api.github.com/users/RickCogley/following{/other_user}","gists_url":"https://api.github.com/users/RickCogley/gists{/gist_id}","starred_url":"https://api.github.com/users/RickCogley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickCogley/subscriptions","organizations_url":"https://api.github.com/users/RickCogley/orgs","repos_url":"https://api.github.com/users/RickCogley/repos","events_url":"https://api.github.com/users/RickCogley/events{/privacy}","received_events_url":"https://api.github.com/users/RickCogley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/bug","name":"bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-28T00:19:41Z","updated_at":"2015-06-28T08:44:15Z","closed_at":"2015-06-28T08:44:15Z","body":"Hello - currently, with version ``Hugo Static Site Generator v0.15-DEV-D4B6F9A BuildDate: 2015-06-22T06:42:25+09:00`` I need to conditionally load my CSS like this: \r\n\r\n~~~\r\n  {{ if eq (relURL .URL) (\"/404.html\" | safeHTML) }}\r\n  <link href=\"/css/ghpages-materialize.min.css{{with getenv \"GHPMATCSS_HASH\"}}?v={{.}}{{end}}\" rel=\"stylesheet\" media=\"screen,projection\"/>\r\n  {{ else if .IsHome }}\r\n  <link href=\"/css/materialize.min.css{{with getenv \"MATCSS_HASH\"}}?v={{.}}{{end}}\" rel=\"stylesheet\" media=\"screen,projection\"/>\r\n  {{ else }}\r\n  <link href=\"/css/ghpages-materialize.min.css{{with getenv \"GHPMATCSS_HASH\"}}?v={{.}}{{end}}\" rel=\"stylesheet\" media=\"screen,projection\"/>\r\n  {{ end }}\r\n~~~\r\n\r\nWhen I just use ``.IsHome``, it picks up the 404.html as 'home' as well, and loads the wrong CSS, so I added the specific test for the 404.html at the top of the if statement. \r\n\r\nPlease advise if this is something I'm misunderstanding, or, perhaps a bug in the way ``.IsHome`` works? "}}