{"action":"created","comment":{"url":"https://api.github.com/repos/ePages-de/epages-docs/pulls/comments/35210284","id":35210284,"diff_hunk":"@@ -1,11 +1,13 @@\n {% assign chapter = page.url | regex_extract: '^/([^/]+)/' %}\n+{% assign description = page.excerpt | strip_html | strip_newlines | truncate: 160 %}\n <head>\n   <meta charset=\"utf-8\">\n   <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n   <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n \n-  <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>\n-  <meta name=\"description\" content=\"{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}\">\n+  <title>{% if chapter == 'apps' %}{{ site.api_title }}{% else %}{{ site.blog_title }}{% endif %}</title>\n+  <meta name=\"description\" content=\"{% if page.excerpt %}{{ description }}{% elsif chapter == 'apps' %}{{ site.api_description }}{% else %}{{ site.blog_description }}{% endif %}\">\n+  <meta name=\"keywords\" content=\"{% if chapter == 'apps' %}{{ site.api_keywords }}{% else %}{{ site.blog_keywords }}{% endif %}\">\n ","path":"_includes/head.html","position":13,"original_position":13,"commit_id":"de7d17a53c54f696c3f4ec13ca9ccbd96e5fc81a","original_commit_id":"de7d17a53c54f696c3f4ec13ca9ccbd96e5fc81a","user":{"login":"choffmeister","id":671620,"avatar_url":"https://avatars.githubusercontent.com/u/671620?v=3","gravatar_id":"","url":"https://api.github.com/users/choffmeister","html_url":"https://github.com/choffmeister","followers_url":"https://api.github.com/users/choffmeister/followers","following_url":"https://api.github.com/users/choffmeister/following{/other_user}","gists_url":"https://api.github.com/users/choffmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/choffmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choffmeister/subscriptions","organizations_url":"https://api.github.com/users/choffmeister/orgs","repos_url":"https://api.github.com/users/choffmeister/repos","events_url":"https://api.github.com/users/choffmeister/events{/privacy}","received_events_url":"https://api.github.com/users/choffmeister/received_events","type":"User","site_admin":false},"body":"This solution is far from optimal:\r\n\r\n1. If one opens up the \"themes\" chapter, he also gets the SEO texts from the blog.\r\n2. This will get more and more clumsy if one needs more different SEO texts for different chapters.\r\n\r\nA better solution would be, to have a file `_data/seo.yml` somewhat like this:\r\n\r\n```yml\r\napps:\r\n  title: This is the API\r\n  description: >\r\n    Foobar\r\n  keywords: [\"a\", \"b\", \"c\"]\r\nblog:\r\n  title: This is the blog\r\n  description: >\r\n    Foobar\r\n  keywords: [\"a\", \"b\", \"c\"]\r\nthemes:\r\n  title: This is the themes documentation\r\n  description: >\r\n    Foobar\r\n  keywords: [\"a\", \"b\", \"c\"]\r\n#...\r\n```\r\n\r\nNow you can alter this part (not tested, but should work somewhat like this):\r\n\r\n```html\r\n<title>{% if site.data[chapter].title %}{{ site.data[chapter].title }}{% else %}ePages{% endif %}</title>\r\n```\r\n\r\nThe same then for `<meta name=\"description\"/>` and `<meta name=\"keywords\"/>`","created_at":"2015-07-22T13:10:49Z","updated_at":"2015-07-22T13:10:49Z","html_url":"https://github.com/ePages-de/epages-docs/pull/168#discussion_r35210284","pull_request_url":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/ePages-de/epages-docs/pulls/comments/35210284"},"html":{"href":"https://github.com/ePages-de/epages-docs/pull/168#discussion_r35210284"},"pull_request":{"href":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168","id":40440469,"html_url":"https://github.com/ePages-de/epages-docs/pull/168","diff_url":"https://github.com/ePages-de/epages-docs/pull/168.diff","patch_url":"https://github.com/ePages-de/epages-docs/pull/168.patch","issue_url":"https://api.github.com/repos/ePages-de/epages-docs/issues/168","number":168,"state":"open","locked":false,"title":"Seo texts","user":{"login":"mingoscd","id":5896360,"avatar_url":"https://avatars.githubusercontent.com/u/5896360?v=3","gravatar_id":"","url":"https://api.github.com/users/mingoscd","html_url":"https://github.com/mingoscd","followers_url":"https://api.github.com/users/mingoscd/followers","following_url":"https://api.github.com/users/mingoscd/following{/other_user}","gists_url":"https://api.github.com/users/mingoscd/gists{/gist_id}","starred_url":"https://api.github.com/users/mingoscd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingoscd/subscriptions","organizations_url":"https://api.github.com/users/mingoscd/orgs","repos_url":"https://api.github.com/users/mingoscd/repos","events_url":"https://api.github.com/users/mingoscd/events{/privacy}","received_events_url":"https://api.github.com/users/mingoscd/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-21T09:57:23Z","updated_at":"2015-07-22T13:10:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d515411ae417bea348451db8302c1e43b0ae27f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168/commits","review_comments_url":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168/comments","review_comment_url":"https://api.github.com/repos/ePages-de/epages-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ePages-de/epages-docs/issues/168/comments","statuses_url":"https://api.github.com/repos/ePages-de/epages-docs/statuses/de7d17a53c54f696c3f4ec13ca9ccbd96e5fc81a","head":{"label":"mingoscd:SEO-texts","ref":"SEO-texts","sha":"de7d17a53c54f696c3f4ec13ca9ccbd96e5fc81a","user":{"login":"mingoscd","id":5896360,"avatar_url":"https://avatars.githubusercontent.com/u/5896360?v=3","gravatar_id":"","url":"https://api.github.com/users/mingoscd","html_url":"https://github.com/mingoscd","followers_url":"https://api.github.com/users/mingoscd/followers","following_url":"https://api.github.com/users/mingoscd/following{/other_user}","gists_url":"https://api.github.com/users/mingoscd/gists{/gist_id}","starred_url":"https://api.github.com/users/mingoscd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingoscd/subscriptions","organizations_url":"https://api.github.com/users/mingoscd/orgs","repos_url":"https://api.github.com/users/mingoscd/repos","events_url":"https://api.github.com/users/mingoscd/events{/privacy}","received_events_url":"https://api.github.com/users/mingoscd/received_events","type":"User","site_admin":false},"repo":{"id":39435606,"name":"epages-docs","full_name":"mingoscd/epages-docs","owner":{"login":"mingoscd","id":5896360,"avatar_url":"https://avatars.githubusercontent.com/u/5896360?v=3","gravatar_id":"","url":"https://api.github.com/users/mingoscd","html_url":"https://github.com/mingoscd","followers_url":"https://api.github.com/users/mingoscd/followers","following_url":"https://api.github.com/users/mingoscd/following{/other_user}","gists_url":"https://api.github.com/users/mingoscd/gists{/gist_id}","starred_url":"https://api.github.com/users/mingoscd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingoscd/subscriptions","organizations_url":"https://api.github.com/users/mingoscd/orgs","repos_url":"https://api.github.com/users/mingoscd/repos","events_url":"https://api.github.com/users/mingoscd/events{/privacy}","received_events_url":"https://api.github.com/users/mingoscd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mingoscd/epages-docs","description":"Source of ePages Developer Portal","fork":true,"url":"https://api.github.com/repos/mingoscd/epages-docs","forks_url":"https://api.github.com/repos/mingoscd/epages-docs/forks","keys_url":"https://api.github.com/repos/mingoscd/epages-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mingoscd/epages-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mingoscd/epages-docs/teams","hooks_url":"https://api.github.com/repos/mingoscd/epages-docs/hooks","issue_events_url":"https://api.github.com/repos/mingoscd/epages-docs/issues/events{/number}","events_url":"https://api.github.com/repos/mingoscd/epages-docs/events","assignees_url":"https://api.github.com/repos/mingoscd/epages-docs/assignees{/user}","branches_url":"https://api.github.com/repos/mingoscd/epages-docs/branches{/branch}","tags_url":"https://api.github.com/repos/mingoscd/epages-docs/tags","blobs_url":"https://api.github.com/repos/mingoscd/epages-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mingoscd/epages-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mingoscd/epages-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mingoscd/epages-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mingoscd/epages-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/mingoscd/epages-docs/languages","stargazers_url":"https://api.github.com/repos/mingoscd/epages-docs/stargazers","contributors_url":"https://api.github.com/repos/mingoscd/epages-docs/contributors","subscribers_url":"https://api.github.com/repos/mingoscd/epages-docs/subscribers","subscription_url":"https://api.github.com/repos/mingoscd/epages-docs/subscription","commits_url":"https://api.github.com/repos/mingoscd/epages-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mingoscd/epages-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mingoscd/epages-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mingoscd/epages-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mingoscd/epages-docs/contents/{+path}","compare_url":"https://api.github.com/repos/mingoscd/epages-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mingoscd/epages-docs/merges","archive_url":"https://api.github.com/repos/mingoscd/epages-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mingoscd/epages-docs/downloads","issues_url":"https://api.github.com/repos/mingoscd/epages-docs/issues{/number}","pulls_url":"https://api.github.com/repos/mingoscd/epages-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/mingoscd/epages-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/mingoscd/epages-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mingoscd/epages-docs/labels{/name}","releases_url":"https://api.github.com/repos/mingoscd/epages-docs/releases{/id}","created_at":"2015-07-21T09:09:06Z","updated_at":"2015-07-21T09:09:07Z","pushed_at":"2015-07-21T12:50:41Z","git_url":"git://github.com/mingoscd/epages-docs.git","ssh_url":"git@github.com:mingoscd/epages-docs.git","clone_url":"https://github.com/mingoscd/epages-docs.git","svn_url":"https://github.com/mingoscd/epages-docs","homepage":"https://developer.epages.com/","size":18318,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ePages-de:develop","ref":"develop","sha":"266ef2e19f5ce941d31c128382132e97e354f32d","user":{"login":"ePages-de","id":1125854,"avatar_url":"https://avatars.githubusercontent.com/u/1125854?v=3","gravatar_id":"","url":"https://api.github.com/users/ePages-de","html_url":"https://github.com/ePages-de","followers_url":"https://api.github.com/users/ePages-de/followers","following_url":"https://api.github.com/users/ePages-de/following{/other_user}","gists_url":"https://api.github.com/users/ePages-de/gists{/gist_id}","starred_url":"https://api.github.com/users/ePages-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ePages-de/subscriptions","organizations_url":"https://api.github.com/users/ePages-de/orgs","repos_url":"https://api.github.com/users/ePages-de/repos","events_url":"https://api.github.com/users/ePages-de/events{/privacy}","received_events_url":"https://api.github.com/users/ePages-de/received_events","type":"Organization","site_admin":false},"repo":{"id":30595510,"name":"epages-docs","full_name":"ePages-de/epages-docs","owner":{"login":"ePages-de","id":1125854,"avatar_url":"https://avatars.githubusercontent.com/u/1125854?v=3","gravatar_id":"","url":"https://api.github.com/users/ePages-de","html_url":"https://github.com/ePages-de","followers_url":"https://api.github.com/users/ePages-de/followers","following_url":"https://api.github.com/users/ePages-de/following{/other_user}","gists_url":"https://api.github.com/users/ePages-de/gists{/gist_id}","starred_url":"https://api.github.com/users/ePages-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ePages-de/subscriptions","organizations_url":"https://api.github.com/users/ePages-de/orgs","repos_url":"https://api.github.com/users/ePages-de/repos","events_url":"https://api.github.com/users/ePages-de/events{/privacy}","received_events_url":"https://api.github.com/users/ePages-de/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ePages-de/epages-docs","description":"Source of ePages Developer Portal","fork":false,"url":"https://api.github.com/repos/ePages-de/epages-docs","forks_url":"https://api.github.com/repos/ePages-de/epages-docs/forks","keys_url":"https://api.github.com/repos/ePages-de/epages-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ePages-de/epages-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ePages-de/epages-docs/teams","hooks_url":"https://api.github.com/repos/ePages-de/epages-docs/hooks","issue_events_url":"https://api.github.com/repos/ePages-de/epages-docs/issues/events{/number}","events_url":"https://api.github.com/repos/ePages-de/epages-docs/events","assignees_url":"https://api.github.com/repos/ePages-de/epages-docs/assignees{/user}","branches_url":"https://api.github.com/repos/ePages-de/epages-docs/branches{/branch}","tags_url":"https://api.github.com/repos/ePages-de/epages-docs/tags","blobs_url":"https://api.github.com/repos/ePages-de/epages-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ePages-de/epages-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ePages-de/epages-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ePages-de/epages-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ePages-de/epages-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ePages-de/epages-docs/languages","stargazers_url":"https://api.github.com/repos/ePages-de/epages-docs/stargazers","contributors_url":"https://api.github.com/repos/ePages-de/epages-docs/contributors","subscribers_url":"https://api.github.com/repos/ePages-de/epages-docs/subscribers","subscription_url":"https://api.github.com/repos/ePages-de/epages-docs/subscription","commits_url":"https://api.github.com/repos/ePages-de/epages-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ePages-de/epages-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ePages-de/epages-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ePages-de/epages-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ePages-de/epages-docs/contents/{+path}","compare_url":"https://api.github.com/repos/ePages-de/epages-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ePages-de/epages-docs/merges","archive_url":"https://api.github.com/repos/ePages-de/epages-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ePages-de/epages-docs/downloads","issues_url":"https://api.github.com/repos/ePages-de/epages-docs/issues{/number}","pulls_url":"https://api.github.com/repos/ePages-de/epages-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ePages-de/epages-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ePages-de/epages-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ePages-de/epages-docs/labels{/name}","releases_url":"https://api.github.com/repos/ePages-de/epages-docs/releases{/id}","created_at":"2015-02-10T14:20:56Z","updated_at":"2015-05-28T09:54:48Z","pushed_at":"2015-07-21T15:10:32Z","git_url":"git://github.com/ePages-de/epages-docs.git","ssh_url":"git@github.com:ePages-de/epages-docs.git","clone_url":"https://github.com/ePages-de/epages-docs.git","svn_url":"https://github.com/ePages-de/epages-docs","homepage":"https://developer.epages.com/","size":18318,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":10,"forks":11,"open_issues":10,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168"},"html":{"href":"https://github.com/ePages-de/epages-docs/pull/168"},"issue":{"href":"https://api.github.com/repos/ePages-de/epages-docs/issues/168"},"comments":{"href":"https://api.github.com/repos/ePages-de/epages-docs/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/ePages-de/epages-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ePages-de/epages-docs/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/ePages-de/epages-docs/statuses/de7d17a53c54f696c3f4ec13ca9ccbd96e5fc81a"}}}}