{"category":{"version":"58c81e8e693cdd1900606acf","project":"542fe92a5eceb608003fddc8","_id":"58c81e8e693cdd1900606ad1","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-13T19:08:44.260Z","from_sync":false,"order":1,"slug":"context-reference","title":"Context Reference"},"parentDoc":null,"project":"542fe92a5eceb608003fddc8","user":"542c5cfcddd3190e00228849","version":{"__v":1,"_id":"58c81e8e693cdd1900606acf","project":"542fe92a5eceb608003fddc8","createdAt":"2017-03-14T16:47:10.620Z","releaseDate":"2017-03-14T16:47:10.620Z","categories":["58c81e8e693cdd1900606ad0","58c81e8e693cdd1900606ad1","58c81e8e693cdd1900606ad2","58c81e8e693cdd1900606ad3","58c81e8e693cdd1900606ad4","58c81e8e693cdd1900606ad5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"0.11.7","version":"0.11.7"},"_id":"58c81e8f693cdd1900606b07","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-13T19:34:39.326Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"Use: `{{#is \"home\"}}{{/is}}` to detect this context.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Context\",\n    \"h-1\": \"Url\",\n    \"h-2\": \"Template\",\n    \"h-3\": \"Data\",\n    \"h-4\": \"Body Classes\",\n    \"0-0\": \"[index](doc:index-context), home\",\n    \"0-1\": \"/\",\n    \"0-2\": \"home.hbs, index.hbs\",\n    \"0-3\": \"[{post}], {pagination}\",\n    \"0-4\": \".home-template\"\n  },\n  \"cols\": 5,\n  \"rows\": 1\n}\n[/block]\n## Description\n\n`home` is a special context which is only set on the home page. If `home` is set, `index` is always set as well. `home` can be used to detect that this is specifically the first page of the blog and not one of the subsequent pages.\n\n## Routes\n\nThe route for the home page is always `/`.\n\n## Templates\n\nThe default template for the home page is `index.hbs`. You can optionally add a `home.hbs` template to your theme which will be used instead.\n\n## Data\n\nThe data available on the home page is exactly the same as described in the [index](doc:index-context) context. The home page's posts will always be the first X posts ordered by published date with the newest first, where X is defined by the post per page setting in the Ghost admin.\n\nSee the [index context](doc:index-context) for more details.","excerpt":"The 'home' context","slug":"home-context","type":"basic","title":"home"}

home

The 'home' context

Use: `{{#is "home"}}{{/is}}` to detect this context. [block:parameters] { "data": { "h-0": "Context", "h-1": "Url", "h-2": "Template", "h-3": "Data", "h-4": "Body Classes", "0-0": "[index](doc:index-context), home", "0-1": "/", "0-2": "home.hbs, index.hbs", "0-3": "[{post}], {pagination}", "0-4": ".home-template" }, "cols": 5, "rows": 1 } [/block] ## Description `home` is a special context which is only set on the home page. If `home` is set, `index` is always set as well. `home` can be used to detect that this is specifically the first page of the blog and not one of the subsequent pages. ## Routes The route for the home page is always `/`. ## Templates The default template for the home page is `index.hbs`. You can optionally add a `home.hbs` template to your theme which will be used instead. ## Data The data available on the home page is exactly the same as described in the [index](doc:index-context) context. The home page's posts will always be the first X posts ordered by published date with the newest first, where X is defined by the post per page setting in the Ghost admin. See the [index context](doc:index-context) for more details.