Split Single Content Page up into Multiple Pages


#1

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.


#2

I am running into the same problem right now. Have an extremely long post I want to break into multiple pages on ClimateViewer.com.

¡ <3 Hugo!