# Summary divider in a shortcode

**URL:** <https://discourse.gohugo.io/t/summary-divider-in-a-shortcode/22749>\
**Category:** support\
**Created:** [January 10, 2020, 12:54pm UTC](https://discourse.gohugo.io/t/summary-divider-in-a-shortcode/22749 "2020-01-10T12:54:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![retif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/retif/32/8126_2.png) [@retif](https://discourse.gohugo.io/u/retif)\
**Post date:** [January 10, 2020, 12:54pm UTC](https://discourse.gohugo.io/t/summary-divider-in-a-shortcode/22749/1 "2020-01-10T12:54:47Z")

</div>

A bit silly question, but (how) can I put summary divider (`<!--more-->`) into a shortcode, so it would appear on the page from which this shorcode is called?

The shortcode `/layouts/shortcodes/my-shortcode.html`:

```auto
some text

<!--more-->

# Some header

some more text

```

> **(other silly attempts)**
>
> ```auto
> some text
> 
> {{ "<!--more-->" | markdownify }}
> 
> # Some header
> 
> some more text
> 
> ```
> 
> and
> 
> ```auto
> some text
> 
> {{ "<!--more-->" | safeHTML }}
> 
> # Some header
> 
> some more text
> 
> ```

The shortcode is called like this:

```bash
{{% my-shortcode %}}

```

And the problem is that my list layouts use the following [condition](https://discourse.gohugo.io/t/how-to-check-the-summary-divider-presence/17604):

```auto
{{ if in .RawContent "<!--more-->" }}
    <div>{{ .Summary }}</div>
{{ else }}
    <div>{{ .Content }}</div>
{{ end }}

```

For pages with this shortcode the condition is never `true`, which (I guess) means that summary divider is not present there, so I get the full page contents instead of their summaries.

If I put summary divider out of the shortcode and put it into `index.md`, then of course everything is good and I get summaries.

So is there a way for summary divider to be “recognized” from the shortcode too?

My `config.toml`:

```auto
[markup.goldmark.renderer]
    unsafe = true

```

Hugo: ` v0.62.1-A1518704/extended`
