Removing Excerpt from .Content

Just wondering, is it possible to show the content of a post without the excerpt marked with ?

Could you give a concrete example?

For example, given this document:

---
date: 2019-02-15T23:33:21Z
description: ""
draft: true
title: 'Title here'
---

# This is an intro

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nostrum harum temporibus aperiam magni recusandae hic, quidem adipisci, distinctio error deserunt impedit iure vero nobis suscipit perferendis accusamus, cupiditate fuga rem!

<!--more-->

> Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

— Mr. Glass

On list.html, I want to show the lorem ipsum excerpt.

On single.html, I just want to display the Mr. Glass quote.

A way to have this effect would be to add a new frontmatter parameter, but I wanted to avoid that route and keep the content together.

Untested, but I wonder if this would work:

{{ replace .Content .Summary "" | safeHTML }}
1 Like

It does work, just needs to be piped through safeHTML.

Thanks man! :smiley:

Nice. I edited the snippet to including piping to safeHTML

1 Like