{"action":"created","issue":{"url":"https://api.github.com/repos/cobalt-org/cobalt.rs/issues/131","repository_url":"https://api.github.com/repos/cobalt-org/cobalt.rs","labels_url":"https://api.github.com/repos/cobalt-org/cobalt.rs/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/cobalt-org/cobalt.rs/issues/131/comments","events_url":"https://api.github.com/repos/cobalt-org/cobalt.rs/issues/131/events","html_url":"https://github.com/cobalt-org/cobalt.rs/issues/131","id":172259905,"number":131,"title":"Support categories/tags on posts","user":{"login":"johannhof","id":2622601,"avatar_url":"https://avatars3.githubusercontent.com/u/2622601?v=3","gravatar_id":"","url":"https://api.github.com/users/johannhof","html_url":"https://github.com/johannhof","followers_url":"https://api.github.com/users/johannhof/followers","following_url":"https://api.github.com/users/johannhof/following{/other_user}","gists_url":"https://api.github.com/users/johannhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johannhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannhof/subscriptions","organizations_url":"https://api.github.com/users/johannhof/orgs","repos_url":"https://api.github.com/users/johannhof/repos","events_url":"https://api.github.com/users/johannhof/events{/privacy}","received_events_url":"https://api.github.com/users/johannhof/received_events","type":"User","site_admin":false},"labels":[{"id":142457521,"url":"https://api.github.com/repos/cobalt-org/cobalt.rs/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"uwearzt","id":105293,"avatar_url":"https://avatars3.githubusercontent.com/u/105293?v=3","gravatar_id":"","url":"https://api.github.com/users/uwearzt","html_url":"https://github.com/uwearzt","followers_url":"https://api.github.com/users/uwearzt/followers","following_url":"https://api.github.com/users/uwearzt/following{/other_user}","gists_url":"https://api.github.com/users/uwearzt/gists{/gist_id}","starred_url":"https://api.github.com/users/uwearzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwearzt/subscriptions","organizations_url":"https://api.github.com/users/uwearzt/orgs","repos_url":"https://api.github.com/users/uwearzt/repos","events_url":"https://api.github.com/users/uwearzt/events{/privacy}","received_events_url":"https://api.github.com/users/uwearzt/received_events","type":"User","site_admin":false},"assignees":[{"login":"uwearzt","id":105293,"avatar_url":"https://avatars3.githubusercontent.com/u/105293?v=3","gravatar_id":"","url":"https://api.github.com/users/uwearzt","html_url":"https://github.com/uwearzt","followers_url":"https://api.github.com/users/uwearzt/followers","following_url":"https://api.github.com/users/uwearzt/following{/other_user}","gists_url":"https://api.github.com/users/uwearzt/gists{/gist_id}","starred_url":"https://api.github.com/users/uwearzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwearzt/subscriptions","organizations_url":"https://api.github.com/users/uwearzt/orgs","repos_url":"https://api.github.com/users/uwearzt/repos","events_url":"https://api.github.com/users/uwearzt/events{/privacy}","received_events_url":"https://api.github.com/users/uwearzt/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cobalt-org/cobalt.rs/milestones/5","html_url":"https://github.com/cobalt-org/cobalt.rs/milestone/5","labels_url":"https://api.github.com/repos/cobalt-org/cobalt.rs/milestones/5/labels","id":2252180,"number":5,"title":"0.6","description":null,"creator":{"login":"johannhof","id":2622601,"avatar_url":"https://avatars3.githubusercontent.com/u/2622601?v=3","gravatar_id":"","url":"https://api.github.com/users/johannhof","html_url":"https://github.com/johannhof","followers_url":"https://api.github.com/users/johannhof/followers","following_url":"https://api.github.com/users/johannhof/following{/other_user}","gists_url":"https://api.github.com/users/johannhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johannhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannhof/subscriptions","organizations_url":"https://api.github.com/users/johannhof/orgs","repos_url":"https://api.github.com/users/johannhof/repos","events_url":"https://api.github.com/users/johannhof/events{/privacy}","received_events_url":"https://api.github.com/users/johannhof/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2017-01-14T22:23:04Z","updated_at":"2017-01-16T22:00:51Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-08-20T08:00:22Z","updated_at":"2017-07-07T14:00:03Z","closed_at":null,"body":"Would be nice to be able to define a number of categories in front matter that would then be available as e.g. a Liquid object for rendering.\n"},"comment":{"url":"https://api.github.com/repos/cobalt-org/cobalt.rs/issues/comments/313689334","html_url":"https://github.com/cobalt-org/cobalt.rs/issues/131#issuecomment-313689334","issue_url":"https://api.github.com/repos/cobalt-org/cobalt.rs/issues/131","id":313689334,"user":{"login":"uwearzt","id":105293,"avatar_url":"https://avatars3.githubusercontent.com/u/105293?v=3","gravatar_id":"","url":"https://api.github.com/users/uwearzt","html_url":"https://github.com/uwearzt","followers_url":"https://api.github.com/users/uwearzt/followers","following_url":"https://api.github.com/users/uwearzt/following{/other_user}","gists_url":"https://api.github.com/users/uwearzt/gists{/gist_id}","starred_url":"https://api.github.com/users/uwearzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwearzt/subscriptions","organizations_url":"https://api.github.com/users/uwearzt/orgs","repos_url":"https://api.github.com/users/uwearzt/repos","events_url":"https://api.github.com/users/uwearzt/events{/privacy}","received_events_url":"https://api.github.com/users/uwearzt/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T14:00:03Z","updated_at":"2017-07-07T14:00:03Z","body":"@epage \r\n\r\n1. Add Categories to your posts (the categories are also used for jsonfeed)\r\n\r\n```\r\ncategories: [CatE, SubCatC]\r\n```\r\n\r\n2. Add Categories to the cobalt.yml file\r\n\r\n```\r\ncategories: [ CatA : [],\r\n              CatB : [ SubCatC, SubCatD ],\r\n              CatE : [ SubCatF ]]\r\n```\r\nthere will be (at least) a info message if you use a category inside a post which is not defined here.\r\n\r\n3. Use them for a Tree with posts:\r\n```\r\n<div>\r\n  <h3>print categories with posts</h3>\r\n    <!-- check if there are categories in config -->\r\n    {%if site.categories %}\r\n      <!-- run over categories -->\r\n      {% for category in site.categories %}\r\n        <h4>{{ category.name }}</h4>\r\n        <!-- run over posts -->\r\n        {% if category.posts %}\r\n          Posts in this category<br/>\r\n          {% for post in category.posts %}\r\n            {{ post.date | date: \"%d.%m.%Y\" }} | {{ post.title }}<br/>\r\n          {% endfor %}\r\n        {% endif %}\r\n        <!-- run over subcategories -->\r\n        {% if category.subcategories %}\r\n          {% for subcategory in category.subcategories %}\r\n            <h5>{{ subcategory.name }}</h5>\r\n            <!-- run over posts -->\r\n            {% if subcategory.posts %}\r\n              Posts in this subcategory<br/>\r\n              {% for post in subcategory.posts %}\r\n                {{ post.date | date: \"%d.%m.%Y\" }} | {{ post.title }}<br/>\r\n              {% endfor %}\r\n            {% endif %}\r\n          {% endfor %}\r\n        {% endif %}\r\n      {% endfor %}\r\n    {% endif %}\r\n</div>\r\n```\r\n"}}
{"actor":{"display_login":"uwearzt"}}