Custom summary divider

Is it possible to set a custom summary divider value? For instance, can I replace the standard <!--more--> with <!-- some-other-value -->?

Jekyll/Octopress offers the following parameter in the config file:

excerpt_separator: "<!--&nbsp;some-other-value&nbsp;-->"

Is there something similar in Hugo?

I need this because I’m now migrating from Octopress to Hugo and there I used a custom summary divider which is obviously ignored by Hugo.

Am curious. Did you end up doing a massive find-n-replace?

That’s what I wanted to do in the first place, but decided to ask here first :slight_smile:
Meanwhile I am doing some other migration-related things, but yes, in the end it likely will be a mass sed for replacing my old custom summary divider.

Update. Here’s the sed command I used on Mac OS (ran in the same folder where my post files were):

find . -type f -iname "*.md" -exec sed -i '' -e 's/<!-- some-other-value -->/<!--more-->/' {} \;

I thought that might be the case, just checking :slight_smile:

It’s not possible.

Welcome to the community! Hugo is fantastic. Have fun!

1 Like