# Show all posts by author

**URL:** https://talk.jekyllrb.com/t/show-all-posts-by-author/8012
**Category:** Help
**Created:** [February 10, 2023, 1:53am UTC](https://talk.jekyllrb.com/t/show-all-posts-by-author/8012 "2023-02-10T01:53:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vidhyav656](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/vidhyav656/32/1636_2.png) [@vidhyav656](https://talk.jekyllrb.com/u/vidhyav656)
#### Post date: [February 10, 2023, 1:53am UTC](https://talk.jekyllrb.com/t/show-all-posts-by-author/8012/1 "2023-02-10T01:53:45Z")

</div>

I am using minimall-mistake jekyll theme.

I want the page of post where the it is sorted by author.

This is my code here

```auto
# _config.yml
collections:
  authors:
    output: true
    permalink: /posts/authors/:name

defaults:
# _author
  - scope:
      path: "_authors"
      type: authors
    values:
      layout: author-single
      author_profile: true
      suggestedcitiation: true

```

/\_layouts/author-single.html

```auto
---
layout: archive
---

{% assign author_posts = site.posts | where:"author","page.author" %}
{% for post in author_posts %}
<div class="list__item">
	<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
		<h2 class="archive__item-title no_toc" itemprop="headline">
			<a href="{{ post.url | relative_url }}" rel="permalink">{{ post.title }}</a>
		</h2>
		{% include page__meta.html type=entries_layout %}
		{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">
			{{ post.excerpt | markdownify | strip_html | truncate: 160 }}
		</p>{% endif %}
	</article>
</div>
{% endfor %}

```

My current output is listing all the posts.

Thanks

---

<div class="post-metadata">

### Author: ![hazzanizza](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/hazzanizza/32/2298_2.png) [@hazzanizza](https://talk.jekyllrb.com/u/hazzanizza)
#### Post date: [February 10, 2023, 8:34am UTC](https://talk.jekyllrb.com/t/show-all-posts-by-author/8012/2 "2023-02-10T08:34:53Z")

</div>

Hi,

I suspect that `"page.author"` shouldn’t be quoted.

```auto
{% assign author_posts = site.posts | where: "author", page.author %}

```

---

<div class="post-metadata">

### Author: ![vidhyav656](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/vidhyav656/32/1636_2.png) [@vidhyav656](https://talk.jekyllrb.com/u/vidhyav656)
#### Post date: [February 14, 2023, 1:40pm UTC](https://talk.jekyllrb.com/t/show-all-posts-by-author/8012/3 "2023-02-14T13:40:46Z")

</div>

```auto
---
layout: archive
---
{% for post in site.posts %}
{% if post.author contains page.username or page.username == post.author %}
<div class="list__item">
	<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
		<h2 class="archive__item-title no_toc" itemprop="headline">
			<a href="{{ post.url | relative_url }}" rel="permalink">{{ post.title }}</a>
		</h2>
		{% include page__meta.html type=entries_layout %}
		{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">
			{{ post.excerpt | markdownify | strip_html | truncate: 160 }}
		</p>{% endif %}
	</article>
</div>
{% endif %}
{% endfor %}

```

This worked for me. Thanks`Preformatted text`
