{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/2396","repository_url":"https://api.github.com/repos/spf13/hugo","labels_url":"https://api.github.com/repos/spf13/hugo/issues/2396/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/2396/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/2396/events","html_url":"https://github.com/spf13/hugo/issues/2396","id":173852742,"number":2396,"title":"Development server doesn't regenerate list pages ordered `ByWeight`","user":{"login":"chrisguidry","id":8194,"avatar_url":"https://avatars.githubusercontent.com/u/8194?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisguidry","html_url":"https://github.com/chrisguidry","followers_url":"https://api.github.com/users/chrisguidry/followers","following_url":"https://api.github.com/users/chrisguidry/following{/other_user}","gists_url":"https://api.github.com/users/chrisguidry/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisguidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisguidry/subscriptions","organizations_url":"https://api.github.com/users/chrisguidry/orgs","repos_url":"https://api.github.com/users/chrisguidry/repos","events_url":"https://api.github.com/users/chrisguidry/events{/privacy}","received_events_url":"https://api.github.com/users/chrisguidry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T19:30:45Z","updated_at":"2016-11-05T01:03:10Z","closed_at":null,"body":"To reproduce:\n1. Have some content in `content/` with various `weight` attributes to control the ordering\n2. Have this in `index.html`:\n\n```\n<ol>\n    {{ range .Data.Pages.ByWeight }}\n    <p class=\"{{ .Type }}\">{{ .Content }}</p>\n    {{ end }}\n</ol>\n```\n1. Run the hugo development server with normal watching enabled\n2. Render the page, confirm that things are in order by weight\n3. Edit a content file to adjust it's body, save\n4. Confirm in the console that hugo did detect the change\n5. Confirm in the browser that live-reload triggered\n6. BUG: the body of the item you changed won't have updated\n7. Stop and restart the dev server; confirm that the body of the content is now reflecting the update\n\nIf you change this to `{{ range .Data.Pages }}` things work exactly as expected.  It's like the `ByWeight` filtered results are cached in-memory and won't clear until you restart the server.\n\n(PS: I LOVE LOVE LOVE Hugo)\n"},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/258580870","html_url":"https://github.com/spf13/hugo/issues/2396#issuecomment-258580870","issue_url":"https://api.github.com/repos/spf13/hugo/issues/2396","id":258580870,"user":{"login":"5d-cornelius","id":14319981,"avatar_url":"https://avatars.githubusercontent.com/u/14319981?v=3","gravatar_id":"","url":"https://api.github.com/users/5d-cornelius","html_url":"https://github.com/5d-cornelius","followers_url":"https://api.github.com/users/5d-cornelius/followers","following_url":"https://api.github.com/users/5d-cornelius/following{/other_user}","gists_url":"https://api.github.com/users/5d-cornelius/gists{/gist_id}","starred_url":"https://api.github.com/users/5d-cornelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5d-cornelius/subscriptions","organizations_url":"https://api.github.com/users/5d-cornelius/orgs","repos_url":"https://api.github.com/users/5d-cornelius/repos","events_url":"https://api.github.com/users/5d-cornelius/events{/privacy}","received_events_url":"https://api.github.com/users/5d-cornelius/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T01:03:10Z","updated_at":"2016-11-05T01:03:10Z","body":"I've just encountered the same problem with sorting \"ByTitle\". (Hugo 0.17)\r\n"}}
{"actor":{"display_login":"5d-cornelius"}}