{"action":"created","comment":{"url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/comments/138217612","pull_request_review_id":61984005,"id":138217612,"diff_hunk":"@@ -29,4 +29,15 @@\n       height: 100%;\n     }\n   </style>\n-<![endif]-->\n\\ No newline at end of file\n+<![endif]-->\n+\n+{% if site.head_scripts %}\n+  {% for script in site.head_scripts %}\n+    {% if script contains \"://\" %}","path":"_includes/head.html","position":10,"original_position":10,"commit_id":"e1ddd4840226514566bbe4c1b795b300ede8afaf","original_commit_id":"d92e27321f305c20fd327c3dafa1081c46f605fa","user":{"login":"ohadschn","id":8555641,"avatar_url":"https://avatars1.githubusercontent.com/u/8555641?v=4","gravatar_id":"","url":"https://api.github.com/users/ohadschn","html_url":"https://github.com/ohadschn","followers_url":"https://api.github.com/users/ohadschn/followers","following_url":"https://api.github.com/users/ohadschn/following{/other_user}","gists_url":"https://api.github.com/users/ohadschn/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadschn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadschn/subscriptions","organizations_url":"https://api.github.com/users/ohadschn/orgs","repos_url":"https://api.github.com/users/ohadschn/repos","events_url":"https://api.github.com/users/ohadschn/events{/privacy}","received_events_url":"https://api.github.com/users/ohadschn/received_events","type":"User","site_admin":false},"body":"Maybe just \"//\" to allow for protocol-relative URLs (below too): https://stackoverflow.com/questions/4831741/can-i-change-all-my-http-links-to-just/27999789","created_at":"2017-09-11T23:23:00Z","updated_at":"2017-09-11T23:23:00Z","html_url":"https://github.com/mmistakes/minimal-mistakes/pull/1241#discussion_r138217612","pull_request_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/comments/138217612"},"html":{"href":"https://github.com/mmistakes/minimal-mistakes/pull/1241#discussion_r138217612"},"pull_request":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241"}}},"pull_request":{"url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241","id":140386194,"html_url":"https://github.com/mmistakes/minimal-mistakes/pull/1241","diff_url":"https://github.com/mmistakes/minimal-mistakes/pull/1241.diff","patch_url":"https://github.com/mmistakes/minimal-mistakes/pull/1241.patch","issue_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/1241","number":1241,"state":"open","locked":false,"title":"Allow `<head>` and footer scripts to be changed via config","user":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"body":"Common feature request is an easy way to add scripts to `<head>` or in the footer without modifying any of the theme files.\r\n\r\nCurrently this can be done by adding custom `script `elements to [`_includes/head/custom.html`](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/head/custom.html) or [`_includes/footer/custom.html`](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/footer/custom.html) This pull request allows the user to add additional scripts to either `<head>` or before the closing `</body>` elements via their `_config.yml` file.\r\n\r\nSimply add the full relative (or absolute) path(s) to relevant array and they will be added to the page.\r\n\r\nExamples:\r\n\r\n```yaml\r\nhead_scripts:\r\n  - https://code.jquery.com/jquery-3.2.1.min.js\r\n  - /assets/js/your-custom-head-script.js\r\nfooter_scripts:\r\n  - /assets/js/your-custom-footer-script.js\r\n```\r\n\r\nIn the case of `footer_scripts`, if used, the default `/assets/js/main.min.js` file won't be loaded and jQuery and other scripts used by the theme will need to be added to the array or replacements found. Unless you want the collapsible navigation, image lightboxes, smooth scrolling, and other niceties to stay broken ;-)\r\n\r\n**Note:** depending on the size of your site there may be a slight performance hit to build times as each of these config variables introduce `for` loops.\r\n\r\nRef: #1238 ","created_at":"2017-09-11T17:00:17Z","updated_at":"2017-09-11T23:23:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85c354569971fa2963f810d756d915cdd5c803c7","assignee":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"assignees":[{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241/commits","review_comments_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241/comments","review_comment_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/1241/comments","statuses_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/statuses/e1ddd4840226514566bbe4c1b795b300ede8afaf","head":{"label":"mmistakes:custom-scripts","ref":"custom-scripts","sha":"e1ddd4840226514566bbe4c1b795b300ede8afaf","user":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"repo":{"id":10267810,"name":"minimal-mistakes","full_name":"mmistakes/minimal-mistakes","owner":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmistakes/minimal-mistakes","description":":triangular_ruler: A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server.","fork":false,"url":"https://api.github.com/repos/mmistakes/minimal-mistakes","forks_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/forks","keys_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/teams","hooks_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/hooks","issue_events_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/events{/number}","events_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/events","assignees_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/assignees{/user}","branches_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/branches{/branch}","tags_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/tags","blobs_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/statuses/{sha}","languages_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/languages","stargazers_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/stargazers","contributors_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/contributors","subscribers_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/subscribers","subscription_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/subscription","commits_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/contents/{+path}","compare_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/merges","archive_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/downloads","issues_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues{/number}","pulls_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls{/number}","milestones_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/milestones{/number}","notifications_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/labels{/name}","releases_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/releases{/id}","deployments_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/deployments","created_at":"2013-05-24T14:13:30Z","updated_at":"2017-09-11T22:12:31Z","pushed_at":"2017-09-11T17:00:56Z","git_url":"git://github.com/mmistakes/minimal-mistakes.git","ssh_url":"git@github.com:mmistakes/minimal-mistakes.git","clone_url":"https://github.com/mmistakes/minimal-mistakes.git","svn_url":"https://github.com/mmistakes/minimal-mistakes","homepage":"https://mmistakes.github.io/minimal-mistakes/","size":33166,"stargazers_count":2325,"watchers_count":2325,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4888,"mirror_url":null,"open_issues_count":25,"forks":4888,"open_issues":25,"watchers":2325,"default_branch":"master"}},"base":{"label":"mmistakes:master","ref":"master","sha":"0883904f9536be0e3c9b1e8ff84b8548a981772a","user":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"repo":{"id":10267810,"name":"minimal-mistakes","full_name":"mmistakes/minimal-mistakes","owner":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars3.githubusercontent.com/u/1376749?v=4","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmistakes/minimal-mistakes","description":":triangular_ruler: A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server.","fork":false,"url":"https://api.github.com/repos/mmistakes/minimal-mistakes","forks_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/forks","keys_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/teams","hooks_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/hooks","issue_events_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/events{/number}","events_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/events","assignees_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/assignees{/user}","branches_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/branches{/branch}","tags_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/tags","blobs_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/statuses/{sha}","languages_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/languages","stargazers_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/stargazers","contributors_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/contributors","subscribers_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/subscribers","subscription_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/subscription","commits_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/contents/{+path}","compare_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/merges","archive_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/downloads","issues_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues{/number}","pulls_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls{/number}","milestones_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/milestones{/number}","notifications_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/labels{/name}","releases_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/releases{/id}","deployments_url":"https://api.github.com/repos/mmistakes/minimal-mistakes/deployments","created_at":"2013-05-24T14:13:30Z","updated_at":"2017-09-11T22:12:31Z","pushed_at":"2017-09-11T17:00:56Z","git_url":"git://github.com/mmistakes/minimal-mistakes.git","ssh_url":"git@github.com:mmistakes/minimal-mistakes.git","clone_url":"https://github.com/mmistakes/minimal-mistakes.git","svn_url":"https://github.com/mmistakes/minimal-mistakes","homepage":"https://mmistakes.github.io/minimal-mistakes/","size":33166,"stargazers_count":2325,"watchers_count":2325,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4888,"mirror_url":null,"open_issues_count":25,"forks":4888,"open_issues":25,"watchers":2325,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241"},"html":{"href":"https://github.com/mmistakes/minimal-mistakes/pull/1241"},"issue":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/1241"},"comments":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/issues/1241/comments"},"review_comments":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241/comments"},"review_comment":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/pulls/1241/commits"},"statuses":{"href":"https://api.github.com/repos/mmistakes/minimal-mistakes/statuses/e1ddd4840226514566bbe4c1b795b300ede8afaf"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ohadschn"}}