{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/720","labels_url":"https://api.github.com/repos/spf13/hugo/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/720/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/720/events","html_url":"https://github.com/spf13/hugo/issues/720","id":52049402,"number":720,"title":"Allow home page to be easily authored in markdown","user":{"login":"bguiz","id":1773785,"avatar_url":"https://avatars.githubusercontent.com/u/1773785?v=3","gravatar_id":"","url":"https://api.github.com/users/bguiz","html_url":"https://github.com/bguiz","followers_url":"https://api.github.com/users/bguiz/followers","following_url":"https://api.github.com/users/bguiz/following{/other_user}","gists_url":"https://api.github.com/users/bguiz/gists{/gist_id}","starred_url":"https://api.github.com/users/bguiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguiz/subscriptions","organizations_url":"https://api.github.com/users/bguiz/orgs","repos_url":"https://api.github.com/users/bguiz/repos","events_url":"https://api.github.com/users/bguiz/events{/privacy}","received_events_url":"https://api.github.com/users/bguiz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-15T22:42:29Z","updated_at":"2015-01-16T09:30:37Z","closed_at":null,"body":"Presently, it looks like the only way to put content in the home page on a hugo site with a theme is to override the theme, by creating a file `/layouts/index.html`, where the contents of the home page must be inserted manually using HTML. The `{{ partial \"foo.html\" . }}` syntax can only be used to include partials which also must be HTML, not markdown.\r\n\r\nThe only way I can think of working around this is to have `layouts/index.html` such that it ierates over all pages, and simply filters them based on the presence of a parameter, like so:\r\n\r\n\r\n\t{{ range .Data.Pages }}\r\n\t\t{{ if isset .Params \"homeContent\" }}\r\n\t\t\t{{ .Content }}\r\n\t\t{{ end }}\r\n\t{{ end }}\r\n\r\nHowever, this seems like a rather roundabout, and inefficient, way of going about things. Is there a better way?"},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/70228576","html_url":"https://github.com/spf13/hugo/issues/720#issuecomment-70228576","issue_url":"https://api.github.com/repos/spf13/hugo/issues/720","id":70228576,"user":{"login":"chibicode","id":992008,"avatar_url":"https://avatars.githubusercontent.com/u/992008?v=3","gravatar_id":"","url":"https://api.github.com/users/chibicode","html_url":"https://github.com/chibicode","followers_url":"https://api.github.com/users/chibicode/followers","following_url":"https://api.github.com/users/chibicode/following{/other_user}","gists_url":"https://api.github.com/users/chibicode/gists{/gist_id}","starred_url":"https://api.github.com/users/chibicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibicode/subscriptions","organizations_url":"https://api.github.com/users/chibicode/orgs","repos_url":"https://api.github.com/users/chibicode/repos","events_url":"https://api.github.com/users/chibicode/events{/privacy}","received_events_url":"https://api.github.com/users/chibicode/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T09:30:37Z","updated_at":"2015-01-16T09:30:37Z","body":"I tried using markdownify filter (which was added here: https://github.com/spf13/hugo/pull/652) but this doesn't work as the filter takes a string and not `template.Html`...\r\n\r\n```\r\n{{ partial \"home.md\" . | markdownify }}\r\n```"}}