{"action":"closed","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/4908","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4908/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4908/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4908/events","html_url":"https://github.com/TryGhost/Ghost/issues/4908","id":57392295,"number":4908,"title":"Theme API: Determine single vs multi-author blogs.","user":{"login":"issmirnov","id":5771615,"avatar_url":"https://avatars.githubusercontent.com/u/5771615?v=3","gravatar_id":"","url":"https://api.github.com/users/issmirnov","html_url":"https://github.com/issmirnov","followers_url":"https://api.github.com/users/issmirnov/followers","following_url":"https://api.github.com/users/issmirnov/following{/other_user}","gists_url":"https://api.github.com/users/issmirnov/gists{/gist_id}","starred_url":"https://api.github.com/users/issmirnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issmirnov/subscriptions","organizations_url":"https://api.github.com/users/issmirnov/orgs","repos_url":"https://api.github.com/users/issmirnov/repos","events_url":"https://api.github.com/users/issmirnov/events{/privacy}","received_events_url":"https://api.github.com/users/issmirnov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-11T23:10:03Z","updated_at":"2015-02-17T20:26:07Z","closed_at":"2015-02-17T20:26:07Z","body":"*As per the comment below, I am editing this issue to have the problem foremost, and then potential solutions*\r\n\r\n## Problem 1 - There is no way to determine if a blog is single or multi author, which can cause minimalist themes to have undue clutter\r\n\r\nThe way Ghost's defaults are set right now, the author object is a child of the post, and as such, on a single author blog the author's name can become an eye sore. \r\n\r\n### Example 1\r\n\r\nAs can be seen here, my home page has my name appear in the url, the main blog title, and every single post. I know for some people this is important, but for my personal needs I would prefer a way to only have my name appear a few times on a page.\r\n\r\n![home-page](https://cloud.githubusercontent.com/assets/5771615/6181991/f5dc8532-b2f0-11e4-8dd8-cf8676e1762a.png)\r\n\r\n### Example 2\r\n\r\nThis problem is most obvious on the /author/author-name endpoint. We are on an author page, as such, it's obvious that all of the posts listed here will be by the author. However, the author's name is still multiplying in our eyes:\r\n\r\n![author-page](https://cloud.githubusercontent.com/assets/5771615/6182019/3a4058f2-b2f1-11e4-8bf8-ff361fd6b65c.png)\r\n\r\n\r\n## Proposed Solution 1\r\n\r\nAdd a `@blog.author.multiple` and `@blog.author.single` tag, set according to the number of registered authors. This tag can be used in if/else clauses to modify the theme as needed.\r\n\r\n\r\n## Use Case 1\r\n\r\nI think it would help a lot if theme designers had a way of figuring out whether a blog is single user or multi user, and adjusting the theme accordingly. For the minimalist themes that I (and many others) use, the cleaner the page the better. Once there is a way to determine the nature of the blog, theme designers can add a conditional to their pages to exclude author links as desired.\r\n\r\n## Proposed Solution 2\r\n\r\nAs seen in example 2 above, the author page uses the same post loop partial as the main index. For a single user blog, the \"by Author\" suffix would not be present on any post links, so the problem is solved. However, on multi-author sites, the post loop on the front page should have an author link, while the author page should not. \r\n\r\n*Options:*\r\n- create a second partial/loop.hbs post file, which will not include the author.\r\n- on the author page, set some variable that will allow the theme designer to disable the author link in the post loop list when displayed on the author page\r\n\r\n## Further Thoughts\r\n\r\nDepending on where the maintainers of this project want to take it, it might be useful to expand the `@blog.author` data resource to allow iterating over various authors, getting a total count of them, and having their author links accessible from a global name space, rather than from within a post. This will allow the creation of an \"About Us\" page that can display all of the authors of the site, with their bio's, locations, etc.\r\n\r\nWhat do you all think? "}}