{"category":{"version":"58810495d172b61b00d73859","project":"542fe92a5eceb608003fddc8","_id":"58810495d172b61b00d7385d","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-04T12:45:40.548Z","from_sync":false,"order":3,"slug":"helper-reference","title":"Helper Reference"},"parentDoc":null,"project":"542fe92a5eceb608003fddc8","user":"542c5cfcddd3190e00228849","version":{"__v":1,"_id":"58810495d172b61b00d73859","project":"542fe92a5eceb608003fddc8","createdAt":"2017-01-19T18:25:25.206Z","releaseDate":"2017-01-19T18:25:25.206Z","categories":["58810495d172b61b00d7385a","58810495d172b61b00d7385b","58810495d172b61b00d7385c","58810495d172b61b00d7385d","58810495d172b61b00d7385e","58810495d172b61b00d7385f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"0.11.4","version":"0.11.4"},"_id":"58810495d172b61b00d7387e","__v":0,"updates":["5436f736775c241600f98028"],"next":{"pages":[],"description":""},"createdAt":"2014-10-04T19:34:55.812Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"never","params":[],"url":""},"isReference":false,"order":34,"body":"[block:html]\n{\n  \"html\": \"<div class=\\\"github-deeplinks\\\">\\n    <a href=\\\"https://github.com/TryGhost/Ghost/blob/0.10.0/core/server/helpers/ghost_head.js\\\"><i class=\\\"fa fa-github-alt fa-right\\\"></i>Source</a>\\n    <a href=\\\"https://github.com/TryGhost/Ghost/blob/0.10.0/core/test/unit/server_helpers/ghost_head_spec.js\\\" class=\\\"fa fa-check-square-o fa-right\\\">Tests</a>\\n</div>\"\n}\n[/block]\nUsage: `{{ghost_head}}`\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Types\",\n    \"h-1\": \"Parameters\",\n    \"h-2\": \"Attributes\",\n    \"0-0\": \"[Output](/docs/helpers#section-output), [Ghost](/docs/helpers#section-ghost), [Required](/docs/helpers#section-required)\",\n    \"0-1\": \"n/a\",\n    \"0-2\": \"n/a\"\n  },\n  \"cols\": 3,\n  \"rows\": 1\n}\n[/block]\n### Description\n\n`{{ghost_head}}` – belongs just before the `</head>` tag in `default.hbs`, outputs the following:\n\n* Any code entered in Ghost admin via *Code Injection*\n* Structured data Shema.org microformats in JSON/LD - no need to clutter your theme markup!\n* Structured data tags for Facebook Open Graph and Twitter Cards.\n* RSS url paths to make your feeds easily discoverable by external readers.\n* Scripts to enable the Ghost API _(if enabled in labs)_\n* Canonical link to equivalent `amp` post","excerpt":"`{{ghost_head}}` Helper - Output scripts and meta data in the head of all HTML pages","slug":"ghost_head","type":"basic","title":"ghost_head"}

ghost_head

`{{ghost_head}}` Helper - Output scripts and meta data in the head of all HTML pages

[block:html] { "html": "<div class=\"github-deeplinks\">\n <a href=\"https://github.com/TryGhost/Ghost/blob/0.10.0/core/server/helpers/ghost_head.js\"><i class=\"fa fa-github-alt fa-right\"></i>Source</a>\n <a href=\"https://github.com/TryGhost/Ghost/blob/0.10.0/core/test/unit/server_helpers/ghost_head_spec.js\" class=\"fa fa-check-square-o fa-right\">Tests</a>\n</div>" } [/block] Usage: `{{ghost_head}}` [block:parameters] { "data": { "h-0": "Types", "h-1": "Parameters", "h-2": "Attributes", "0-0": "[Output](/docs/helpers#section-output), [Ghost](/docs/helpers#section-ghost), [Required](/docs/helpers#section-required)", "0-1": "n/a", "0-2": "n/a" }, "cols": 3, "rows": 1 } [/block] ### Description `{{ghost_head}}` – belongs just before the `</head>` tag in `default.hbs`, outputs the following: * Any code entered in Ghost admin via *Code Injection* * Structured data Shema.org microformats in JSON/LD - no need to clutter your theme markup! * Structured data tags for Facebook Open Graph and Twitter Cards. * RSS url paths to make your feeds easily discoverable by external readers. * Scripts to enable the Ghost API _(if enabled in labs)_ * Canonical link to equivalent `amp` post