# How to show first paragraph?

**URL:** <https://community.silverbullet.md/t/how-to-show-first-paragraph/933>\
**Category:** General\
**Created:** [September 2, 2024, 3:38pm UTC](https://community.silverbullet.md/t/how-to-show-first-paragraph/933 "2024-09-02T15:38:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeus-web](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zeus-web/32/571_2.png) [@zeus-web](https://community.silverbullet.md/u/zeus-web)\
**Post date:** [September 2, 2024, 3:38pm UTC](https://community.silverbullet.md/t/how-to-show-first-paragraph/933/1 "2024-09-02T15:38:23Z")

</div>

Hi,

I’m trying to do a query just like mentioned in this topic:

> [@Weekly Snippets: How to embed a list of pages (its content) within a page](https://community.silverbullet.md/t/weekly-snippets-how-to-embed-a-list-of-pages-its-content-within-a-page/44):
>
> Let’s say I’d like to have a page [[Weekly Snippets]] with all my weekly notes (Journal/Week/YYYY-MM-DD) inside it, sorted by date descendant. How could I build that query so it would automatically pull all those pages? Thanks for your help

However, I want to see the first paragraph of each found page.  
Is there an easy way through queries or templates?

Something like

- [[{{name}}|{{name}}]] {{page.paragraph@0.text}}  
(which shows only a parse error)

Seems, I’m not seeing the forest for the trees… ☹

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [September 2, 2024, 5:35pm UTC](https://community.silverbullet.md/t/how-to-show-first-paragraph/933/2 "2024-09-02T17:35:39Z")

</div>

All paragraphs are indexed in the `paragraph` tag. What you can do is query that, filter by the page name, order by pos (the position in the page) and then limit to the first result.

This is how you can do that in a template:

```auto
{{#let @pageName = name}}
{{at({paragraph where page = @pageName order by pos limit 1}, 0).text}}
{{/let}}

```
