{"action":"created","issue":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1179","repository_url":"https://api.github.com/repos/GitbookIO/gitbook","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1179/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1179/comments","events_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1179/events","html_url":"https://github.com/GitbookIO/gitbook/issues/1179","id":139882901,"number":1179,"title":"Non-style includes for every page (website target)?","user":{"login":"Simran-B","id":7819991,"avatar_url":"https://avatars.githubusercontent.com/u/7819991?v=3","gravatar_id":"","url":"https://api.github.com/users/Simran-B","html_url":"https://github.com/Simran-B","followers_url":"https://api.github.com/users/Simran-B/followers","following_url":"https://api.github.com/users/Simran-B/following{/other_user}","gists_url":"https://api.github.com/users/Simran-B/gists{/gist_id}","starred_url":"https://api.github.com/users/Simran-B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simran-B/subscriptions","organizations_url":"https://api.github.com/users/Simran-B/orgs","repos_url":"https://api.github.com/users/Simran-B/repos","events_url":"https://api.github.com/users/Simran-B/events{/privacy}","received_events_url":"https://api.github.com/users/Simran-B/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-10T13:20:31Z","updated_at":"2016-03-10T13:34:26Z","closed_at":null,"body":"Is there a way to include e.g. static content to multiple/all generated pages? Something like:\r\n\r\nbook.json\r\n```json\r\n{\r\n  \"variables\":\r\n  {\r\n    \"lastUpdate\": \"2016-03-10T14:15:00.000Z\"\r\n  }\r\n}\r\n```\r\n\r\nheader.md\r\n```html\r\n{% if book.lastUpdate %}\r\n  <div>Last updated on {% book.lastUpdate %}</div>\r\n{% endif %}\r\n```\r\n\r\n`<div>Last updated on 2016-03-10T14:15:00.000Z</div>` would need to appear above every page in all chapters in this example, as actual HTML of course (not escaped).\r\n\r\nI don't want to `{% include \"header.md\" %}` manually on every page. Couldn't find anything in the documentation."},"comment":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/comments/194840104","html_url":"https://github.com/GitbookIO/gitbook/issues/1179#issuecomment-194840104","issue_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1179","id":194840104,"user":{"login":"nagim","id":16205115,"avatar_url":"https://avatars.githubusercontent.com/u/16205115?v=3","gravatar_id":"","url":"https://api.github.com/users/nagim","html_url":"https://github.com/nagim","followers_url":"https://api.github.com/users/nagim/followers","following_url":"https://api.github.com/users/nagim/following{/other_user}","gists_url":"https://api.github.com/users/nagim/gists{/gist_id}","starred_url":"https://api.github.com/users/nagim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagim/subscriptions","organizations_url":"https://api.github.com/users/nagim/orgs","repos_url":"https://api.github.com/users/nagim/repos","events_url":"https://api.github.com/users/nagim/events{/privacy}","received_events_url":"https://api.github.com/users/nagim/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T13:34:26Z","updated_at":"2016-03-10T13:34:26Z","body":"This is an interesting question and not just about static content, but also attributes (like audience, etc.), which could be used for single sourcing.\r\n@SamyPesse, if I recall right, v3 support YAML frontmatter, maybe it could be used for this (define site-wide variables, etc.)?"}}