{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/starter-theme/pulls/comments/183175232","pull_request_review_id":114133290,"id":183175232,"diff_hunk":"@@ -0,0 +1,155 @@\n+{%- comment -%}\n+  This is a required section for the Shopify Theme Store.\n+  It is loaded when you add \"Blog Posts\" section on the Theme Editor.\n+\n+  We are showing a preview of what the blog post looks like in the preview.\n+\n+  Required settings\n+  - Blog (which blog category to show in your store)\n+  - Number of posts to show\n+\n+  Optional settings\n+  - Show author\n+  - Show date\n+{%- endcomment -%}\n+<section>\n+  {% if section.settings.title != blank %}\n+    <h2>{{ section.settings.title | escape }}</h2>\n+  {% endif %}\n+\n+  {%- comment -%}\n+    This refer from blog section when you add the section from Theme Editor\n+  {%- endcomment -%}\n+  {%- assign blog = blogs[section.settings.blog] -%}\n+\n+  {% unless blog.articles_count == 0 %}\n+    <div class=\"blog-post\">\n+      {% for article in blog.articles limit: section.settings.post_limit %}\n+        <div class=\"blog-post__item\">\n+          {% if article.image %}\n+            <a href=\"{{ article.url }}\">\n+              {% include 'responsive-image' with\n+                  image: article.image,\n+                  max_width: 400,\n+                  max_height: 400\n+              %}\n+            </a>\n+          {% endif %}\n+\n+          <div>\n+            <h2>\n+              <a href=\"{{ article.url }}\">{{ article.title }}</a>\n+            </h2>\n+\n+            {% if section.settings.blog_show_author %}\n+              <span>{{ 'blogs.article.by_author' | t: author: article.author }}</span>\n+            {% endif %}\n+\n+            {% if section.settings.blog_show_date %}\n+              <span class=\"blog-post__date\">\n+                {{ article.published_at | time_tag: format: 'month_day_year' }}\n+              </span>\n+            {% endif %}\n+\n+            <div class=\"blog-post__excerpt\">\n+              {% if article.excerpt.size > 0 %}\n+                {{ article.excerpt }}\n+              {% else %}\n+                {{ article.content | strip_html | truncate: 150 }}\n+              {% endif %}\n+            </div>\n+\n+            {% if article.tags.size > 0 %}\n+              {% for tag in article.tags %}\n+                <a href=\"{{ blog.url }}/tagged/{{ tag | handle }}\" class=\"\">{{ tag }}</a>\n+              {% endfor %}\n+            {% endif %}\n+\n+            <a href=\"{{ article.url }}\">\n+              {{ 'blogs.article.read_more' | t }}\n+            </a>\n+          </div>\n+        </div>\n+      {% endfor %}\n+    </div>\n+  {% else %}\n+    <div class=\"\">","path":"src/sections/blog-post.liquid","position":null,"original_position":76,"commit_id":"d7761e58ce37a134ebb02e4d42daf11dd88c4b4a","original_commit_id":"5a178e110dbdfd1655f1d722d434f4ec75bee01d","user":{"login":"tauthomas01","id":658169,"avatar_url":"https://avatars2.githubusercontent.com/u/658169?v=4","gravatar_id":"","url":"https://api.github.com/users/tauthomas01","html_url":"https://github.com/tauthomas01","followers_url":"https://api.github.com/users/tauthomas01/followers","following_url":"https://api.github.com/users/tauthomas01/following{/other_user}","gists_url":"https://api.github.com/users/tauthomas01/gists{/gist_id}","starred_url":"https://api.github.com/users/tauthomas01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tauthomas01/subscriptions","organizations_url":"https://api.github.com/users/tauthomas01/orgs","repos_url":"https://api.github.com/users/tauthomas01/repos","events_url":"https://api.github.com/users/tauthomas01/events{/privacy}","received_events_url":"https://api.github.com/users/tauthomas01/received_events","type":"User","site_admin":false},"body":"I removed.","created_at":"2018-04-20T21:37:14Z","updated_at":"2018-04-20T21:37:14Z","html_url":"https://github.com/Shopify/starter-theme/pull/18#discussion_r183175232","pull_request_url":"https://api.github.com/repos/Shopify/starter-theme/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Shopify/starter-theme/pulls/comments/183175232"},"html":{"href":"https://github.com/Shopify/starter-theme/pull/18#discussion_r183175232"},"pull_request":{"href":"https://api.github.com/repos/Shopify/starter-theme/pulls/18"}},"in_reply_to_id":183086396},"pull_request":{"url":"https://api.github.com/repos/Shopify/starter-theme/pulls/18","id":180987832,"html_url":"https://github.com/Shopify/starter-theme/pull/18","diff_url":"https://github.com/Shopify/starter-theme/pull/18.diff","patch_url":"https://github.com/Shopify/starter-theme/pull/18.patch","issue_url":"https://api.github.com/repos/Shopify/starter-theme/issues/18","number":18,"state":"open","locked":false,"title":"Add blog post section template (WIP)","user":{"login":"tauthomas01","id":658169,"avatar_url":"https://avatars2.githubusercontent.com/u/658169?v=4","gravatar_id":"","url":"https://api.github.com/users/tauthomas01","html_url":"https://github.com/tauthomas01","followers_url":"https://api.github.com/users/tauthomas01/followers","following_url":"https://api.github.com/users/tauthomas01/following{/other_user}","gists_url":"https://api.github.com/users/tauthomas01/gists{/gist_id}","starred_url":"https://api.github.com/users/tauthomas01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tauthomas01/subscriptions","organizations_url":"https://api.github.com/users/tauthomas01/orgs","repos_url":"https://api.github.com/users/tauthomas01/repos","events_url":"https://api.github.com/users/tauthomas01/events{/privacy}","received_events_url":"https://api.github.com/users/tauthomas01/received_events","type":"User","site_admin":false},"body":"Reference: #8\r\n[Demo store](https://oecry1oqn5m1gk8q-662601789.shopifypreview.com)\r\n\r\n### WHAT are you trying to accomplish with this PR?\r\nI am adding \"blog-post\" sections template from `Debut` theme as a starting point in order to see the newest change when I adapt to the `starter theme` approach.\r\n\r\n### WHY are you choosing this approach?\r\nIn order to see the changes when I adapt the \"starter theme\" way, we need a reference to see what has been changed.\r\n\r\n### HOW is this accomplished?\r\nCopied the `featured-blog.liquid` from Debut theme\r\n","created_at":"2018-04-11T18:20:13Z","updated_at":"2018-04-20T21:37:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0bb6e66cb6ea4718f2998ea30bc556f80cca487","assignee":{"login":"tauthomas01","id":658169,"avatar_url":"https://avatars2.githubusercontent.com/u/658169?v=4","gravatar_id":"","url":"https://api.github.com/users/tauthomas01","html_url":"https://github.com/tauthomas01","followers_url":"https://api.github.com/users/tauthomas01/followers","following_url":"https://api.github.com/users/tauthomas01/following{/other_user}","gists_url":"https://api.github.com/users/tauthomas01/gists{/gist_id}","starred_url":"https://api.github.com/users/tauthomas01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tauthomas01/subscriptions","organizations_url":"https://api.github.com/users/tauthomas01/orgs","repos_url":"https://api.github.com/users/tauthomas01/repos","events_url":"https://api.github.com/users/tauthomas01/events{/privacy}","received_events_url":"https://api.github.com/users/tauthomas01/received_events","type":"User","site_admin":false},"assignees":[{"login":"tauthomas01","id":658169,"avatar_url":"https://avatars2.githubusercontent.com/u/658169?v=4","gravatar_id":"","url":"https://api.github.com/users/tauthomas01","html_url":"https://github.com/tauthomas01","followers_url":"https://api.github.com/users/tauthomas01/followers","following_url":"https://api.github.com/users/tauthomas01/following{/other_user}","gists_url":"https://api.github.com/users/tauthomas01/gists{/gist_id}","starred_url":"https://api.github.com/users/tauthomas01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tauthomas01/subscriptions","organizations_url":"https://api.github.com/users/tauthomas01/orgs","repos_url":"https://api.github.com/users/tauthomas01/repos","events_url":"https://api.github.com/users/tauthomas01/events{/privacy}","received_events_url":"https://api.github.com/users/tauthomas01/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/starter-theme/pulls/18/commits","review_comments_url":"https://api.github.com/repos/Shopify/starter-theme/pulls/18/comments","review_comment_url":"https://api.github.com/repos/Shopify/starter-theme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/starter-theme/issues/18/comments","statuses_url":"https://api.github.com/repos/Shopify/starter-theme/statuses/d7761e58ce37a134ebb02e4d42daf11dd88c4b4a","head":{"label":"Shopify:add-section-blog-post","ref":"add-section-blog-post","sha":"d7761e58ce37a134ebb02e4d42daf11dd88c4b4a","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":110152877,"name":"starter-theme","full_name":"Shopify/starter-theme","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/starter-theme","description":"The Shopify Themes Team opinionated starting point for new a Slate theme project","fork":false,"url":"https://api.github.com/repos/Shopify/starter-theme","forks_url":"https://api.github.com/repos/Shopify/starter-theme/forks","keys_url":"https://api.github.com/repos/Shopify/starter-theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/starter-theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/starter-theme/teams","hooks_url":"https://api.github.com/repos/Shopify/starter-theme/hooks","issue_events_url":"https://api.github.com/repos/Shopify/starter-theme/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/starter-theme/events","assignees_url":"https://api.github.com/repos/Shopify/starter-theme/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/starter-theme/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/starter-theme/tags","blobs_url":"https://api.github.com/repos/Shopify/starter-theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/starter-theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/starter-theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/starter-theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/starter-theme/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/starter-theme/languages","stargazers_url":"https://api.github.com/repos/Shopify/starter-theme/stargazers","contributors_url":"https://api.github.com/repos/Shopify/starter-theme/contributors","subscribers_url":"https://api.github.com/repos/Shopify/starter-theme/subscribers","subscription_url":"https://api.github.com/repos/Shopify/starter-theme/subscription","commits_url":"https://api.github.com/repos/Shopify/starter-theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/starter-theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/starter-theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/starter-theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/starter-theme/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/starter-theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/starter-theme/merges","archive_url":"https://api.github.com/repos/Shopify/starter-theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/starter-theme/downloads","issues_url":"https://api.github.com/repos/Shopify/starter-theme/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/starter-theme/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/starter-theme/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/starter-theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/starter-theme/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/starter-theme/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/starter-theme/deployments","created_at":"2017-11-09T18:42:22Z","updated_at":"2018-04-19T22:10:14Z","pushed_at":"2018-04-20T21:33:45Z","git_url":"git://github.com/Shopify/starter-theme.git","ssh_url":"git@github.com:Shopify/starter-theme.git","clone_url":"https://github.com/Shopify/starter-theme.git","svn_url":"https://github.com/Shopify/starter-theme","homepage":"","size":370,"stargazers_count":14,"watchers_count":14,"language":"Liquid","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":6,"open_issues":12,"watchers":14,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"e28a920c84528c7125e67c91235f44f4205e22b8","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":110152877,"name":"starter-theme","full_name":"Shopify/starter-theme","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/starter-theme","description":"The Shopify Themes Team opinionated starting point for new a Slate theme project","fork":false,"url":"https://api.github.com/repos/Shopify/starter-theme","forks_url":"https://api.github.com/repos/Shopify/starter-theme/forks","keys_url":"https://api.github.com/repos/Shopify/starter-theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/starter-theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/starter-theme/teams","hooks_url":"https://api.github.com/repos/Shopify/starter-theme/hooks","issue_events_url":"https://api.github.com/repos/Shopify/starter-theme/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/starter-theme/events","assignees_url":"https://api.github.com/repos/Shopify/starter-theme/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/starter-theme/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/starter-theme/tags","blobs_url":"https://api.github.com/repos/Shopify/starter-theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/starter-theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/starter-theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/starter-theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/starter-theme/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/starter-theme/languages","stargazers_url":"https://api.github.com/repos/Shopify/starter-theme/stargazers","contributors_url":"https://api.github.com/repos/Shopify/starter-theme/contributors","subscribers_url":"https://api.github.com/repos/Shopify/starter-theme/subscribers","subscription_url":"https://api.github.com/repos/Shopify/starter-theme/subscription","commits_url":"https://api.github.com/repos/Shopify/starter-theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/starter-theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/starter-theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/starter-theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/starter-theme/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/starter-theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/starter-theme/merges","archive_url":"https://api.github.com/repos/Shopify/starter-theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/starter-theme/downloads","issues_url":"https://api.github.com/repos/Shopify/starter-theme/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/starter-theme/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/starter-theme/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/starter-theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/starter-theme/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/starter-theme/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/starter-theme/deployments","created_at":"2017-11-09T18:42:22Z","updated_at":"2018-04-19T22:10:14Z","pushed_at":"2018-04-20T21:33:45Z","git_url":"git://github.com/Shopify/starter-theme.git","ssh_url":"git@github.com:Shopify/starter-theme.git","clone_url":"https://github.com/Shopify/starter-theme.git","svn_url":"https://github.com/Shopify/starter-theme","homepage":"","size":370,"stargazers_count":14,"watchers_count":14,"language":"Liquid","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":6,"open_issues":12,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/starter-theme/pulls/18"},"html":{"href":"https://github.com/Shopify/starter-theme/pull/18"},"issue":{"href":"https://api.github.com/repos/Shopify/starter-theme/issues/18"},"comments":{"href":"https://api.github.com/repos/Shopify/starter-theme/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/starter-theme/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/starter-theme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/starter-theme/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/starter-theme/statuses/d7761e58ce37a134ebb02e4d42daf11dd88c4b4a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tauthomas01"}}