---
title: 'Delimiter doing the opposite'
url: 'https://getgrav.org/forum/content-markdown/delimiter-doing-the-opposite-t757'
markdown: 'https://getgrav.org/forum/content-markdown/delimiter-doing-the-opposite-t757.md'
date: '2026-06-21'
description: 'Hi there, sorry if this is not the right category, I am building a blog from scratch and my summary is doing the reverse of what it should be doing: Ignoring'
---

[Content & Markdown](https://getgrav.org/forum/content-markdown)

#  Delimiter doing the opposite 

  Started by Leonardo 2 years ago · 3 replies · 920 views    

 [2 years ago](https://getgrav.org/forum/content-markdown/delimiter-doing-the-opposite-t757#post-39841 "Permalink") 

Hi there, sorry if this is not the right category, I am building a blog from scratch and my summary is doing the reverse of what it should be doing: Ignoring the summary before the delimiter and truncating the text that comes after. Thanks in advance.

This is my blog\_item.html.twig

```twig
{% if truncate %}
    <div class="list-item home-card grower">
        {# CARD image #}
        <div class="header-image-wrapper">
            <a href="{{ page.url }}" class="u-url">
            {% if header_image %}
                {% if header_image_file %}
                    {% set header_image_media = page.media.images[header_image_file] %}
                {% else %}
                    {% set header_image_media = page.media.images|first %}
                {% endif %}
                {{ header_image_media.cropZoom(header_image_width, header_image_height).html|raw }}
            {% endif %}
            </a>
        </div>

        <div class="padded-sides-sm">
            {# TAGS #}
            {% include 'partials/taxonomy.html.twig' %}

            {# DATE (COND) #}
            {% if page.date.tag %}
                <span class="list-blog-date">
                    <time class="dt-published" datetime="{{ page.date|date("c") }}">
                        <span>{{ page.date|date("d") }}</span>
                        <em>{{ page.date|date("M") }}</em>
                    </time>
                </span>
                <br>
            {% endif %}

            {# TITLE CARD #}
            <a href="{{ page.url }}" class="u-url">
                <h2 class="p-name">{{ page.title }}</h2>

                {# Truncated content #}
                <div class="p-summary">
                    {{ page.summary|raw }}
                </div>
            </a>
        </div>
    </div>

{#  FULL POST (DISPLAYED WHEN 'truncate' IS FALSE)  #}
{% else %}
    <div class="blog-content">
        {# DATE (COND) #}
        {% if page.date.tag %}
            <span class="list-blog-date">
                <time class="dt-published" datetime="{{ page.date|date("c") }}">
                    <span>{{ page.date|date("d") }}</span>
                    <em>{{ page.date|date("M") }}</em>
                </time>
            </span>
            <br>
        {% endif %}

        <div class="case-study">
            {# CASE STUDIES #}
            {% include 'partials/prevnext.html.twig' %}
            {% include 'partials/taxonomy.html.twig' %}
            <div id="text-wrapper">
                <section id="caption-section">
                    <h3>{% for category in page.taxonomy.category %}{{ category }}{% endfor %}</h3>
                    <h1>{{ page.header.title|e }}</h1>
                </section>
                {{ page.content|raw }}
            </div>
            {% include 'partials/prevnext.html.twig' %}
        </div>
    </div>
{% endif %}

```

 [2 years ago](https://getgrav.org/forum/content-markdown/delimiter-doing-the-opposite-t757#post-39842 "Permalink") 

@lonko, A kind request to be kind to the reader's time and effort.

TLDR:

- Only present a relevant code snippet that replicates the issue.
- Show what the markdown of the page looks like.
- Show what is being displayed in the page.
- And update your post accordingly.

Long read: /forum/general/the-art-of-asking-great-questions-t8554

Thank you.

 [2 years ago](https://getgrav.org/forum/content-markdown/delimiter-doing-the-opposite-t757#post-39843 "Permalink") 

> **@pamtbaau:**
> 
> - e markdown of the page looks like.
> - Show what is being displayed in the pa

I thought of shortening the code sample but I thought it might need more context, like people could rightly think I botcheded the Ifs and elses (which I am known to do). Also added comments.

The markdown page is pretty straighforward:

```
This text is a summary and should be displayed on the homepage, but isn't.

===

This text is the beginning of the post, shouldn't be displayed on the homepage, but it is, then truncated.
```

Thank you

last edited 03/04/25 by Leonardo

 [2 years ago](https://getgrav.org/forum/content-markdown/delimiter-doing-the-opposite-t757#post-39845 "Permalink") 

Still not enough info. Where does `truncate` come from?

If it's doing the opposite of what's expected, did you try replacing `{% if truncate %}` with `{% if not truncate %}`?

[Log in](https://getgrav.org/login?return=%2Fforum%2Fcontent-markdown%2Fdelimiter-doing-the-opposite-t757) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Definition lists in Markdown extra not working](https://getgrav.org/forum/content-markdown/definition-lists-in-markdown-extra-not-working-t8696)    [Content & Markdown](https://getgrav.org/forum/content-markdown) · by Jochen, 1 year ago |  | 6 | 1480 | [1 year ago](https://getgrav.org/forum/content-markdown/definition-lists-in-markdown-extra-not-working-t8696 "by Gez") |
| [Theme PinPress: No 'about' on Dutch pages](https://getgrav.org/forum/content-markdown/theme-pinpress-no-about-on-dutch-pages-t5046)    [Content & Markdown](https://getgrav.org/forum/content-markdown) · by Ton Haarmans, 2 years ago |  | 10 | 1136 | [2 years ago](https://getgrav.org/forum/content-markdown/theme-pinpress-no-about-on-dutch-pages-t5046 "by pamtbaau") |
| [Is it possible to make the sub-directories foldable in the menu?](https://getgrav.org/forum/content-markdown/is-it-possible-to-make-the-sub-directories-foldable-in-the-menu-t6098)    [Content & Markdown](https://getgrav.org/forum/content-markdown) · by Jan L'Am, 2 years ago |  | 4 | 1006 | [2 years ago](https://getgrav.org/forum/content-markdown/is-it-possible-to-make-the-sub-directories-foldable-in-the-menu-t6098 "by Jan L'Am") |
| [New Installation - Navigation Menu and Table Styling](https://getgrav.org/forum/content-markdown/new-installation-navigation-menu-and-table-styling-t4181)    [Content & Markdown](https://getgrav.org/forum/content-markdown) · by belthasar, 2 years ago |  | 4 | 1391 | [2 years ago](https://getgrav.org/forum/content-markdown/new-installation-navigation-menu-and-table-styling-t4181 "by belthasar") |
| [Building an Imageslide but with Modules](https://getgrav.org/forum/content-markdown/building-an-imageslide-but-with-modules-t4791)    [Content & Markdown](https://getgrav.org/forum/content-markdown) · by David Schad, 2 years ago |  | 2 | 799 | [2 years ago](https://getgrav.org/forum/content-markdown/building-an-imageslide-but-with-modules-t4791 "by Karmalakas") |
