HUGO

Split Single Page into Multiple Pages

This Thread is already been published but there’s no valid reply! Please Help Me Fix it…

WordPress has a feature that splits up single post into multiple pages (WordPress Codex Reference).

It uses <!--nextpage--> inside the post content. Whenever a <!--nextpage--> is encountered in the post content, it is splitted to a separate page.

Example

Let the post content be

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean lobortis ultrices velit, at auctor dui tincidunt non.
<!--nextpage-->
Sed sit amet congue dui. Aliquam semper consectetur diam,
ac laoreet sapien venenatis ut.
<!--nextpage-->
Morbi vitae nunc ligula.
Vestibulum ultrices lacus non blandit varius.

and the post’s URL be /post/lorem-ipsum-post/ .

Now, /post/lorem-ipsum-post/ will contain:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean lobortis ultrices velit, at auctor dui tincidunt non.

<Link to /post/lorem-ipsum-post/2/>

/post/lorem-ipsum-post/2/ will contain:

Sed sit amet congue dui. Aliquam semper consectetur diam,
ac laoreet sapien venenatis ut.

<Link to /post/lorem-ipsum-post/3/>

and so on…

This feature is particularly useful when the post has huge amount of contents.

Maybe it achievable in current Hugo with a lots of manual work. But it would be great if Hugo has built-in support for this scenario.

1 Like

I have moved this topic to the Feature request category, since this functionality is not currently possible.

This topic was automatically closed after 4 days. New replies are no longer allowed.